function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
hkslhksl 

How to use "Google tag manager" with Community templates

I would like to know how to use Google Tag Manager with Any Community Template.
I did create Napili Community and found out how to use it with Google Analytics for click event on the custom button (involved using forceCommunity:analyticsInteraction).
BUT,
1. How to use 'Google tag Manager' with custom components on Any Community Template?
3. How to use 'Google Analytics' or 'Google tag Manager' Not with custom components, but with Template components?
3. SF Community allows to add 'Google Analytics' code to tag, but GTM code snippet needs to be added in the tag. How to accomplish that?
So far I was Not able to find Any information on Salesforce sites or by googling, so any help would be greatly appreciated?
Many thanks
Martin ProkopMartin Prokop
I have same question