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 scri...
Power Pages
Unanswered

Traffic analytics script added to body instead of head

(0) ShareShare
ReportReport
Posted on by 67

Is there a reason why the "Tracking Code" content snippet is being added right before the closing body tag instead of in the head? I understand that many scripts should be added here so as to be non-blocking (unless using defer), but analytics should not be one of them, as it is preferable to load it first in case a user navigates away prior to the entire page loading.

 

Also, if we would rather add it to the head, is there a way to achieve this without unchecking the 'Use Website Header and Footer' option and thereby losing all the benefits that come with?

Categories:
I have the same question (0)

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
sannavajjala87 Profile Picture

sannavajjala87 42 Super User 2026 Season 1

#2
Valantis Profile Picture

Valantis 31

#3
11manish Profile Picture

11manish 18

Last 30 days Overall leaderboard