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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / add JS snippet for tra...
Power Pages
Unanswered

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:
I have the same question (0)
  • 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard