R
R
Roman Kuzmenko2018-11-30 17:59:26
JavaScript
Roman Kuzmenko, 2018-11-30 17:59:26

Why doesn't the gtag event always fire?

Hello!

I ran into a problem with the following link:

<a onclick="gtag('event', 'button_catalog', {'event_category': 'catalog', 'event_action': 'click',});"><span><?php echo $button_text; ?></span><</a>


Not all clicks are displayed in the analytics, no matter how you twist it, not all are still displayed ... Please help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael, 2018-11-30
@FFxSquall

As I understand it, you do not wait for the event to be sent to analytics and make the transition. Solution
Option for modern browsers to add option transport: 'beacon'when sending event

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question