Before collecting analytics data with Matomo, you must determine whether user consent is required based on your market, location, applicable privacy laws, and how Matomo is configured.

We always recommend that you speak to your legal or privacy advisors, as they are best positioned to understand your specific business operations, applicable laws, and regulatory obligations. They can help ensure that your use of Matomo aligns with privacy laws such as GDPR, ePrivacy Directive, or other local regulations that are applicable to your website.

If you need to obtain user consent before tracking their data, you can integrate Matomo with your consent manager using one of these guides:

If you do not use one of the above consent managers, you can implement tracking with consent using the Matomo JavaScript API.

With user consent mode enabled, Matomo will only start tracking once the visitor to your website has given their consent. This can be used to ask for consent, for example, before enabling tracking cookies or before tracking any personal data, or tracking Session Recordings or Heatmaps.

Keep in mind that you should always comply with applicable privacy regulations and obtain user consent where it is required.

Previous FAQ: Can I track a visitor without cookies when they have not given consent for tracking cookies?