Forum Discussion
Rock67
Aug 16, 2022Copper Contributor
Website Analytics For Modern SharePoint Site
I am trying to create a simple webpart that can be added to the bottom of a page and will insert the HTML <script> tag to add analytics to a page. I don't want to implement it across the entire tenan...
Aug 17, 2022
Which Analytics Platform are you using? By the way, I recommend you to create and deploy a SPFx Extension in your site instead of a Web Part
- Rock67Aug 18, 2022Copper ContributorWhy would you recommend an SPFx Extension instead of a webpart?
- dc365Jun 03, 2024Copper Contributor
It's been a while since I saw the help article for this...but Microsoft's recommendation is to use a SPFx to roll out third party JS to your SharePoint site instead of using a webpart. I don't recall the rationale but I *think* it's related to avoiding permissions issues, and "forgetting" to add the webpart to new content.
If you're still looking for a solution, our https://analytics.angelfishstats.com/solutions/sharepoint-web-analytics/ can use either a SPFx or Audit Data to create reports.
- Rock67Aug 17, 2022Copper ContributorAnd thank you for responding.
- Rock67Aug 17, 2022Copper Contributor
jcgonzalezmartin Siteimprove. I will look into the SPFX Extension. I haven't done that before.