Answer the question
In order to leave comments, you need to log in
Why are the goals not achieved in Yandex Metrica?
Hello! WordPress site with contact form 7 plugin installed . I connected the Yandex metric, set up the goal and connected wiretapping to the form, but I can’t understand why the goals don’t reach .. I
tested various forms from the site, they are sent correctly.
<!-- Yandex.Metrika counter -->
<script type="text/javascript" >
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
ym(41441674, "init", {
clickmap:true,
trackLinks:true,
accurateTrackBounce:true,
webvisor:true
});
</script>
<noscript><div><img src="https://mc.yandex.ru/watch/41441674" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
<script type="text/javascript">
document.addEventListener( 'wpcf7mailsent', function( event ) {
ym(41441674, 'reachGoal', 'weddings'); return true;
});
</script>
Answer the question
In order to leave comments, you need to log in
Are you sure the reachGoal is being sent? You can add site.ru?ym_debugg
and submit the form in the address bar, in the console in Devtools it should be reflected that the goal has been achieved) If it is achieved, then everything works correctly and you need to look for another reason.
Should be something like this:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question