GTM Google Tag Manger
-
Hi,
Is the plugin compatible with GTM in the analytics JSON as yet?
Thanks
-
Hi @1cloud,
Thanks for contacting us, have you tried use the JSON config for GTM?
Or use the Sit kit plugin?
Hi @fellyph
I was referring to your plugin, and the analytics JSON config.
Just the following is required in the JSON analytics under advanced settings?
config="https://www.googletagmanager.com/amp.json?id=GTM-XXXXXX" data-credentials="include"Thanks
Hi @1cloud,
I have mentioned using the JSON configuration with the AMP WordPress, the plugin supports gtag.js configuration, for that you go to settings and type gtag and the plugin will fill a basic JSON configuration.
I have shared the link with the TAG manager documentation, for o get more information about customization.
I also have recorded a quick video about it:
Hi @fellyph
Thanks for the info, looks like I clicked through to the incorrect config:
https://developers.google.com/tag-platform/gtagjs/amp?technology=tagmanager
Thanks!
-
This reply was modified 4 years, 2 months ago by
1cloud.
Hi @1cloud,
The AMP plugin supports google tag manager, via gtag, as I shared with the video.
Global tag and universal analytics are two different things, universal analytics will be deprecated 2023, global tag still there.
Do you have a specific scenario that you can’t use gtag. If you explain me, we can try to solve it.
Hi @fellyph
I can use gtag, but the whole thing would be a lot easier now, and in the long run if everything loaded via a GTM container? I’m no expert, but that’s the impression the documentation is giving?
Triggers etc would be added via the container, rather than having to input them into a JSON? At the moment there’s a UA tag for AMP analytics being inserted elsewhere, and it isn’t even picking up the traffic source. The UA tag is also connected to a GA4 property and that isn’t picking any AMP traffic up at all.
Hi @1cloud,
Actually, it is a good point to use the GTM container, if you just need to add a google tag manager, you can use a plugin that gives you the capability to insert code on the header and the footer of your page.
For example https://wordpress.org/plugins/header-footer/
and you add the amp-analytics tag for google tag manager:
<amp-analytics config="https://www.googletagmanager.com/amp.json?id=GTM-XXXXXX" data-credentials="include"></amp-analytics>
As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.
-
This reply was modified 4 years, 2 months ago by
The topic ‘GTM Google Tag Manger’ is closed to new replies.