Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] - Cookies used prior to consent given #567

Open
mmonteiroc opened this issue Apr 3, 2024 · 2 comments
Open

[Bug] - Cookies used prior to consent given #567

mmonteiroc opened this issue Apr 3, 2024 · 2 comments
Labels
js Issues specific to clarity-js package

Comments

@mmonteiroc
Copy link

mmonteiroc commented Apr 3, 2024

Clarity version: v0.7.26

We are implementing clarity in our app, and as you can see in the following screenshots, the cookies are set before consent to clarity has given.
image
image

  const clarity = window.clarity;
  if (!!clarity) {
    clarity('consent');
  }

Now, we are aware that cookies are empty, and only filled with a value when consent is given. And erased the value when the consent is removed, but we would expect for the cookies to be erased / not used until consent is granted, instead of using them "empty"

@mmonteiroc mmonteiroc changed the title [Bug] - Cookies used prior to consent give [Bug] - Cookies used prior to consent given Apr 3, 2024
@AbdelrhmanMagdy AbdelrhmanMagdy added the js Issues specific to clarity-js package label Apr 3, 2024
@mmonteiroc
Copy link
Author

Also mention, that when we give consent, everything works.

When we use "clarity('consent', false)", the same thing happens ( cookies remain, but with empty value )

@mmonteiroc
Copy link
Author

As an add on, we just discovered that the MUID cookie is added before the consent is given.

Either this cookie should be flagged as "strictly necessary" ( so that we can comunicate this to our customers ) or it should only be added once the consent has been given

System is the same one as previously mentioned, where cookies are disabled by default, and the consent is notified like this window.clarity('consent')

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
js Issues specific to clarity-js package
Projects
None yet
Development

No branches or pull requests

2 participants