web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Traffic Analytics Chan...
Power Pages
Unanswered

Traffic Analytics Changes wont deploy

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I successfully hooked up my PowerApps Portal to my analytics provider (Google) by putting in my GTAG JavaScript snippet into the traffic analysis settings via the Portal Management portal.  This worked no issues and I see my analytics data flowing from all pages.  However I am now trying to update this snippet and finding changes are not propagated after saving.  I have tried restarting the portal but no changes are deployed.  Even if I remove the snippet completely the old settings remain.

 

How do I force the analytics JS snipped to get applied to my site - this is blocking as I need to move to an alternative provider.

 

Thanks

Categories:
I have the same question (0)
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    @steveowilson 

     

    To make changes work, you have to go to edit the portal and click the 'Browse website' after saving the change on snippet, then the change will deploy.

    Sik

     

  • steveowilson Profile Picture
    Microsoft Employee on at

    No effect - the old gtag JavaScript still remains.

  • rulesrchanged1 Profile Picture
    Microsoft Employee on at

    Check the content snippet called "Tracking Code", see whats the value of script in that snippet. This snippet is created/updated by traffic analysis UI.

  • HOOPP Profile Picture
    12 on at

    I am experiencing the same issue right now, did anyone find a solution to this?

  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @MrMeeseeks , 

     

          I have tested this and it seems like gtag is removed when you delete the content snippet ( not deactivate) 

    Here are the steps for you 

     

    1. In Portal Management > Content Snippet > Believe you are having your "Tracking Code" Content snippet . 

    2. Add your gtag script under value 

    3. Go to your portal studio > refresh > and press "Sync configuration" 

    4. In a new tab > load the website and then hit "Ctrl+ F5" 

     

    If you look at the Chrome Dev tools >  network tab > you can see "Analytics.js" is now loading (Screenshot for your kind reference) 

     

    ragavanrajan_0-1614713375412.png

     

    Delete the Tracking Code snippet: 

     

    1. In portal management > content snippet > Select Tracking Code and delete it 

    2. In Portal studio > > refresh > and press "Sync configuration" 

    4. In a new tab > load the website and then hit "Ctrl+ F5" 

     

    In Chrome dev tools > network tab 

     

     

    Screenshot 2021-03-03 083258.png

     
     

     

    Hope it helps. 

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

  • HOOPP Profile Picture
    12 on at

    Thanks @ragavanrajan ! I noticed that I had multiple "Tracking Code" snippets saved in Content Snippets. This is clearly a bug.
    For anyone having this issue, please see screenshot below - just remove "Tracking Code" that is no longer relevant and do Sync Config as described in above responses
    trackkk.PNG

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
DP_Prabh Profile Picture

DP_Prabh 51

#2
rezarizvii Profile Picture

rezarizvii 35

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 29 Most Valuable Professional

Last 30 days Overall leaderboard