Sergey123sergey Posted July 30, 2017 Share Posted July 30, 2017 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 More sharing options...
olkuznw Posted September 1, 2017 Share Posted September 1, 2017 Hi! Are you sure that it is not working? I've checked other pages and it looks like information is sending for yandex webvisor. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now