Opened 2 years ago

Closed 2 years ago

#2772 closed New feature (fixed)

New Privacy feature: "Disable all tracking cookies" (EU Privacy regulation update)

Reported by: matt Owned by:
Priority: critical Milestone: Piwik 1.8
Component: Core Keywords:
Cc: Sensitive: no


Discussed in forum post New EU Privacy regulation: we need an "opt-in" for statistics cookies.


  • piwik.js new method disableCookies() that would 1) delete existing cookies if any 2) skip all cookie setters
  • In the JS display code page, we should add a box that when ticked, would add the call to piwikTracker.disableCookies() in the JS snippet, see #1845

Another idea is to add a Setting in addition to the JS customization. The setting when enabled would hide all reports that will not work after stop using cookies (Days since visit, unique visitors, etc.). But the overhead of adding a setting does not sound worth the benefit of less UI clutter... especially since this law is really extreme and Piwik users are doing a lot better by default in terms of privacy protection!

Useful & quite easy feature, so good one anyway, in line with our fight for better Privacy to all.

Change History (6)

comment:1 Changed 2 years ago by matt (mattab)

  • Milestone changed from 1.x - Piwik 1.x to 1.8 Piwik 1.8

comment:2 Changed 2 years ago by matt (mattab)

Also (maybe this needs a new ticket but would be nice to do at same time)

Technical enforcement – Expiration time frames for cookies and other 
technologies that store data on users’ computers should be set to match, 
not exceed, the data retention time frames adopted by agencies and their 

So I think it's just a matter of adding a FAQ at least, explaining how to change cookielifetime to a max of 30 days (for example, based on after how long raw visitor logs are deleted).

  • Document the list of cookies created during tracking, in the Privacy page `

comment:3 Changed 2 years ago by matt (mattab)

  • Priority changed from major to critical

comment:4 Changed 2 years ago by matt (mattab)

  • Milestone changed from 1.9 Piwik 1.9 to 1.8

Law went live in the UK on May 26th so we need to add this feature in the next release.

comment:6 Changed 2 years ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

(In [6387]) Fixes #2772

  • New Javascript function disableCookies() to disable all cookies

Note: See TracTickets for help on using tickets.