segmentio / consent-manager

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

Recreate cookie if user has trail linked to their ID on Segment #329

Open rafaelluz-f opened 1 year ago

rafaelluz-f commented 1 year ago

Hey everyone,

If a user deletes their cookies but has a trail linked to their ID on Segment, can the consent manager recreate the cookie?

edsonjab commented 1 year ago

Hi @rafaelluz-f, It is not possible because Consent-manager reads the cookie to load the previous preferences, if isn't exist create a new one with a random ID.

rafaelluz-f commented 1 year ago

Thanks for your answer @edsonjab, could this be added?

seg-leonelsanches commented 1 year ago

Hi @rafaelluz-f. This is not a feature from Consent Manager: it's related to analytics.js, that deals with local storage/cookies.

When a cookie is deleted, we lose the audit reference entirely. Therefore the user will need to consent the cookie preferences again.