S
S
Sergey Arsentiev2020-11-06 15:17:30
Google Analytics
Sergey Arsentiev, 2020-11-06 15:17:30

Why doesn't Google Analytics consider the goal of a click on a link?

I would be grateful if someone could suggest why google analytics does not consider a simple goal - click on the "Download price" link.

Online
bCx5TIQpQBiNbtiazim1tA.png
In Analytics
TSUuLnxOT76i_CVzn1JVCQ.png

previously it didn’t work with gtag only with ga, there was a slightly different syntax, maybe something was written wrong here?
Yandex considers without problems.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Denisov, 2020-11-06
@moytop

Try this code:

gtag('event', 'price_button', {'event_category' : 'submit'});

R
Ruslan, 2020-11-12
@buttersmai

You actually use ”action” twice in your code, you need to remove it from curly braces.
And the goal is to reconfigure.
Well, or use the code from the comment above with the current target
https://developers.google.com/analytics/devguides/...

Z
zaharovmail, 2020-11-12
@zaharovmail

This is how it should work

onclick="yaCounter54983232.reachGoal('price'); gtag('event', 'click', {'event_category': 'submit', 'event_ action': 'price_button'}); return true;"

Better yet, set goals through Google Tag Manager

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question