Showing results for 
Search instead for 
Did you mean: 
Advocate II
Advocate II

Embedding Google Tag Manager (aka Google Analytics) into a Power App (Canvas) - Can it be done?

Hi Brains trust, 

  I would like to use Google Tag Manager to track usage figures of user actions and have not had a great start.  The standard GoogleTagManager code is as follows


 <!-- Google tag (gtag.js) -->

<script async src=""></script>

<script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-OurUniqueID15355');</script>


Normally we would embed this in the header or footer and wondered if any kind folk could point us in the right direction please or let us know if this is not remotely possible?


Helpful resources

Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,004)