Cookies created by Matomo start with:
mtm_consent_removedand mtm_cookie_consent: when you’re asking your users for consent
matomo_ignore, when you exclude yourself from being tracked (opt-out) using the cookie method or using the iframe opt-out method. (Note: when Matomo is setup on a different domain than the website being tracked, the
matomo_ignorecookie will be a third party cookie. This cookie does not contain personal information or any ID and the cookie value is the same for all visitors)
matomo_sessid, when you use the opt-out feature (this is called a nonce and helps prevent CSRF security issues)
_pk_hsr, when you use the Heatmap or Session Recording)
Matomo by default does not use third party cookies but you can enable a third party
_pk_uid cookie if you wish.
Learn more about What data does Matomo track?.
Default expiration times
The cookies described above will eventually expire and be removed from your users’ browsers.
_pk_id– 13 months (used to store a few details about the user such as the unique visitor ID)
_pk_ref– 6 months (used to store the attribution information, the referrer initially used to visit the website)
_pk_hsr– 30 minutes (short lived cookies used to temporarily store data for the visit)
_pk_testcookieis created and should be then directly deleted (used to check whether the visitor’s browser supports cookies)
mtm_consent_removed) are created with an expiry date of 30 years to remember that consent was given (or removed) by the user. It is possible to define a shorter expiry period for your user consent by calling: _paq.push([‘rememberConsentGiven’, optionallyExpireConsentInHours]). Learn more in the Asking for consent developer guide.
mtm_cookie_consentis created with an expiry date of 30 years to remember that consent for storing and using cookies was given by the user. It is possible to define a shorter expiry period for your user cookie consent by calling:
_paq.push(['rememberCookieConsentGiven', optionallyExpireConsentInHours]);. Learn more in the Asking for consent developer guide.
matomo_ignore– 30 years
matomo_sessid– 14 days (It is important to note that it doesn’t contain any data used to identify visitors and is considered an “Essential” cookie)