Hi everyone,
I’m using Microsoft Clarity on my Shopify store (www.kyotsu.ch). I received an email from Microsoft saying that starting October 31, 2025, Clarity will begin enforcing cookie consent requirements in the EEA, UK, and Switzerland.
Here’s the key part of their message:
Starting October 31st, you are required to share user consent signals for sessions originating from the EEA, UK, and Switzerland. If consent is not obtained and signaled using one of the supported methods (Google Consent Mode, supported CMPs, or Clarity Consent API), certain Clarity features such as session recordings and funnel tracking may be impacted.
Currently, I have Clarity installed by adding the following script in my theme.liquid file:
</script>
<script type="text/javascript">
(function(c,l,a,r,i,t,y){
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)}
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, "clarity", "script", "scovkpqv7i");
</script>
</head>
I’m using Shopify’s built-in cookie banner, not a third-party CMP.
My question is:
Do I need to adjust this code so Clarity receives the correct consent signals?
If yes:
-
What would the updated code look like for Shopify with the native cookie banner?
-
Has anyone here already implemented this successfully, and can share an example or guidance?
I contacted Microsoft Clarity support, but I didn’t get a clear solution. They mentioned either using Google Consent Mode, a CMP like CookieYes, or the Clarity Consent API. I’d like to stay with Shopify’s built-in cookie banner if possible.
Any help, code examples, or guidance would be greatly appreciated! ![]()
Thanks in advance,
Tobias
