Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Google Tag Manager Embed

Avatar

Level 1

I have created a new tag in Google Tag Manager and need to embed this on all pages in AEM.

Where do I do this?

1 Accepted Solution

Avatar

Correct answer by
Administrator

You would need to add the JS code into the page template. All the web-pages created with this template would then be having GTM implemented in it.

-Kautuk



Kautuk Sahni

View solution in original post

3 Replies

Avatar

Correct answer by
Administrator

You would need to add the JS code into the page template. All the web-pages created with this template would then be having GTM implemented in it.

-Kautuk



Kautuk Sahni

Avatar

Employee

Use the Generic Tracker cloud configuration in AEM, add your tracking code and include this cloudservice to your content hierarchy and you should be good to go.

(1) : Analytics with External Providers

Avatar

Level 10

Try adding the required JS libs to a clientlibs in your AEM project - as mentioned by Kautuk