segmentio / consent-manager

Drop-in consent management plugin for analytics.js
https://segmentio.github.io/consent-manager/
MIT License
341 stars 141 forks source link

Tracking Preferences cookie set although did not allow it. #224

Closed webgurus closed 2 years ago

webgurus commented 2 years ago

When loading a website with the consent banner, I'm getting the tracking-preferences cookie set in the browser although I have never accepted the consent. When I refresh the banner doesn't show because it sees the tracking-preferences cookie set.

Steps to recreate:

  1. Go to this website https://glorify-app.com
  2. Notice that you have the consent banner at the bottom.
  3. Don't click anything on the banner
  4. Refresh the page
  5. Notice in Dev tools that the cookie is set ("tracking-preferences")
  6. Notice on the site the banner doesn't show anymore.

See screenshot on how it sets the cookie as soon as the banner is displayed or on first visit.

Screen Shot 2022-05-06 at 3 54 22 PM

Let me know what I can do to make this work as expected.

Thanks

edsonjab commented 2 years ago

Hi @webgurus could you help me to show me, how did you implement the banner, please?, I tried replicated the issue on another project but I can't

webgurus commented 2 years ago

Hello @edsonjab see the code below:

`

`