• Resolved anonymized-18784945

    (@anonymized-18784945)


    Hello there,

    I had a problem with Microsoft Clarity, there was multiple sessions for the same user on live records, so I’ve checked the default cookies set on Microsoft Clarity documentation: https://learn.microsoft.com/en-us/clarity/setup-and-installation/cookie-list and i found that “_clsk” cookie (which connects multiple page views by a user into a single Clarity session recording) is not set when browsing the website, even after accept the consent on Complianz cookie banner

    I’m running my pixels on GTM but not handling it with Complianz, GTM is set up on theme

    How can I add this snippet in order to set that cookie?

    window.addEventListener("consentGranted", () => window.clarity('consent'));

    More info: https://learn.microsoft.com/en-us/clarity/setup-and-installation/cookie-consent

    Thank you!

    • This topic was modified 2 years, 4 months ago by anonymized-18784945.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Jarno Vos

    (@jarnovos)

    Hi @mpq114,

    I think you can simply add window.clarity('consent'); to Complianz -> Integrations -> Script Center -> “Add a third-party script” field, and fire it on “Marketing” consent.

    Kind regards, Jarno

    Thread Starter anonymized-18784945

    (@anonymized-18784945)

    Hello jarnovos,

    Is not working… the console.log message shows up but the cookie is not set

    Plugin Contributor Jarno Vos

    (@jarnovos)

    Hi @mpq114,

    I just configured a site with Complianz and Clarity and entered the tracking ID in the Wizard (Consent -> Statistics).

    The Clarity script is loaded after consent & _clsk cookie is also set,
    I didn’t have to add anything in the Script Center: https://clarity.instawp.xyz

    What’s the difference with your set-up?

    Kind regards, Jarno

    Thread Starter anonymized-18784945

    (@anonymized-18784945)

    Hi again @jarnovos

    I have selected the first option in that section “Yes, with Google Tag Manager” since all my pixels are on GTM

    Plugin Contributor Jarno Vos

    (@jarnovos)

    Hi @mpq114,

    If you provide an URL to the site where we can see your implementation, maybe I can see the difference. But currently I’m not quite sure how Complianz is related to the described behavior yet.

    Kind regards, Jarno

    Plugin Contributor Jarno Vos

    (@jarnovos)

    Hi @mpq114,

    I also tried implementing it in the Script Center instead, in the “add a third-party” script field, but both ways seem to work equally fine for me.

    And if the script is loaded, but there’s just a single cookie from Clarity missing, I don’t quite see how Complianz relates to this. Because Complianz either loads the script, or doesn’t. It doesn’t skip one single cookie.

    You might need to ask the Clarity team about that behavior, perhaps that cookie is only set on a certain interaction or with a specific setting in Clarity enabled.

    Kind regards, Jarno

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Microsoft Clarity consent’ is closed to new replies.