Skip to content

Add an option to change life of the visitor cookie, or disable, on tracker creation #504

Description

Hi,

I was looking into the tracker and saw that the lifetime of the cookie is hard-coded to 2 years.
The problem for me is in France, the CNIL (national organization for liberty and privacy) set the maximum life of a cookie to 13 months.
I think a configuration argument on the creation of the tracker could be helpful for that, same as for the session timeout or Do Not Track.
I suppose the only change is on the line 169 in this file to get the argument from argmap.
https://github.com/snowplow/snowplow-javascript-tracker/blob/master/src/js/tracker.js
I can make a pull request with the change if you want.

Regards,
Matthieu

Metadata

Metadata

Labels

priority:highTo fix as soon as possible.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions