Hi, how can we add the JS snippet to specific page for tracking purpose.
Announcements
Hi, how can we add the JS snippet to specific page for tracking purpose.
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
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.
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.
Lucas001
60
Super User 2025 Season 1
Fubar
55
Super User 2025 Season 1
surya narayanan
35