How to integrate Microsoft Clarity into Hugo


I’m looking to add Microsoft Clarity code to my Hugo website ( and unsure if I need to anything else other than copying the tracking code under

(e.g. if I need to deactivate any specific tracking code for Plausible, which is already integrated)


Disclaimer: I’ve never used Microsoft Clarity, but technically you can use multiple trackers on the same site, so just adding the clarity script to the head section of your site should work.