django-analytical icon indicating copy to clipboard operation
django-analytical copied to clipboard

Asking for consent - Piwik

Open jayhaluska opened this issue 6 years ago • 0 comments

Hey guys,

I just realized that there is no way to use the "Ask for consent" feature of Matomo (Piwik). This is relevant because of the new GDPR in europe. I'm about to create a pull request for this one, but I want to hear your opinions on my implementation idea.

I want to introduce a PIWIK_ASK_FOR_CONSENT variable, like PIWIK_DISABLE_COOKIES. To make it easy for the user of the consent functionality to integrate the request for consent, I wrote event listeners which are triggered on click and are attached to DOM elements with the following id's:

piwik_deny_consent piwik_give_consent

What do you think? Do you see any problems with this kind of implementation?

jayhaluska avatar Jan 11 '19 22:01 jayhaluska