django-analytical
django-analytical copied to clipboard
Ask for consent - Matomo (Piwik)
This is a pull request to add the "Ask for consent" functionality from Matomo (Piwik). Especially relevant in the context of the new GDPR in Europe.
See: https://developer.matomo.org/guides/tracking-javascript-guide#asking-for-consent
Fixes #141
Merged the newest version of django-analytical into my fork.
I think this PR was forgotten, can we get it merged, @bittner?
Probably it makes more sense now to add these changes to the newly created Matomo tag.
I added the 'ask for consent' logic and documentation to the new matomo files and renamed everything accordingly.
But now the Travis CI check fails and I don't know why. Any suggestions?
But now the Travis CI check fails and I don't know why. Any suggestions?
Flake8 complains about a missing newline in the test file:
./analytical/tests/test_tag_matomo.py:157:66: W292 no newline at end of file
It's a good idea to configure your IDE in a way that it ensures a final newline in every file you touch. Most modern IDEs have such a setting now.
This PR needs to be rebased and its conflicts resolved. In addition, some review comments may still need to be addressed. But then it would be ready to be merged.
Want to give it another try?