braekling / WP-Matomo

Official WP-Matomo (former WP-Piwik) repository
GNU General Public License v3.0
31 stars 29 forks source link

Add integration to GDPR plugin cookies #106

Open robertoschwald opened 2 years ago

robertoschwald commented 2 years ago

It would be great if this plugin could support GDPR plugin cookies by letting admins enter cookie names and values which cause the tracking to work or not. This feature is available in other solutions, where you can enter a cookie name/value to control the tracking. Only if the given cookie value is received from the browser, tracking is active. This has mainly 2 advantages:

  1. You can control tracking opt-in by GDPR banner plugins (like Complianz) - default would be no tracking until the user consent in tracking within the GDPR banner
  2. You can lock down the Matomo installation by only allowing piwik.js / matomo.js / container_*.js to the public. All other Matomo pages can be locked down to be accessible by named IPs only (Unfortunately, the opt-out feature is integrated into the index.php)