Matomo (privacy by design): GDPR, cookies and installation

Analytics
Consent-controlled integration
Matomo (privacy by design)
7 cookies listed Privacy policy
service matomo
18M
requests / 30 days

73.37% consent


Matomo (privacy by design) and GDPR: how to manage consent

Matomo (privacy by design) is an audience measurement or analytics service. Depending on its configuration, its use may involve browser storage, tracking technologies or the transmission of data to a third-party provider.

When the configuration of Matomo (privacy by design) requires consent, the service should only be activated after the visitor has made a choice. tarteaucitron can condition its loading on that decision.

Managing Matomo (privacy by design) with tarteaucitron

When Matomo (privacy by design) is integrated through tarteaucitron, its activation is managed according to the visitor's consent choice. The service can therefore be loaded only when the corresponding permission has been granted and the visitor can later change this choice through the consent interface.

Cookies and storage used by Matomo (privacy by design)

The current tarteaucitron integration declares 7 cookies associated with Matomo (privacy by design):

  • _pk_ref
  • _pk_cvar
  • _pk_id
  • _pk_ses
  • _pk_hsr
  • piwik_ignore
  • _pk_uid

This list corresponds to the cookies currently declared in the tarteaucitron service definition. The service provider may change its technical implementation over time.

Configuring Matomo (privacy by design)

Add the following code to your website after initializing tarteaucitron. Replace the example values with those provided by Matomo (privacy by design).

<script>
tarteaucitron.user.matomoId = SITE_ID;
(tarteaucitron.job = tarteaucitron.job || []).push('matomo');
</script>

Additional code

The following code can already be present on your website and should be kept where the service is used.

<script>tarteaucitron.user.matomoHost = 'YOUR_MATOMO_URL';</script>

Code to remove

Default HTML code to remove from your website:

<script type="text/javascript"> var _paq = _paq || []; _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="YOUR_MATOMO_URL"; _paq.push(['setTrackerUrl', u+'piwik.php']); _paq.push(['setSiteId', SITE_ID]); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s); })(); </script>

For a complete guide, read the documentation to install tarteaucitron.js.

Privacy information

For detailed information about the processing of data by Matomo (privacy by design), cookies and applicable retention periods, refer to the documentation or privacy policy published by the service provider:

Matomo (privacy by design) privacy information

Frequently asked questions about Matomo (privacy by design)

Does Matomo (privacy by design) require consent?

It depends on how Matomo (privacy by design) is configured and which data is processed. Audience measurement tools using non-exempt tracking technologies generally need to be conditioned on the visitor’s consent.

How does tarteaucitron block Matomo (privacy by design)?

tarteaucitron controls the activation of Matomo (privacy by design) according to the consent choice recorded for the visitor. The service code is triggered through tarteaucitron instead of being loaded independently from the consent manager.