A
A
Alexander Epikhin2017-03-30 16:24:40
JavaScript
Alexander Epikhin, 2017-03-30 16:24:40

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 yaCounterXXXand 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 question

Ask a Question

731 491 924 answers to any question