pkordas Posted November 3, 2014 Share Posted November 3, 2014 (edited) Hi,To proper use of Google code it is {literal}{/literal} is needed in each place where {} is used.Best RegardsPiotr header.txt Edited November 3, 2014 by pkordas (see edit history) 1 Link to comment Share on other sites More sharing options...
catzarov Posted November 22, 2014 Share Posted November 22, 2014 Hello, I have the same problem with my Google Tag Manager I don't know where to set code in header.tpl may be I made ten diferent tests, but all prestashop stop working when put inside google code in file !!! Link to comment Share on other sites More sharing options...
catzarov Posted November 22, 2014 Share Posted November 22, 2014 I'm happy found solutions and Google tag now is working on my 1.6.0.9 version. 2 Link to comment Share on other sites More sharing options...
Angelas300 Posted January 21, 2015 Share Posted January 21, 2015 Hello, my problem is the same with my GTM. But I dis all stemps and set code in to the header file under the <body>, but stil it's not working. Please help. Link to comment Share on other sites More sharing options...
Zitty Posted January 21, 2015 Share Posted January 21, 2015 (edited) Hello, my problem is the same with my GTM. But I dis all stemps and set code in to the header file under the <body>, but stil it's not working. Please help. You must place the GTM code in between the literal tags. <body> {literal} <!-- Google Tag Manager --> <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-XXXXX" 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-XXXXX');</script> <!-- End Google Tag Manager --> {/literal} Edited January 21, 2015 by Zitty (see edit history) 2 Link to comment Share on other sites More sharing options...
Angelas300 Posted January 21, 2015 Share Posted January 21, 2015 Zitty, I know that and did it, but it not work for me. maybe you know why? Link to comment Share on other sites More sharing options...
Zitty Posted January 21, 2015 Share Posted January 21, 2015 (edited) Zitty, I know that and did it, but it not work for me. maybe you know why? You have the performance settings enabled compilation and deactivated CACHE? Try to view the source code in the browser. EDIT: Of course you have to edit the file header.tpl in currently used the template. sorry for bad English Edited January 21, 2015 by Zitty (see edit history) 1 Link to comment Share on other sites More sharing options...
SkynetPremium Posted August 3, 2015 Share Posted August 3, 2015 Hi Friends, Where can i find this header.tpl ????? ,,,,,, see so many when i search in cpanel . Link to comment Share on other sites More sharing options...
Jayasilen Posted May 3, 2016 Share Posted May 3, 2016 I have inserted the GTM code with literal but the Analytics that I setup in the GTM doesn't seem to be firing correctly. Tag assistant says that the Tag not fired through GTM & Code found outside of <head> tag. {literal} <!-- Google Tag Manager --> <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-XXXXXX" 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-XXXXXX');</script> <!-- End Google Tag Manager --> {/literal} Also, how does a GTM code should look like when we view in under page source? <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-XXXXXX" Hope some one can help. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts