Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Power Apps Portals
Answered

add JS snippet for tracking purpose on page

(0) ShareShare
ReportReport
Posted on by 173

Hi, how can we add the JS snippet to specific page for tracking purpose. 

  • Christian Leverenz Profile Picture
    1,214 on at
    Re: add JS snippet for tracking purpose on page

    Hi @sdnd2000 ,

    you could also consider putting your code in portal management in "enable traffic analysis"

    I think this code is rendered in the head section of the page which is sometimes required by traffic analysis.

    May be, its the same what @ragavanrajan suggests, not sure.

    You could place some code in there and afterwards look at the page, where it was rendered. Just to make sure 🙂

    Have fun,

      Christian

    chleverenz_0-1638865056852.png

     

    Have fun,

      Christian

     

    PS just looked: this post https://www.dancingwithcrm.com/powerappsportals-tracking-using-azure-app-insights/ describes it for insights tracking but the principle should work for other analytics approaches as well.

  • Verified answer
    ragavanrajan Profile Picture
    7,036 Most Valuable Professional on at
    Re: add JS snippet for tracking purpose on page

    Hi @sdnd2000 

     

    In portal management > web pages> select your web page 

    2. Choose localized content > advanced options 

    3. Under custom JavaScript. Add your script here 

    4. Hit save and close 

     

    In portal studio 

    1. Sync configuration and browse the website > ctrl + F5 for hard refresh 

     

    Hope it helps.

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

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

     

     

     

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 1

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 1

#3
surya narayanan Profile Picture

surya narayanan 35