Matomo has a built-in Consent API that expects your CMP to call specific methods when consent state changes. Intastellar Consents calls _paq.push(['rememberConsentGiven']) and _paq.push(['forgetConsentGiven']) automatically based on the visitor's analytics consent decision.
How to set up
Enable consent mode in Matomo
In your Matomo instance, go to Administration → Privacy → Asking for consent and enable "Matomo Consent Manager". This puts Matomo into consent-required mode.
Install Intastellar Consents
Add the Intastellar Consents script to your site. The Matomo consent API calls are made automatically. No custom code required.
Verify
Visit your site in incognito mode. Matomo should not record the visit until analytics consent is accepted. Accept consent, reload: the session should now appear in your Matomo reports.
What you get
- Calls rememberConsentGiven and forgetConsentGiven automatically
- Compatible with Matomo Cloud and self-hosted instances
- Works with Matomo's cookie-free tracking mode
- Consent state updates in real time on preference change
- Compatible with Matomo Tag Manager