Answer the question
In order to leave comments, you need to log in
How to find out the Yandex.Metrica ID?
The Yandex.Metrica code is inserted into the site via GTM. And I don't know what the id metric will be. I know that the name of the counter variable has the form yaCounterXXX
and this XXX is not known to me. You can loop through all the properties of the window object and find this global variable. But maybe there is a more elegant way?
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