Answer the question
In order to leave comments, you need to log in
In response to the goal of the metric, it gives an error ReferenceError: yaCounter26531391 is not defined, how to fix it?
I registered the goal of the Yandex Metrics counter for the form,
in response to which I received the error ReferenceError: yaCounter26531391 is not defined
How to fix it and where should I define the counter? The problem is that it is not defined :(
Answer the question
In order to leave comments, you need to log in
telepath mode:
this means that the variable yaCounter26531391 is not defined in the place where you call it.
Make var yaCounter26531391;
the variable global at the top level. And when you connect the metric - write it to this global variable.
Look at the counter code on this page, most likely it is not there.
Or its id is different from 26531391.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question