visogero Posted May 28, 2014 Share Posted May 28, 2014 Hi all, I have no luck with trying to install Google Tag Manager container code into my prestashop v. 1.6.X Maybe someone have made it with GTM ? It's realy nice tool, but it have to be inserted after opening <body> tag in all pages. Someone? Link to comment Share on other sites More sharing options...
vekia Posted May 29, 2014 Share Posted May 29, 2014 can you show code that you have to use? Link to comment Share on other sites More sharing options...
Ciseur Posted May 30, 2014 Share Posted May 30, 2014 Hello visogero, You want to add Google Tag Manager on your Prestashop website and it is a good thing. It is very powerful! It depends on your theme but adding the GTM tag in your header.tpl file(<body> is on 64th line is last 1.6 version of the default theme) should be enough. Adding the GTM tag to this file will add it to all your pages. Feel free to like this post (green button) if I helped, Ciseur Link to comment Share on other sites More sharing options...
Hoangmaicorp Posted May 30, 2014 Share Posted May 30, 2014 u can do it with all code of Google: Analytic, Webmaster tool, Author, Google Place,... bếp ga âm | Bếp từ | Máy hút mùi | Chung cư hh4 linh đàm Link to comment Share on other sites More sharing options...
visogero Posted May 30, 2014 Author Share Posted May 30, 2014 can you show code that you have to use? Thats the code: <!-- Google Tag Manager --> <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-NNMJKD" 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-NNMJKD');</script> <!-- End Google Tag Manager --> Hello visogero, You want to add Google Tag Manager on your Prestashop website and it is a good thing. It is very powerful! It depends on your theme but adding the GTM tag in your header.tpl file(<body> is on 64th line is last 1.6 version of the default theme) should be enough. Adding the GTM tag to this file will add it to all your pages. Feel free to like this post (green button) if I helped, Ciseur Im using Transformer theme. I will try it and will inform how was it. u can do it with all code of Google: Analytic, Webmaster tool, Author, Google Place,... bếp ga âm | Bếp từ | Máy hút mùi | Chung cư hh4 linh đàm I'm sorry but I didn't quite understand what you mean Link to comment Share on other sites More sharing options...
ufikas Posted June 7, 2014 Share Posted June 7, 2014 (edited) Edit your theme header.tpl file and paste GTM tag after opening the <body> tag.If you will encounter an error, try putting GTM tag inside {literal} tag. For example:{literal}<!-- Google Tag Manager --><noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-NNMJKD"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-NNMJKD');</script><!-- End Google Tag Manager -->{/litteral} Edited June 8, 2014 by ufikas (see edit history) 1 Link to comment Share on other sites More sharing options...
Luigi Massa Posted December 4, 2014 Share Posted December 4, 2014 Hi, there's this module http://addons.prestashop.com/it/analytics-prestashop-moduli/17472-modulo-google-analytics-report-with-google-tag-manager.html Link to comment Share on other sites More sharing options...
SaludShopping Posted March 17, 2015 Share Posted March 17, 2015 Conversions Value with Tag Manager help! (already placed the tag manager code as you explained here) Next Steps to create the conversion tag for adwords From my Adwords Account - Tools-Conversions i have created a new conversion (in the option of the value i marked it is variable) So it gives me this code: <!-- Google Code for Ventas Adwords Conversion Page --><script type="text/javascript">/* <![CDATA[ */var google_conversion_id = 9XXXXXXX5;var google_conversion_language = "en";var google_conversion_format = "3";var google_conversion_color = "ffffff";var google_conversion_label = "ithdCN2uuFoQ4_fp2AM";var google_conversion_value = 1.00;var google_conversion_currency = "EUR";var google_remarketing_only = false;/* ]]> */</script><script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"></script><noscript><div style="display:inline;"><img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/991591395/?value=1.00¤cy_code=EUR&label=ithdCN2uuFoQ4_fp2AM&guid=ON&script=0"/></div></noscript> Now I have created a Tag in Google Manager using the ID "9XXXXXXX5" and conversion label "ithdCN2uuFoQ4_fp2AM" given in the code from AdWords I don't know what to write in the Conversion Value field so that it takes the value from the purchase. I guess I have to create a Macro for the Value, What type of macro should I chose? What is the variable name? I have created a rule so that the tag gets activated on pages with url order-confirmation and applied it to the tag (I don't know if I did correctly either) [spam-filter]url[spam-filter] contains "order-confirmation" Saved Published I know I have to wait for it to work, so it is hard to know if I did things correctly. 1 Link to comment Share on other sites More sharing options...
Martin147 Posted March 20, 2015 Share Posted March 20, 2015 (edited) Hi, I have a problem with displaying a brief description of the page at google SERP. For exmple, if you type www.florbalmania.sk you wil see just rubbish like a price 0,00 € phone number, email adress but you will not see a description of the page this also applies to other pages. Do you know why ? I have my own template, could it be caused therefore ? Edited March 20, 2015 by Martin147 (see edit history) Link to comment Share on other sites More sharing options...
wimpie0050 Posted April 14, 2015 Share Posted April 14, 2015 hello, i'm trying to add google tags to my shoppig card, how do i do that? do you have a sollution? kind regards, Wim Wensink Link to comment Share on other sites More sharing options...
sduran Posted November 9, 2015 Share Posted November 9, 2015 Hi, i install the code of Google Tag manager in header.tlp and i have an error: HTTP response code indicates tag failed fire: Status 404 {literal} <!-- Google Tag Manager --> <noscript><iframe src="//www.googletagmanager.com/ns.html?id=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','XXXXXX');</script> <!-- End Google Tag Manager --> {/literal} Any help? My site is http://www.skyway.mx Link to comment Share on other sites More sharing options...
Juandelgado06 Posted March 8, 2016 Share Posted March 8, 2016 Hi, i install the code of Google Tag manager in header.tlp and i have an error: HTTP response code indicates tag failed fire: Status 404 {literal} <!-- Google Tag Manager --> <noscript><iframe src="//www.googletagmanager.com/ns.html?id=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','XXXXXX');</script> <!-- End Google Tag Manager --> {/literal} Any help? My site is http://www.skyway.mx Hola pudiste solucionar el problema, me puede indicar como lo solucionaste gracias tengo el mismo problema Link to comment Share on other sites More sharing options...
selectshop.at Posted March 9, 2016 Share Posted March 9, 2016 You can also add the code to your file /themes/yourtheme/footer.tpl at the end of that file. Give a try if on heder.tpl does not work. Link to comment Share on other sites More sharing options...
Boonyawat Posted October 14, 2016 Share Posted October 14, 2016 Conversions Value with Tag Manager help! (already placed the tag manager code as you explained here) Next Steps to create the conversion tag for adwords From my Adwords Account - Tools-Conversions i have created a new conversion (in the option of the value i marked it is variable) So it gives me this code: <!-- Google Code for Ventas Adwords Conversion Page --> <script type="text/javascript"> /* <![CDATA[ */ var google_conversion_id = 9XXXXXXX5; var google_conversion_language = "en"; var google_conversion_format = "3"; var google_conversion_color = "ffffff"; var google_conversion_label = "ithdCN2uuFoQ4_fp2AM"; var google_conversion_value = 1.00; var google_conversion_currency = "EUR"; var google_remarketing_only = false; /* ]]> */ </script> <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"> </script> <noscript> <div style="display:inline;"> <img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/991591395/?value=1.00¤cy_code=EUR&label=ithdCN2uuFoQ4_fp2AM&guid=ON&script=0"/> </div> </noscript> Now I have created a Tag in Google Manager using the ID "9XXXXXXX5" and conversion label "ithdCN2uuFoQ4_fp2AM" given in the code from AdWords I don't know what to write in the Conversion Value field so that it takes the value from the purchase. I guess I have to create a Macro for the Value, What type of macro should I chose? What is the variable name? I have created a rule so that the tag gets activated on pages with url order-confirmation and applied it to the tag (I don't know if I did correctly either) [spam-filter]url[spam-filter] contains "order-confirmation" Saved Published I know I have to wait for it to work, so it is hard to know if I did things correctly. Hello, I verified from Preview mode in Google Tag Manager and it said that the trigger for Adword tag. The ID and label shown are correct. However, In Adwords, the status for the conversion still shows unverified. Do I need to do anything else? Thank you very much Link to comment Share on other sites More sharing options...
Ben90 Posted November 1, 2016 Share Posted November 1, 2016 Hello, I verified from Preview mode in Google Tag Manager and it said that the trigger for Adword tag. The ID and label shown are correct. However, In Adwords, the status for the conversion still shows unverified. Do I need to do anything else? Thank you very much You can contact them by chat, email or phone call https://support.google.com/adwords/?hl=en-AU#topic=3119071&contact=1 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