I’m in the UK, and I’ve just read that (fairly recent) rules on cookies mean that, basically, we have to get the user’s explicit permission (just providing an opt-out doesn’t count) before sending a cookie. I’m guessing the easiest way to do this would be to disable cookies for Piwik altogether, rather than messing about with code that asks the user (who will probably say ‘no’ anyway).
From what I understand after reading this post, Piwik isn’t totally reliant on cookies, so disabling them shouldn’t affect the reports too much.
So my plan at the moment is simply to comment out all of the relevant calls to setCookie() in PHP and whatever the JS equivalent is. However, I’m new to Piwik, so I don’t know where these are. I’d be grateful if someone could let me know (a) if this is likely to work, and (b) which files I need to look in.
P.S. For anyone who’s interested, the ICO’s guidelines on the cookie rules are here: http://www.ico.gov.uk/for_organisations/privacy_and_electronic_communications/~/media/documents/library/Privacy_and_electronic/Practical_application/advice_on_the_new_cookies_regulations.pdf
P.P.S. I’m only interested in disabling cookies for the tracking side of things; I’m the only one that uses the reports / admin section (and I’m happy to grant my own website permission to put cookies on my computer…).