Clarity needs concent from the user, here's a script that passes on concent from the Shopify cookie concent banner:
<script>
document.addEventListener("visitorConsentCollected", function(event) {
if(event.detail.marketingAllowed) {
window.clarity('consentv2',{
ad_Storage: "granted",
analytics_Storage: "granted"
});
}
});
</script>