Has anyone implemented Microsoft Clarity Analytics on SharePoint 2016 On-premises?

I have tried adding the Microsoft provided code by adding it into the section of Master Page (Seattle), but the script does not appear to execute.

I have also tried moving the script into a separate file and loading it with an SPM tag but still no success.

<!--SPM:<SharePoint:ScriptLink language="javascript" name="/Style Library/js/clarity.js"/>

Any tips or suggestions will be highly appreciated.

Thank you

1 Answer 1


You need to add the tracking code to the <head> section. More information can be found here:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.