D
D
den2346242346422019-01-05 13:56:41
JavaScript
den234624234642, 2019-01-05 13:56:41

How to setup js target in google analytics?

Good afternoon!
This code is on the site. In the metrics, goals come, and in Google Analytics, the second day is empty.

function Function_MyTag() {var element = document.getElementById("promo_btn_MyTag"); yaCounter111111111.reachGoal ("MyTag"); ga("send", "event", "Category", "Action", "MyTag");}

5c308f9e66ab4120048544.png
Why doesn't it work?
Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Max Tereshchenko, 2019-01-07
@mak7t

Try separate onclick events. But in general, I advise GTM to use

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question