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

Amplitude Cookies lifetime are not GDPR compliant #275

Closed
Vadorequest opened this issue Jul 20, 2020 · 7 comments
Closed

Amplitude Cookies lifetime are not GDPR compliant #275

Vadorequest opened this issue Jul 20, 2020 · 7 comments
Labels
enhancement New feature or request priority medium

Comments

@Vadorequest
Copy link

Amplitude default cookie configuration doesn't respect GDPR, as it states cookies tracking users should live no longer than 13 months (according to French CNIL) and 12 months according to GDPR itself (https://gdpr.eu/cookies/#:~:text=All%20persistent%20cookies%20have%20an,you%20do%20not%20take%20action.), while those created by the JS SDK live for 10 years by default.

I strongly suggest you change the default lifetime of cookies created by Amplitude SDKs to match this requirement (12 months). Here is a screenshot of cookies created by Amplitude JS SDK at https://nrn-v2-mst-aptd-at-lcz-sty-c1-amplitude-g.vercel.app/fr

image

This single violation of the GDPR makes Amplitude non GDPR compliant (according to my attorney).

Also, I haven't found any way of changing that behavior through configuration of the JS SDK at https://developers.amplitude.com/docs/javascript-sdk-reference, and I suggest such option gets added for people who'd have even stricter rules regarding cookies (or to gracefully handle any future change in the GDPR itself, regarding this particular matter).

@kelvin-lu kelvin-lu added enhancement New feature or request priority medium labels Aug 24, 2020
@Vadorequest
Copy link
Author

Vadorequest commented Sep 8, 2020

@kelvin-lu Thanks for prioritizing this. Any idea when it might be done? Rough ETA? Q3/Q4 2020?

Also, could you elaborate on what is intended to be done here? Change the default value? Add an option to customise the default value? (more flexible, IMHO)

@kelvin-lu
Copy link
Contributor

@Vadorequest we'll likely start with a fix this week /next week to change the default value to be gdpr compliant, and then look into optioning later on!

@kelvin-lu
Copy link
Contributor

@Vadorequest I started looking over this (briefly) and I noticed that there's a cookieExpiration option that can be passed in to configure the # of days the cookie lives for - have you found this to work?

We're still planning on addressing the default value but wanted to bring this as a possible workaround for the time being!

@Vadorequest
Copy link
Author

Vadorequest commented Sep 11, 2020 via email

@kelvin-lu
Copy link
Contributor

Only very lightly - and not with good documenting practices; apologies! We're in the process of updating our documentation to be more helpful and we'll keep this in mind! :)

@Vadorequest
Copy link
Author

I can confirm cookieExpiration: 365 does work! 😄

I believe this solves the original issue, since it allows us to control how much time a cookie can live, and make ourselves compliant with GDPR-related stuff.

@kelvin-lu
Copy link
Contributor

This will be addressed in the next deployment - setting the cookie lifetime to 365 by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority medium
Projects
None yet
Development

No branches or pull requests

2 participants