Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Liferay and Google Tag Manager implementation
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! :)
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.
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 :