46,269 questions
Restricting Cookie Domain for Microsoft Clarity When Injecting via GTM
Graham Douglas
0
Reputation points
Hello,
I’m using Microsoft Clarity on our website via Google Tag Manager. The Clarity tracking snippet is injected using GTM.
We’re encountering an issue where the cookie created by Clarity has its domain set to the top level domain .xyz.com
rather than the specific subdomain 123.abc.xyz.com
This is causing privacy concerns for the service and is causing extra firewall challenges.
My questions are:
- Is it possible to restrict the cookie domain for Microsoft Clarity when injecting the script via GTM?
- If yes, what is the supported method to force Clarity to set cookies specifically for
123.abc.xyz.com
rather than.xyz.ca
? - Are there any recommended workarounds or configurations that can be applied solely via JavaScript (or through GTM) without modifying host-level settings?
Thank you,
Graham
Community Center | Not monitored
Sign in to answer