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 / add JS snippet for tra...
Power Pages
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. 

Categories:
  • Verified answer
    ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    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.

     

     

     

     

  • Christian Leverenz Profile Picture
    1,214 on at

    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.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Mohsin Ali Profile Picture

Mohsin Ali 43

#2
sannavajjala87 Profile Picture

sannavajjala87 30 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 20 Super User 2026 Season 2

Last 30 days Overall leaderboard