Jump to content

Google Tag Manager


visogero

Recommended Posts

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

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

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

  • 2 weeks later...

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 by ufikas (see edit history)
  • Like 1
Link to comment
Share on other sites

  • 5 months later...
  • 3 months later...

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&currency_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.

  • Like 1
Link to comment
Share on other sites

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 by Martin147 (see edit history)
Link to comment
Share on other sites

  • 4 weeks later...
  • 6 months later...

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

  • 3 months later...

 

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

  • 7 months later...

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&currency_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

  • 3 weeks later...

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

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...