We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Cookie Consent Bar (Privacy & Compliance App) with Microsoft Clarity

Cookie Consent Bar (Privacy & Compliance App) with Microsoft Clarity

WhompWhomp
Tourist
7 0 1

Hello! I want to add a cookie consent bar with the Shopiy App "Privacy and Compliance" to a Shopify site but we also are testing Microsoft Clarity. 

 

Clarity gives instructions on editing code to trigger only when cookie consent has been accepted but I don't know where to add this in the theme code. 

 

Can anyone help tell me A) where to put the code assuming that the Shopify App Privacy and Compliance has been installed and B) if the Java Script below will work? 

 

Here is what Microsoft Clarity instructs: 

 

Screenshot 2023-08-17 at 4.57.19 PM.png

Reply 1 (1)

MyCsPiTTa
Explorer
57 1 10

Looks like you never got a reply to this!

FYI, a Dev I was talking to today said the native Shopify Cookie Banner isn't compatible with Clarity - you need one of the 3rd-party consent apps. I don't know why - perhaps having a Javascript API is something only the paid apps have. But it's a shame Shopify doesn't make their banner compatible.