symbolized stop panel - Tracking Options Logo

This project is not covered by Drupal’s security advisory policy.

Your users have a right for privacy.

Regulations like the e-privacy directive and the GDPR give people specific privacy rights in relation to electronic communications.

This module provides a way for also anonymous users to opt-out or to opt-in for:

  • Matomo
  • Google Analytics

This list may be expanded in future.

Opt-out
Some privacy enhanced analytics tools like Matomo may be configured in a way, so that just an opt-out is necessary.

Opt-in
In general you must tell people if you set cookies, and clearly explain what the cookies do and why. You must also get the user’s consent. Consent must be actively and clearly given.

Cookies or similar devices must not be used unless the subscriber or user of the relevant terminal equipment:
(a) is provided with clear and comprehensive information about the purposes of the storage of, or access to, that information; and
(b) has given his or her consent.

https://ico.org.uk/for-organisations/guide-to-pecr/guidance-on-the-use-o...

You can use this module on top of:
Drupal Matomo Module
Drupal Google Analytics Module

Features:
- Can prevent loading the analytic scripts by default (Opt-In)
- Uses the browser storage instead of a cookie for the user setting (no iframe for e.g. Matomo is needed to allow users to check/choose their settings! so the info uses your theme css/font and is also easily style able)
- Opt-out for privacy enhanced tools like Matomo
- Provides a token and a block to place the Opt-In/Out checkbox and translatable text somewhere on your site
- This module respects the Do-Not-Track Browser setting by default! Info will be shown instead of the checkbox if a user has this setting active in his browser.
- Translatable via Drupal Interface Translations
- Simple js

This simple Info can be displayed directly somewhere at your website (e.g. the Privacy page) and will switch the infos as selected:

tracking option

Thanks to Jon Uhlmann for his work over at dev.to after we had a discussion about this topic :)

Some more information and a list of OpenSource analytics tools can be found here.

Supporting organizations: 
Initial development and ongoing support.

Project information

Releases