_pk_id and _pk_ses are created without prior consent

Hello everyone! I’m trying to set up Matomo WordPress Plugin with Cookie Opt-In. I am mainly following this guide.

In WP Dashboard → Matomo → Settings → Tracking I set a custom tracking code, adding _paq.push(['requireConsent']); as seen here

With this set, I expect that _pk_id and _pk_ses Cookies are not created unless I explicitly call setConsentGiven. But they are still created.

Is my expectation wrong, is it intented for them to be created even without explicit consent?

2 Likes