Back to blog

Anonymous tracking: How to do useful analytics without personal data usage [Updated]

Analytics Data privacy & security

Written by , ,

Published November 24, 2021

Anonymous tracking: How to do useful analytics without personal data usage [Updated]

GDPR restrictions on the collection and use of personal data mean that many analytics users are asking themselves: Can I do useful analytics without personal data?

The simple answer is yes. Although you won’t be able to draw the same conclusions as with personal data, an anonymous data collection method provides you with useful insights into user behavior. We’ll show you how. But first, let’s talk about GDPR and anonymous tracking.

What you need to remember is:

  • GDPR and the ePrivacy directive set a pretty high bar when it comes to data anonymization
  • GDPR requires consent to process the data if it’s reasonably likely this data could be used to identify an individual
  • Consent opt-ins vary between 30% and 70%, depending on the industry
pro tip

If you want to collect and process data without users’ consent, make sure that it has been completely anonymized and that your analytics software allows such tracking. 

Here you can compare tracking options offered by the most popular analytics vendors.

If you want to use data about your visitors without collecting consents, you need to make sure that the data is REALLY anonymized (that won’t be the case with Google Analytics – here you can read why).

Fortunately, there are some tools on the market that will be up to the task. Analytics platforms featuring anonymous data collection, such as Piwik PRO, offer a middle way, instead of an all-or-none choice based on consent.

Anonymous tracking – how it really works

Let’s dive into the nitty-gritty of anonymous tracking used in Piwik PRO. The platform gives you three anonymous tracking methods to choose from:

1. Anonymous tracking with cookies and session data

In this scenario, Piwik PRO deploys a session identifier as a cookie that collects session data but no personal data. After 30 minutes, which is the duration of a session, Piwik PRO removes the identifier from the browser.

The major advantage of this approach is that it gives you more trustworthy data than any other anonymous data tracking method.

2. Anonymous tracking without cookies but with session data

In this method, Piwik PRO deploys a session identifier in the form of a device fingerprinting. The platform collects only session data, without personal data. 

The major advantage of this method is that it’s permissible under several regulations. The downside is that it creates duplicate sessions. This translates into slightly less accurate data.

3. Anonymous tracking without cookies or session data

This method can’t identify an individual and can’t be used to pinpoint a single session. It doesn’t track time spent on page, bounce rate, user flows, funnels or channel attribution. 

That said, it’s still useful in many business use cases. It’s also the most strict of all the presented methods.

Here’s a short recap:

Piwik PRO tracking methods Event tracking User/device tracking Session metrics Uses cookies Needs a consent mechanism
Anonymous data tracking with cookies and session data
Anonymous data tracking without cookies, but with session data
Anonymous data tracking without cookies or session data

If you want to read more about this topic, we suggest these posts:

How to use anonymous analytics data in your marketing activities – the fine print

Anonymous data can only attribute a certain type of action to a single visitor across a single session. That means you won’t be able to determine if any of those actions were performed by a returning visitor. Also, you won’t be able to connect data from multiple sessions.

All three methods work under the following conditions:

  • Browser fingerprinting is deactivated
  • The geolocation is based on anonymized IP addresses or is deactivated
  • No personal data is tracked and stored in the database without explicit consent
  • Visitors who don’t consent appear as one-time visitors and can’t be identified across sessions

The lack of persistent tracking means your data can’t be used for marketing activities, such as:

  • Long-term personalization
  • Remarketing
  • Attribution of conversions to actions taken over several visits

Anonymous analytics: understand the behavior of your website visitors

With all the technicalities explained, it’s time to show you some use cases for working with anonymous data.

Let’s say your company wants to understand user behavior on your site.
You’re especially interested in the following series of actions:

  • A click on the “learn more about a product” button
  • A click on a “contact” information page
  • A click on a “schedule a meeting form” on the contact page

Fortunately, you’ll have no problem with getting this kind of information from anonymized data, since:

  • Anonymous data shows how the site performed based on a large sample of visitors. You’ll be able to track almost any action (number of visitors, page views, conversions and time spent on the site) and in most cases credit them to a single visitor. In other words, you’ll know that an anonymous visitor first performed action A, then B and then C during their session.
  • What’s more, basic attribution is also possible. Your company will still see how visitors got to the site through organic search, Google, an ad campaign, etc.
anonymous tracking in piwik pro
Anonymous tracking in Piwik PRO

Anonymous tracking and personal data tracking: a hands-on use case

Let’s say a visitor ignores the consent dialog at first, browses for 15 minutes, and in the end allows you to use their personal data for personalization. 

The data from those 15 minutes of browsing can be added to their record now by using a cookie with a longer lifetime (12 months in the case of Piwik PRO).

Initially, such data was anonymous, but now it can be used for personalization every time this person visits your website.

Want to learn more about Google Analytics and personal data collection?
Read our article: Is Google Analytics GDPR-compliant? 10 things to consider

Can a website visitor block anonymous tracking?

Since one of the methods is based on a session cookie, you may wonder if it will still work if the visitor blocks cookies, for example through their browser settings or an ad blocker. There are a few things to clarify:

  1. Most of the cookies contain personal data, but there are exceptions. The session identifier cookie, which Piwik PRO uses for anonymous data collection, doesn’t collect any personal data, as the browser automatically deletes it after 30 minutes. It’s unlikely to identify a person based on the actions taken on a single website.
  2. In many EU countries, privacy-friendly analytics is exempted from the consent requirement. For example, CNIL, the French data protection authority, has added Piwik PRO Analytics Suite to the list of analytics platforms that can be used to collect data without consent, given a certain configuration and set of limitations. Read more about this here.
  3. First-party cookies are rarely blocked. Browsers and ad blocking software are getting more successful in detecting third-party scripts. That said, analytics experts estimate that only about 1% of Internet users deactivate JavaScript or block all cookies. And if that’s not enough, you can always switch to the session identifier without a cookie.

Analytics without personal data usage – a long history and a promising future

Although anonymous data collection is still rare in web marketing and analytics, it has a long and productive history in other fields. Whole books have been written about anonymizing health data, for example.

To respond to data privacy demands of internet users all over the world, those employing web analytics will have to adapt some of these methods. Anonymous data collection such as the one used by Piwik PRO Analytics Suite is a first step in this direction.


David Street

Writer, marketer and data+stats specialist with a left and a right brain | LinkedIn profile

See more posts by this author


Karolina Lubowicka

Senior Content Marketer and Social Media Specialist

An experienced copywriter who takes complex topics of data privacy & GDPR and makes them understandable for all. LinkedIn Profile

See more posts by this author


Sebastian Synowiec

Senior Content Marketer

Sebastian throws user experience, web analysis and data protection into a pot and shakes it up with creative writing. At Piwik PRO, he delivers easy to read content about new developments and complex topics for various target groups.

See more posts by this author

Core – a new plan for Piwik PRO Analytics Suite

Privacy-compliant analytics, built-in consent management and EU hosting. For free.

Sign up for free

How to Leverage Web Analytics  When Your Company is Dealing with Tons of Sensitive Data
Upcoming live webinar

May 26, 2022

Life after Universal Analytics: What makes Piwik PRO a better alternative than Google Analytics 4

In July 2023 Google Universal Analytics, known as Google Analytics 3, will become history. Companies need to decide what to do next – switch to the controversial Google Analytics 4 or consider other options. Find out why Piwik PRO Analytics Suite might be a great alternative to Google products. Learn how to easily migrate your analytics to a privacy-friendly EU-based platform. Get all your questions answered during a Q&A session.

Sign up for this webinar