I'm wondering how you can install Google Tag Manager (GTM) tracking to an app built using Power Apps, Visual Studio, etc.
In Power Apps, can I go to every single page under Web Pages or Web Templates and add it in the Copy HTML section or CUstom Javascript section?
or
Do I need to go to the Visual Studio source code and paste it in there?
These are the GTM instructions:
Copy the code below and paste it onto every page of your website.
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTMID');</script>
<!-- End Google Tag Manager -->
2. Paste this code immediately after the opening <body> tag:
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-GTMID"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
Thnak you!

Report
All responses (
Answers (