Jump to content

Cannot place the tracking code to each page of the site


Sergey123sergey

Recommended Posts

Hi

I have the following code

<!-- Yandex.Metrika counter --> <script type="text/javascript" > {literal}(function (d, w, c) { (w[c] = w[c] || []).push(function() { try { w.yaCounter21778342 = new Ya.Metrika({ id:21778342, clickmap:true, trackLinks:true, accurateTrackBounce:true, webvisor:true }); } catch(e) { } }); var n = d.getElementsByTagName("script")[0], s = d.createElement("script"), f = function () { n.parentNode.insertBefore(s, n); }; s.type = "text/javascript"; s.async = true; s.src = "https://mc.yandex.ru/metrika/watch.js"; if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(document, window, "yandex_metrika_callbacks");{/literal} </script> 

I placed in tn footer.tpl of my theme, but it works only on home page(

What am I doing wrong?

 

Thanks for the help

 

The site is http://getswag.ru

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...