Google Tag Manager Embed

Avatar

Avatar

slash755

Avatar

slash755

slash755

12-07-2018

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?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

6.0K

Likes

1.1K

Correct Reply

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

6.0K

Likes

1.1K

Correct Reply

1.1K
kautuk_sahni
Community Manager

20-08-2018

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

Answers (2)

Answers (2)

Avatar

Avatar

Kunwar

Employee

Avatar

Kunwar

Employee

Kunwar
Employee

20-08-2018

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

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

20-08-2018

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