How can I turn off visitor cookies?

Administration

Needed permissions: owner

Sometimes you may want to turn off visitor cookies and not use them to collect data. This may be because you want to comply with certain privacy laws or for other reasons.

Without cookies, your data will be less accurate. That’s because cookies store visitor data, such as a visitor ID. This ID helps us recognize returning visitors and their sessions. At the end of this article, we’ll show you how turning off cookies can affect your data.

To turn off cookies, follow these steps:

  1. Go to Menu > Administration.
  2. Navigate to Sites & apps.
  3. On the left, pick the site or app you want to work with.
  4. Navigate to Privacy > Compliances.
  5. Turn off Use visitor cookies.
    Visitor cookies off in Piwik PRO

    Note:

    • This setting applies to consenting visitors, or to all visitors if you don’t ask for consent. Visitor cookies can also be turned on or off for non-consenting visitors in Administration > Sites & apps > Privacy > Ask visitors for consent > Collect anonymous data from non-consenting visitors. Read more
    • If you turn off both visitor cookies and session hashes, each event will be treated as a new session and you won’t recognize visitors.
  6. Done!

Note: Some triggers in Tag Manager create cookies to function correctly. If you use one of the following conditions in triggers, we’ll set a cookie:

  • Event condition > Traffic source
  • Event condition > Returning visitor
  • Event condition > Campaign
  • Event condition > External referrer 
  • Multiplicity > Fire tag once per session
  • Multiplicity > Fire tag multiple times per session, excluding first
  • Multiplicity > Fire tag once per page view

If you don’t want to use these cookies, don’t set these conditions in the trigger. More about cookies

Comparison of options

We’ll now show you how your data might change when cookies are deactivated. We’ll also compare different data collection methods, helping you understand how combining them can influence your data.

Consenting visitors or all visitors if you don’t ask for consent
Visitor cookies & session hash Session hash only Visior cookies only No visitor cookies & session hash
Mechanisms used to collect data
First-party cookies
Local storage
Session hash
Collected data
Visitor’s IP address Yes / No Yes / No
Visitor ID
Capture all traffic
New vs. returning visitors
Visitor’s session
Visitor’s location Latitude, Longitude, Organization, Provider, City, Region, Country, Continent Latitude, Longitude, Organization, Provider, City, Region, Country, Continent Latitude, Longitude, Organization, Provider, City, Region, Country, Continent Latitude, Longitude, Organization, Provider, City, Region, Country, Continent
Events
Traffic sources
Channel attribution Last-click
position-based
first-click
last-non-direct-click
time-decay
linear and custom models
Last-click Last-click
position-based
first-click
last-non-direct-click
time-decay
linear and custom models
Privacy laws
Compliant with Countries without privacy laws
CCPA
HIPAA
Cookie laws
HIPAA
Cookie laws
HIPAA
GDPR
UK GDPR/PECR
TDDDG
HIPAA

Was this article helpful?

Technical support

If you still have any questions, visit our community.
There’s always someone happy to help!

Back to help center