freakhouse Posted October 23, 2013 Share Posted October 23, 2013 To use google tag manager they say you must put this code on every page of your site after the opening <body> tag. Code is below. Which page should I put this code on so google always sees it? <!-- Google Tag Manager --><noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-5V4KWM"height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-5V4KWM');</script><!-- End Google Tag Manager --> Link to comment Share on other sites More sharing options...
kbytin Posted April 3, 2014 Share Posted April 3, 2014 Put it to footer.tpl Link to comment Share on other sites More sharing options...
Jorgeluiz Posted August 4, 2014 Share Posted August 4, 2014 On 4/3/2014 at 3:55 AM, kbytin said: Put it to footer.tpl Thanks kbytin, I was trying by header.tpl, but it was not working. Link to comment Share on other sites More sharing options...
prestaquest Posted August 31, 2014 Share Posted August 31, 2014 On 4/3/2014 at 3:55 AM, kbytin said: Put it to footer.tpl I can confirm that this works fine on prestashop 1.6.0.6 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