S
S
sokolov_r_m2015-04-15 15:38:27
Yandex.Metrica
sokolov_r_m, 2015-04-15 15:38:27

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

3 answer(s)
D
Dmitry Entelis, 2015-04-15
@sokolov_r_m

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.

A
Artyom Tsyplakov, 2015-04-15
@grimich

Look at the counter code on this page, most likely it is not there.
Or its id is different from 26531391.

D
Denis, 2018-03-15
@Centrovoy

And I mixed up and instead of the id of the counter I entered the id of the goal ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question