Test Google Tag Manager Script in AEM
hey guys,
I have been given a script for google tag manager and been asked to test it.
I know its supposed to be injected into the <head></head>
I was reviewing the prev question on this thread at https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager-assets/adding-gtm-on-aem-authoring-environment/td-p/410019
They have the below approaches -
- Find a clientlib that's loaded everywhere on each page
- Sling Pipeline Transformer that injects your GTM script tag into the <head> tag
- Sling Filter that injects this on all HTML requests
Is there any other way and what is the expected output when the script is included in the page?
