microsoft / clarity

A behavioral analytics library that uses dom mutations and user interactions to generate aggregated insights.
https://clarity.microsoft.com
MIT License
2.07k stars 205 forks source link

MS Clarity cookies are affected on Google Chrome browser - how to prepare before Q3? #543

Open kszal-RBC opened 6 months ago

kszal-RBC commented 6 months ago

Good morning,

I have a question regarding MS Clarity third-party cookies on Google Chrome browser.

Google announced that Chrome has restricted third-party cookies for 1% of users from January 4th, 2024. Chrome plans to ramp up third-party cookie restrictions to 100% of users from Q3 2024, subject to addressing any remaining competition concerns of the UK's Competition and Markets Authority.

I already have information on dev tools console that Clarity cookies are affected. Is there any documentation on MS Clarity page on how should we prepare before Q3? Does it mean that MS Clarity will not work on Chrome browser?

From our point of view it's pretty important, as Chrome browser users are the majority of whole platform users.

Thanks in advance! I appreciate your help!

image

WilbertWalrus commented 6 months ago

Does it mean that MS Clarity will not work on Chrome browser?

@amralaa-MSFT @MustafaLeithy @swaathee @ender336 — please comment on this

ClaritySupport commented 6 months ago

@kszal-RBC ,For cases in which Clarity uses third party cookies, we are looking into strategies to remove our reliance on them but don’t have specifics we are releasing at this point.

kszal-RBC commented 6 months ago

@ClaritySupport thank you for your answer, but unfortunately, it doesn't cover my question. I am worried about Clarity cookies as third-party cookies on my webpage (not third-party cookies from MS Clarity's perspective) - please see the screenshot in the issue above. I appreciate your help!

sachin-s-joshi commented 6 months ago

This is similar what I raised to #527

kszal-RBC commented 6 months ago

@ClaritySupport , please elaborate - as you can see in @sachin-s-joshi comment above and #527, more people are struggling with the same issue.

digioz commented 6 months ago

This is a big concern with many of our Clients as well. Based on what I am reading, Google has started restricting third-party cookies by default for 1% of Chrome users on January 4, 2024 and continues to roll it out to more users.

felixlu07 commented 5 months ago

Exactly. Would really appreciate some directions/advice from MS Clarity on this as this is getting more urgent.

nargotik commented 5 months ago

This is not like looking for a workaround to keep users privacy compromised ?

Why was been 3rd party cookies been denied ?

maccup commented 5 months ago

Also would love to know what to do, temporary disabling Clarity.

kszal-RBC commented 5 months ago

@WilbertWalrus @ClaritySupport

I hope this message finds you well. I wanted to kindly request an update on MS Clarity cookies topic, as it has been a month since my last comment. I understand that you may have been busy, but having the latest information would greatly assist me in making decisions before Google Chrome restrictions in Q3.

Your prompt attention to this matter would be greatly appreciated.

Thank you in advance for your assistance.

ClaritySupport commented 5 months ago

We are checking with our engineering team and will update.

Thanks, Clarity Support Team Visit our docs!: https://docs.microsoft.com/en-us/clarity @.**@.> @.***

Confidentiality note: This e-mail, and any attachment to it, contains privileged and confidential information intended only for the use of the individual(s) or entity named in the e-mail. If the reader of the e-mail is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that reading it is strictly prohibited. If you have received this e-mail in error, please immediately return it to the sender and delete it from your system.

From: Klaudia Szal @.> Sent: Thursday, April 11, 2024 7:40 AM To: microsoft/clarity @.> Cc: Microsoft Clarity Support @.>; Mention @.> Subject: Re: [microsoft/clarity] MS Clarity cookies are affected on Google Chrome browser - how to prepare before Q3? (Issue #543)

@WilbertWalrushttps://github.com/WilbertWalrus @ClaritySupporthttps://github.com/ClaritySupport

I hope this message finds you well. I wanted to kindly request an update on MS Clarity cookies topic, as it has been a month since my last comment. I understand that you may have been busy, but having the latest information would greatly assist me in making decisions before Google Chrome restrictions in Q3.

Your prompt attention to this matter would be greatly appreciated.

Thank you in advance for your assistance.

- Reply to this email directly, view it on GitHubhttps://github.com/microsoft/clarity/issues/543#issuecomment-2049849974, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AW5BXQYCUM6FTQZRB22ZNDLY42OD7AVCNFSM6AAAAABEFHSWLOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBZHA2DSOJXGQ. You are receiving this because you were mentioned.Message ID: @.**@.>>

ClaritySupport commented 4 months ago

@kszal-RBC ,Thanks for your patience as we reviewed this question with team. Clarity functionality will not be affected by Chromium's deprecation of third-party cookies. As such, Clarity customers do not need to take any action.

For more information, please see our Frequently asked questions | Microsoft Learn"

kszal-RBC commented 4 months ago

@ClaritySupport thank you!

toniengelhardt commented 4 months ago

@ClaritySupport if the 3rd-party cookies do not affect functionality, can we get a way to disable them entirely to avoid warnings? Thanks

ClaritySupport commented 4 months ago

Not at this time, but we will add it to our backlog - thanks

From: Klaudia Szal @.> Sent: Monday, April 29, 2024 12:45 AM To: microsoft/clarity @.> Cc: Microsoft Clarity Support @.>; Mention @.> Subject: Re: [microsoft/clarity] MS Clarity cookies are affected on Google Chrome browser - how to prepare before Q3? (Issue #543)

@ClaritySupporthttps://github.com/ClaritySupport thank you!

- Reply to this email directly, view it on GitHubhttps://github.com/microsoft/clarity/issues/543#issuecomment-2082077338, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AW5BXQZ6JVEZT3PG5V34OR3Y7X3AJAVCNFSM6AAAAABEFHSWLOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBSGA3TOMZTHA. You are receiving this because you were mentioned.Message ID: @.**@.>>

dunklesToast commented 1 month ago

Since a few days we've seen weird behaviour with Clarity where each page visit had it's own session without changing anything on our end.

image

We've now seen an error in Chrome which says it blocked Clarity setting cookies due to the Third Party thing.

image

Could it be that this is actually affecting clarity?

Reading through this issue I came across this statement which I don't really understand

Thanks for your patience as we reviewed this question with team. Clarity functionality will not be affected by Chromium's deprecation of third-party cookies. As such, Clarity customers do not need to take any action

Clarity tries to set cookies when retrieving the script https://www.clarity.ms/tag/:identifier. This is a third party call, no?

Also, in another Thread you've said

You need to enable cookies if you want session stitching.Without cookies we treat every page view as a separate session

And it seems to me that Session-Stitching is not working here because the cookies cannot be set. Is that a possible issue?

Due to chrome blocking the cookies, they are not being sent to Clarity's collect endpoint (which could cause it to not link the reports together?

image

while, when disabling the Chrome Privacy Sandbox the MUID is being sent:

image

As we're having the issue on three different sites (WordPress, Shopify, Next.js), two different accounts and with multiple Consent Managers (and even without) we're now at a point were we assume this is an issue with Clarity. Checking older recordings this started at around 18.07.24. If you need further info, let me know.

toniengelhardt commented 1 month ago

@dunklesToast seeing the same.

jones-m91 commented 1 month ago

Seeing the same. @ClaritySupport any updates?

ClaritySupport commented 1 month ago

Hello,

Could you please share more details on the issue, a screenshot describing the issue would be helpful.

Thanks, Clarity Support Team Visit our docs!: https://docs.microsoft.com/en-us/clarity @.**@.> @.***

Confidentiality note: This e-mail, and any attachment to it, contains privileged and confidential information intended only for the use of the individual(s) or entity named in the e-mail. If the reader of the e-mail is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that reading it is strictly prohibited. If you have received this e-mail in error, please immediately return it to the sender and delete it from your system.

From: jones-m91 @.> Sent: Thursday, August 8, 2024 3:14 AM To: microsoft/clarity @.> Cc: Microsoft Clarity Support @.>; Mention @.> Subject: Re: [microsoft/clarity] MS Clarity cookies are affected on Google Chrome browser - how to prepare before Q3? (Issue #543)

Seeing the same. @ClaritySupporthttps://github.com/ClaritySupport any updates?

- Reply to this email directly, view it on GitHubhttps://github.com/microsoft/clarity/issues/543#issuecomment-2275457247, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AW5BXQYAVCCXSSR5CJNSS2DZQNAHJAVCNFSM6AAAAABEFHSWLOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZVGQ2TOMRUG4. You are receiving this because you were mentioned.Message ID: @.**@.>>

dunklesToast commented 1 month ago

Hey @ClaritySupport ,

please check my reply above where all informations are provided: https://github.com/microsoft/clarity/issues/543#issuecomment-2246244692

ClaritySupport commented 1 month ago

Hello,

we are in the process of rolling out mandatory cookie consent (https://learn.microsoft.com/en-us/clarity/setup-and-installation/cookie-consent) in the EEA. If you are still seeing issues after passing clarity('consent', true) when you obtain consent, then please send your URL/projectId to investigate.

Thanks, Clarity Support Team Visit our docs!: https://docs.microsoft.com/en-us/clarity @.**@.> @.***

Confidentiality note: This e-mail, and any attachment to it, contains privileged and confidential information intended only for the use of the individual(s) or entity named in the e-mail. If the reader of the e-mail is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that reading it is strictly prohibited. If you have received this e-mail in error, please immediately return it to the sender and delete it from your system.

From: Microsoft Clarity Support @.> Sent: Thursday, August 8, 2024 3:34 AM To: microsoft/clarity @.>; microsoft/clarity @.> Cc: Microsoft Clarity Support @.>; Mention @.***> Subject: RE: [microsoft/clarity] MS Clarity cookies are affected on Google Chrome browser - how to prepare before Q3? (Issue #543)

Hello,

Could you please share more details on the issue, a screenshot describing the issue would be helpful.

Thanks, Clarity Support Team Visit our docs!: https://docs.microsoft.com/en-us/clarity @.**@.> @.***

Confidentiality note: This e-mail, and any attachment to it, contains privileged and confidential information intended only for the use of the individual(s) or entity named in the e-mail. If the reader of the e-mail is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that reading it is strictly prohibited. If you have received this e-mail in error, please immediately return it to the sender and delete it from your system.

From: jones-m91 @.**@.>> Sent: Thursday, August 8, 2024 3:14 AM To: microsoft/clarity @.**@.>> Cc: Microsoft Clarity Support @.**@.>>; Mention @.**@.>> Subject: Re: [microsoft/clarity] MS Clarity cookies are affected on Google Chrome browser - how to prepare before Q3? (Issue #543)

Seeing the same. @ClaritySupporthttps://github.com/ClaritySupport any updates?

- Reply to this email directly, view it on GitHubhttps://github.com/microsoft/clarity/issues/543#issuecomment-2275457247, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AW5BXQYAVCCXSSR5CJNSS2DZQNAHJAVCNFSM6AAAAABEFHSWLOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENZVGQ2TOMRUG4. You are receiving this because you were mentioned.Message ID: @.**@.>>

Caprico85 commented 3 weeks ago

I can confirm that there is something strange here.

As far as I understand it, you have to EITHER set the "Cookies" checkbox in the settings to indicate that consent to Clarity has been given and that cookies may always be used. Then you do not have to call window.clarity('consent');. OR you uncheck the "Cookies" checkbox. This means that consent does not always exist and must first be signaled using window.clarity('consent');.

But currently we have to call window.clarity('consent'); in any case, regardless of whether the "Cookies" checkbox is set or not. Otherwise, no cookies will be set and the session stitching will not work. So the cookies checkbox in the settings is currently useless.

In our case, we use Usercentrics to obtain consent and only load the tracking tag from Clarity if consent has been given. This means that if the tag is loaded, consent has been given in any case. But we still have to call window.clarity('consent');. We do this using a second tag and some before-after relations in Google Tag Manager. This is rather ugly and we would prefer to do without if the cookie checkbox worked properly.

ClaritySupport commented 3 weeks ago

Hello,

Clarity is in the process of moving to an explicit consent signal being required in the European Economic Area and has started rolling this out in select markets. Our documentation will be updated soon, in the meantime please call the consent API in those markets.

Thanks, Clarity Support Team Visit our docs!: https://docs.microsoft.com/en-us/clarity @.**@.> @.***

Confidentiality note: This e-mail, and any attachment to it, contains privileged and confidential information intended only for the use of the individual(s) or entity named in the e-mail. If the reader of the e-mail is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that reading it is strictly prohibited. If you have received this e-mail in error, please immediately return it to the sender and delete it from your system.

From: Caprico @.> Sent: Tuesday, August 20, 2024 1:06 AM To: microsoft/clarity @.> Cc: Microsoft Clarity Support @.>; Mention @.> Subject: Re: [microsoft/clarity] MS Clarity cookies are affected on Google Chrome browser - how to prepare before Q3? (Issue #543)

I can confirm that there is something strange here.

As far as I understand it, you have to EITHER set the "Cookies" checkbox in the settings to indicate that consent to Clarity has been given and that cookies may always be used. Then you do not have to call window.clarity('consent');. OR you uncheck the "Cookies" checkbox. This means that consent does not always exist and must first be signaled using window.clarity('consent');.

But currently we have to call window.clarity('consent'); in any case, regardless of whether the "Cookies" checkbox is set or not. Otherwise, no cookies will be set and the session stitching will not work. So the cookies checkbox in the settings is currently useless.

In our case, we use Usercentrics to obtain consent and only load the tracking tag from Clarity if consent has been given. This means that if the tag is loaded, consent has been given in any case. But we still have to call window.clarity('consent');. We do this using a second tag and some before-after relations in Google Tag Manager. This is rather ugly and we would prefer to do without if the cookie checkbox worked properly.

- Reply to this email directly, view it on GitHubhttps://github.com/microsoft/clarity/issues/543#issuecomment-2298229921, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AW5BXQ4CQU5FTZ4VXBVLA5DZSL2HNAVCNFSM6AAAAABEFHSWLOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJYGIZDSOJSGE. You are receiving this because you were mentioned.Message ID: @.**@.>>

aasiddiqui commented 1 week ago

What Email address I should use to send project ID ? We are facing similar issue and I am sure this is going to be a problem soon. Thanks.

ClaritySupport commented 1 week ago

Hello,

Please reachout to us at @.**@.> with Clarity project iD , website address and description of the issue.

Thanks, Clarity Support Team Visit our docs!: https://docs.microsoft.com/en-us/clarity @.**@.> @.***

Confidentiality note: This e-mail, and any attachment to it, contains privileged and confidential information intended only for the use of the individual(s) or entity named in the e-mail. If the reader of the e-mail is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that reading it is strictly prohibited. If you have received this e-mail in error, please immediately return it to the sender and delete it from your system.

From: aasiddiqui @.> Sent: Wednesday, September 4, 2024 9:48 PM To: microsoft/clarity @.> Cc: Microsoft Clarity Support @.>; Mention @.> Subject: Re: [microsoft/clarity] MS Clarity cookies are affected on Google Chrome browser - how to prepare before Q3? (Issue #543)

What Email address I should use to send project ID ? We are facing similar issue and I am sure this is going to be a problem soon. Thanks.

- Reply to this email directly, view it on GitHubhttps://github.com/microsoft/clarity/issues/543#issuecomment-2330588515, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AW5BXQ7HQCLS3S27XNMNTELZU7O7FAVCNFSM6AAAAABEFHSWLOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZQGU4DQNJRGU. You are receiving this because you were mentioned.Message ID: @.**@.>>

aasiddiqui commented 1 week ago

I can not see the email address it is showing with stars/encrypted.

ClaritySupport commented 1 week ago

Hello,

Please share below details here to assist further.

Thanks, Clarity Support Team Visit our docs!: https://docs.microsoft.com/en-us/clarity @.**@.> @.***

Confidentiality note: This e-mail, and any attachment to it, contains privileged and confidential information intended only for the use of the individual(s) or entity named in the e-mail. If the reader of the e-mail is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that reading it is strictly prohibited. If you have received this e-mail in error, please immediately return it to the sender and delete it from your system.

From: aasiddiqui @.> Sent: Thursday, September 5, 2024 5:47 AM To: microsoft/clarity @.> Cc: Microsoft Clarity Support @.>; Mention @.> Subject: Re: [microsoft/clarity] MS Clarity cookies are affected on Google Chrome browser - how to prepare before Q3? (Issue #543)

I can not see the email address it is showing with stars/encrypted.

- Reply to this email directly, view it on GitHubhttps://github.com/microsoft/clarity/issues/543#issuecomment-2331547288, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AW5BXQ5EW7BUOGW3WANXLLTZVBHF7AVCNFSM6AAAAABEFHSWLOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZRGU2DOMRYHA. You are receiving this because you were mentioned.Message ID: @.**@.>>