In some countries, the law requests websites to provide a way for users to opt-out of all tracking, in particular tracking cookies.
[...] // Call disableCookies before calling trackPageView _paq.push(['disableCookies']); _paq.push(['trackPageView']); [...]
Note: when cookies are disabled, there may still be a few cookies created in specific cases:
- when you exclude yourself from being tracked using the cookie method or using the iframe opt-out method, Matomo will create a cookie
matomo_ignoreset on the domain of your Matomo server (a temporary short-lived cookie called
MATOMO_SESSIDwill also be created).
- when you’re asking for consent before tracking visitors, a cookie
mtm_consentwill be created.