A
A
Alexander Pankov2020-02-17 18:41:39
Google
Alexander Pankov, 2020-02-17 18:41:39

How to set event target in gtag?

I can’t catch a target with the event type, the rest of the targets (following the transition link) work successfully,
I do this
Setting the target -> Own
Description of the target -> Event
Detailed information about the target ->
Category is equal to custom
Action is equal to add_2_order
here
5e4ab39621235988790656.png
in the code I do this and does not work:

gtag('event', 'add_2_order',{'event_category':'custom'});

did that and still doesn't work
gtag('event', 'my_add_2_order',{
   'event_category':'custom',
   'event_action':'add_2_order',
});

here is the documentation, https://developers.google.com/analytics/devguides/...
still true.. what am i doing wrong and where to look?
gtag is inserted in the head, but no target for events works and all targets work if they hit the page

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Denisov, 2020-02-18
@DeoZ

Do the events themselves enter the counter?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question