Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Tracking Options

No security coverage Obsolete 5 sites

This module allows users to opt-in or opt-out of tracking services like Matomo and Google Analytics. It helps sites comply with privacy regulations by offering granular control over analytics scripts and respecting browser Do-Not-Track settings.

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:

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.

Ask your assistant about Tracking Options

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Oct 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
1.0.0-beta10 Pre-release 9–10 Nov 18, 2023
1.0.0-beta9 Pre-release 9–10 Oct 11, 2023