Message Boards

Liferay and Google Tag Manager implementation

Dejan Obradovic, modified 3 Years ago.

Liferay and Google Tag Manager implementation

New Member Posts: 17 Join Date: 1/12/21 Recent Posts

Hello, where I should copy Google Tag Manager code? 

 

From the documentation of GTM I should copy one script into head tag and another one at the start of body tag.

Any advice would be helpful, thanks! :)

thumbnail
Christoph Rabel, modified 3 Years ago.

RE: Liferay and Google Tag Manager implementation

Liferay Legend Posts: 1554 Join Date: 9/24/09 Recent Posts

Yes, that's exactly what you should do. Create your own theme and add the tag manager code to it. Maybe make the ID configurable using a theme setting.

Dejan Obradovic, modified 3 Years ago.

RE: RE: Liferay and Google Tag Manager implementation

New Member Posts: 17 Join Date: 1/12/21 Recent Posts

Thanks for the asnwer, can you be more specific please where should I put head script and where should I put body script from GTA? 

 

Configuration > Settings > Advanced: here I have analytics tab. 

I add my GA ID and below I have :