- Priority: 0
- Status: Closed
- Theme: Alysum
-
Assigned To:
Fred
- Private: No
- Open Date: 17.12.20, 18:50
- Opened by: Pascal Mondet
- Closed by: Anonymous Submitter
- Closed on:
- Reason: Not a bug
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
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
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
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
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
there was no ID for add to cart for product page. I just added “add-to-cart-button” ID
I will try with this (#add-to-cart-button) as CSS selector to see if it works
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
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
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.
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
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
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
remove from cart ID - “remove-from-cart” payment confirmation ID - “payment-confirm”
Hi Marek,
Thank you for that.
Just another question, does these tags are working for all shops ?
If all your shops using the same fixed files, then yes
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
ecomm_category = category of prestashop
isSaleitem = False (we don’t know xwhat is it)
please see attached the screen shot from google tag Assistant in Desktop version.
here attached the file
Attachments:
Google Tag Assistant Recondin...(105.5 KiB)I don’t clearly understand what I have to do with this?
Where to add it and in which way and how it should look like?
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.
maybe you have some technical requirements for Google - Remarketing because I have no idea what I have to do