Answer the question
In order to leave comments, you need to log in
Simultaneous targets (js events) for metrics and google analytics?
Greetings, dear ones!
How are js events of a click on a button (goal) set up simultaneously for YaMetrika and Google Analytics?
For example, now the button has the following code:
<button id="mail_submit" onclick="yaCounter99999999.reachGoal('mail_submit'); return true;">Submit</button>
document.getElementById("mail_submit").addEventListener("click", function(){
yaCounter99999999.reachGoal('mail_submit');
ga("send", "event", "mail_submit", "click");
//если инлайн код для гугла onclick="ga (‘send', ‘event', ‘mail_submit', ‘click'); return true;"
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question