• Priority: High
  • Status: Waiting on customer
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 17.12.20, 18:50
  • Opened by: Pascal Mondet

Ticket #20251 - Tag manager Google tools on AMP does not work

Google Tools manager does not detect tag on AMP version.

After checking it seems GTM Tag has been put in the [body] instead of [ head].

Could you please check because connection from Tag manager google and our web sites doesnot work

This is the same issue for all of our shops :

Big Bag Market France
Big Bag Market Italia
Big Bag Market Espana

Thanks

Comments

Fred 18 Dec 2020, 13:52

Hi, Pascal.
Please look at the screenshot https://take.ms/gDF9D

As you can see we have already added all necessary code to AMP.

Please check out this Google tutorial and make sure you have configured all things correctly in your google account https://support.google.com/tagmanager/answer/9205783?hl=en

Pascal Mondet 18 Dec 2020, 14:14

Hi Fred,

I already saw the code added to AMP.

However, all concerned with tag manager should be in the <head> and not in <Body> following Google requirements.

Moreover in Desktop version, Google tag Manager coding has been put in the <head> and it works perfectly.

Could you please check this

Fred 18 Dec 2020, 14:16

no, it should not be in the <head> Read carefully the documentation https://support.google.com/tagmanager/answer/9205783?hl=en

A phrase from the documentation

Place this code immediately after the opening <body> element
Pascal Mondet 20 Dec 2020, 12:44

Hi

You're right

We still have issue of detection from Tag manager assistant.

Could you please send me back the CSS code or ID for example for adding to cart in order to test it.

We put "#add-to-cart" as a trigger but it is not detected

Thanks

Fred 21 Dec 2020, 17:12

there was no ID for add to cart for product page. I just added "add-to-cart-button" ID

Pascal Mondet 21 Dec 2020, 17:14

I will try with this (#add-to-cart-button) as CSS selector to see if it works

Pascal Mondet 31 Dec 2020, 09:40

It seems working.

Now we need to tag other things all over AMP Pages. How we can do that if there isn't any ID?

First of all we need to tag
- remove from cart, the button and the cross "X"
- order confirmation

Fred 31 Dec 2020, 12:10

I recommend you to use Developer Tools of your browser to change such small things https://www.youtube.com/watch?v=wcFnnxfA70g

You can add an ID for "Remove" button into the file /themes/alysum/templates/mobile/modules/ps_shoppingcart/ps_shoppingcart.tpl

And for order the file is /themes/alysum/templates/mobile/checkout/_partials/steps/payment.tpl

Pascal Mondet 31 Dec 2020, 12:53

Thank you for your recommandation.

However, we're not developpers at all ! It is your job ...

Providing an AMP solution with your theme, you must provide as well Id's or easily "CSS selectors" for users in order to implement tags which must be conform on what is the basics of selling website and survey.

Moreover, implementing ourselves Id's directly on tpl's code will have a huge impact in case we upadate your theme, meanning all will be suppressed.

Therefore your recommandation is not useful at all.

Please provide us rights solutions in front of this issue.

Fred 31 Dec 2020, 12:55

That is not our job because we do not provide this feature with the theme.
We recommend to use child theme to be able to edit files and don't worry about updates

Pascal Mondet 31 Dec 2020, 12:59

Are-you Joking ?

At the miminum your coding must integrate Id's for taging all on what is the most relevant cases for the purchase funnel.
- add to cart
- remove from cart
- order confirmation

Fred 02 Jan 2021, 11:05

We are not joking and we are not obligated to do that, because we have no idea how a customer will use the theme. That the same as you will go to a car developer and claim that they forgot to add wings.
But ok, nevermind, I did that for you
Updated files

/www/themes/alysum/templates/mobile/checkout/cart.tpl
/www/themes/alysum/templates/mobile/modules/ps_shoppingcart/ps_shoppingcart.tpl
/www/themes/alysum/templates/mobile/checkout/_partials/steps/payment.tpl

remove from cart ID - "remove-from-cart"
payment confirmation ID - "payment-confirm"

Pascal Mondet 04 Jan 2021, 09:03

Hi Marek,

Thank you for that.

Just another question, does these tags are working for all shops ?

Fred 04 Jan 2021, 11:42

If all your shops using the same fixed files, then yes

Pascal Mondet 04 Jan 2021, 15:26

hello Marek,

As requested by email related to your support.

We need to implement MetaData for Remarketing with Google associated wit hmerchant Center.

We bought a module "Google Dynamic Remarketing", but it doesn't work on AMP and has been disactivated.

Metadata supplied by the module of Remarketing are the folllowing

event = page_view
ecomm_prodid = Product ID of prestashop (in our case id = 371)
ecomm_pagetype = product
ecomm_totalvalue = unit price including VAT
ecomm_category

Pascal Mondet 04 Jan 2021, 15:28

ecomm_category = category of prestashop
isSaleitem = False (we don't know xwhat is it)

Pascal Mondet 04 Jan 2021, 15:28

please see attached the screen shot from google tag Assistant in Desktop version.

Pascal Mondet 04 Jan 2021, 15:29

here attached the file

Attachments:

Fred 05 Jan 2021, 16:12

I don't clearly understand what I have to do with this?

event = page_view
ecomm_prodid = Product ID of prestashop (in our case id = 371)
ecomm_pagetype = product
ecomm_totalvalue = unit price including VAT
ecomm_category

Where to add it and in which way and how it should look like?

Pascal Mondet 08 Jan 2021, 15:42

Hi Marek

To be honest i don't know how Remarketing tags are working.

I'm just seeing from Google that I've got an issue on remarketing tags from Mobile Pages while visitors are on our webs sites. Statistics are blocked

In case, I sent a message to developers of the module "google-remarketing". They said that their module is working with most of AMP themes ... !

I remember the at the beginning of our exchanges (tickets) We had an issue on the purchase funnel causes by this module.

At this moment the module "Google - Remarketing" is disabled for Mobile.

Fred 09 Jan 2021, 12:28

maybe you have some technical requirements for Google - Remarketing because I have no idea what I have to do