Answer the question
In order to leave comments, you need to log in
Data does not go to Yandex. metric. What am I doing wrong?
I can't figure out how to set the goal in the metric. The counter is set on all pages.
The goals seem to be written correctly too, data is not transferred to the metric.
Answer the question
In order to leave comments, you need to log in
I am aware that there is such a solution. It is implemented with a timer, if the visit is more than 60 seconds, then the goal is reached.
Solved in this way:
Try like this:
<script>
window.onload = function() {
if(window.location.href.indexOf("/o-kompanii/") > -1) {
ym(11002952, 'reachGoal', 'compania');
}
};
</script>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question