Instructing Clarity to require consent before placing a cookie
Step 1: Upgrade your consent solution to Version 3
If you haven’t already, follow these steps to update your Usercentrics embed code to the new Version 3.
Step 2: Configure Microsoft Clarity to require consent
Log into Microsoft Clarity.
Select ⚙ Settings from the top menu.
Select { } Setup from the menu on the left
Under Advanced settings toggle off Cookies.
Clarity will notify you that cookies are off.
Step 3: Passing consent data to Microsoft Clarity
Log into your Termageddon account
Click into your respective license
Click ‘edit policy details’ for the Cookie Policy and Consent Tool
Click “next” until you get to page #4 and select the option to Enable Microsoft Clarity Compatibility
Click “Next” several times and ultimately ‘Submit’ for changes to take effect.
Paste this code directly below your Usecentrics V3 script (from step #1 above):
<script>
window.addEventListener('{{ucClarityConsent}}', function (event) {
var clarity = event.detail.services['jzMEq56vW'];
window.clarity('consent', clarity.consent.given);
});
</script>
That’s it. Now, cookies will be off by default for Microsoft Clarity and multi-page session recordings will only occur after a user provides proper consent.