I can't get Google Tag Manager to work using the "Generic Analytics Snippet" under the AEM "Cloud Services Configurations" I can enter the typical Google Analytics code snippet, and get it to work on AEM pages, but when I replace the GA Tag snippet, with the GTM code snippet, it doesn't show up the pages? Why doesn't this work out of the box? It seems that they allow the GA code, but don't allow the GTM code. It seems you have to write custom code, or use the integration that's available on the web from CityTech.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi au4liferz
There is an excellent article covering AEM integration with Google Analytic and Google Tag Manager
Link:- http://aemcorner.blogspot.in/2014/11/aem-integration-with-google-analytics.html
//Covering step by step to achieve the needful.
Another reference link that could come as some help is:-
Link:- http://trantorinc.com/integrating-adobe-experience-manager-with-google-tag-manager/
//
How can you use Google Tag Manager with Adobe Experience Manager?
Integrating AEM with Google tag manager is quite simple. In shared content package the Cloud Services Configuration for Google Tag Manager is built, which helps in integrating AEM with Google Tag Manager.
Using Instructions from https://support.google.com/tagmanager/ documentation, Create Google Tag Manager account and a container.
Install the content package on your AEM instance.
Create a configuration under the AEM> Tools > Cloud Services Configurations > Google Tag Manager. You need to enter container ID, which can be found in the Google Tag Manager interface.
Use the configuration on your top-level content page. (The way use you use to do would for any Cloud Services Configuration.) Note that that page should be activate and the configuration itself.
To test the setup and the tag rules implemented on a local machine or on a author instance, Google Tag Manager’s debugging tools can be used. This helps you get results and verify the implementations before sending changes to Production.
I hope this would help you.
Thanks and Regards
Kautuk Sahni
Views
Replies
Total Likes
Hi au4liferz
There is an excellent article covering AEM integration with Google Analytic and Google Tag Manager
Link:- http://aemcorner.blogspot.in/2014/11/aem-integration-with-google-analytics.html
//Covering step by step to achieve the needful.
Another reference link that could come as some help is:-
Link:- http://trantorinc.com/integrating-adobe-experience-manager-with-google-tag-manager/
//
How can you use Google Tag Manager with Adobe Experience Manager?
Integrating AEM with Google tag manager is quite simple. In shared content package the Cloud Services Configuration for Google Tag Manager is built, which helps in integrating AEM with Google Tag Manager.
Using Instructions from https://support.google.com/tagmanager/ documentation, Create Google Tag Manager account and a container.
Install the content package on your AEM instance.
Create a configuration under the AEM> Tools > Cloud Services Configurations > Google Tag Manager. You need to enter container ID, which can be found in the Google Tag Manager interface.
Use the configuration on your top-level content page. (The way use you use to do would for any Cloud Services Configuration.) Note that that page should be activate and the configuration itself.
To test the setup and the tag rules implemented on a local machine or on a author instance, Google Tag Manager’s debugging tools can be used. This helps you get results and verify the implementations before sending changes to Production.
I hope this would help you.
Thanks and Regards
Kautuk Sahni
Views
Replies
Total Likes
Hi @kautuk_sahni ,
Both of these links do not work. Also, in AEM Cloud atleast, we don't have AEM> Tools > Cloud Services Configurations > Google Tag Manager
I tried to install the script using Adobe Launch, but it does not get added to <head> part of page's html.
Any idea on this please?
Many thanks
Rupal
Views
Replies
Total Likes
Thanks Kautuk, but the first link does not work. He's telling you how to use the built-in generic snippet cloud service to enter the Google Tag Manager snippet, but that does not work in 5.6.1. In the second link, he's telling you how to use the integration that I mentioned from CityTech above, (and it has compilation/run-time errors in 5.6.1 that you have to work through). These solutions will not work as specified for many versions of AEM.
Views
Replies
Total Likes
Bumping this up. Has anyone found a solution for integrating GTM into AEM?
Views
Replies
Total Likes
The first link can be found here Analytics with External Providers | Adobe Experience Manager
Views
Replies
Total Likes
Views
Likes
Replies