# GDPR compliant analytics: what the law asks of your analytics setup

Updated 2026-11-23

GDPR compliant analytics is an analytics setup that collects as little personal data as it needs, stores nothing on the visitor's device without consent, keeps data for a stated period and is covered by a data processing agreement. No tool is compliant on its own, because compliance depends on how you use it, but CrispStats is built to make it straightforward: no cookies, no stored IP addresses and a published DPA. This is general information, not legal advice.

## Nothing stored on the device

This settles the ePrivacy question for analytics: no cookie, no localStorage entry and no cached id, so there is nothing on the device for Article 5(3) consent to cover.

More: [Realtime](/features/realtime)

## No IP address or raw user agent stored

Both are read at the edge to compute a daily visitor hash, an approximate location and the device type, then discarded. Location is rounded to about 11 km.

More: [Live globe](/features/live-globe)

## Revenue without the customer's email

Payments are matched to visits through a visitor id your checkout passes along. The buyer's email is kept only as a one-way hash and a masked form such as j***@e***.com, never in plain text.

More: [Revenue attribution](/features/revenue-attribution)

## Journeys that end at midnight

Visitor journeys hold for one day. Linking visits across days or devices only happens if you identify signed-in users yourself.

More: [Visitor journeys](/features/visitor-journeys)

## Which laws apply to website analytics?

Two European rules apply, and they ask different questions:

Two rules, two questions

| Rule | The question it asks | What it means for analytics |
| --- | --- | --- |
| ePrivacy Directive, Article 5(3) | May you store or read anything on the visitor's device? | Analytics cookies and local storage ids need prior consent in most EU countries |
| GDPR | Do you process personal data, and on what legal basis? | IP addresses and cookie ids count as personal data, so you need a basis, limits and contracts |

The GDPR defines personal data in [Article 4(1)](https://gdpr-info.eu/art-4-gdpr/) as information about an identifiable person, and [Recital 30](https://gdpr-info.eu/recitals/no-30/) names IP addresses and cookie identifiers as online identifiers. The European Data Protection Board's [Guidelines 2/2023](https://www.edpb.europa.eu/our-work-tools/our-documents/guidelines/guidelines-22023-technical-scope-art-53-eprivacy-directive_en) explain that the ePrivacy rule reaches beyond cookies to other ways of reading or storing data on a device, and they include some tracking that relies on the IP address alone. That is why regulators do not all read cookieless analytics the same way. Read the [GDPR](/glossary/gdpr) and [ePrivacy Directive](/glossary/eprivacy-directive) entries for the background.

## What does GDPR compliant analytics need?

A short checklist, in the order a regulator or a customer's privacy team tends to ask:

1. **Data minimisation.** Collect what answers your questions and nothing more. Full IP addresses, long-lived ids and full URLs with query strings are the usual excess.
2. **A legal basis.** Consent or legitimate interests are the two usual bases for analytics. Less data makes legitimate interests easier to argue.
3. **No device storage without consent.** This is the ePrivacy part. A tool that stores nothing leaves no analytics cookie for your banner to ask about.
4. **A retention limit.** A number of months, written down, after which data is deleted.
5. **A data processing agreement.** The vendor processes data for you, so you need a DPA and a list of its subprocessors.
6. **A lawful route for transfers.** If data leaves the EU, you need a mechanism for it, such as an adequacy decision or standard contractual clauses.
7. **An honest privacy policy.** Say what you collect, why and for how long.

## What does CrispStats collect, and for how long?

What each event holds

| Data point | Stored | Personal data? |
| --- | --- | --- |
| Page path, referrer, UTM tags | Yes, query strings trimmed in the browser | Not on its own |
| Country, region, city | Yes, approximate | Not on its own |
| Browser, operating system, device type | Yes | Not on its own |
| Daily visitor hash | Yes, for one day's counting | Pseudonymous, and unlinkable after the day |
| IP address and raw user agent | No | Read in memory, then discarded |
| Customer email from payments | Only as a one-way hash and a masked form | Pseudonymous: treat as personal data |
| User ids you send with identify | Yes, if you send them | Yes: treat as personal data |

Traffic data is deleted when it passes your plan's retention period:

Revenue history is kept on every plan.

| Plan | Traffic data kept |
| --- | --- |
| Starter | 24 months |
| Growth | 60 months |
| Scale | Kept while subscribed |

The [data processing agreement](/legal/dpa), the [subprocessors](/legal/subprocessors) and our [privacy policy](/legal/privacy) are published. The database is hosted outside the EU, in the region named on the subprocessors page, and the DPA covers transfers out of the EEA with a recognised mechanism such as the Standard Contractual Clauses. If you need data stored only in the EU, that is a reason to pick a different tool. Whether your overall setup complies is for you and your lawyer to decide.

## Where does Google Analytics stand under the GDPR?

Google Analytics can be used under the GDPR, but it takes more work, mainly because it stores identifiers on the device. What Google's own help pages say:

- **Cookies.** GA4 sets `_ga` and `_ga_<container-id>` cookies, kept for 2 years by default, according to [Google's page on GA4 cookies](https://support.google.com/analytics/answer/11397207). In most EU countries that means asking for consent first.
- **Consent mode.** In the advanced setup of [consent mode](https://support.google.com/analytics/answer/9976101), visitors who decline send cookieless pings instead, and Google models the missing data. In the basic setup, tags wait for consent and decliners send nothing. See [consent mode](/glossary/consent-mode) in the glossary.
- **IP addresses.** Google states that in GA4 IP addresses "are not logged or stored", per its [IP masking page](https://support.google.com/analytics/answer/2763052).
- **Retention.** Event-level data is kept for 2 or 14 months on standard properties, as [Google's retention page](https://support.google.com/analytics/answer/7667196) lists it.

The data still goes to Google, a US company, so the transfer question applies. Since 10 July 2023 the European Commission's [adequacy decision for the EU-US Data Privacy Framework](https://commission.europa.eu/document/fa09cbad-dd7d-4684-ae60-be03fcb0fddf_en) covers transfers to US companies certified under it. If you keep GA4, put it behind a consent banner, turn on consent mode and sign Google's data processing terms. If you would rather not run a banner for analytics, [analytics without a cookie banner](/analytics/no-cookie-banner-analytics) covers what that takes. What regulators decided about it, case by case, is in [is Google Analytics GDPR compliant?](/blog/is-google-analytics-gdpr-compliant), and the product comparison is on [CrispStats vs Google Analytics](/vs/google-analytics).

> **Compliance is yours, not the tool's.** Calling any tool GDPR compliant is shorthand. The law applies to you, the controller, and to everything your site loads. A cookieless analytics script does not cover ad pixels, embeds or a chat widget on the same page.

## How the options compare

|  | CrispStats | Google Analytics | Plausible | Matomo |
| --- | --- | --- | --- | --- |
| Hosting | hosted | hosted | both | both |
| Open source | No | No | Yes (AGPL-3.0) | Yes (GPL-3.0) |
| Free plan | No (14-day free trial, no card) | Yes (Standard GA4 is free) | No (No free hosted plan; 30-day trial, and the self-hosted edition is free) | Self-hosted (On-Premise is free; Cloud has a free trial) |
| Priced by | events | events | pageviews | events |
| Lowest paid plan | $5 (Starter, 250k events) | Not published (Analytics 360 has no list price on Google's site) | $9 (Starter, 10k pageviews, 1 site) | $26 (Cloud, 50k hits a month (€22), excluding tax) |
| At 10k a month | $5 (Starter) | $0 (Standard GA4) | $9 (Starter; Growth $14, Business $19) | $26 (Lowest Cloud tier is 50k hits (€22)) |
| At 100k a month | $5 (Starter) | $0 (Standard GA4) | $19 (Starter; Growth $29, Business $39. Read from the pricing slider's plan data on the page) | $42 (Cloud, 100k hits (€38), read from the plan data on the pricing page) |
| At 1M a month | $12 (Growth) | $0 (Standard GA4; 360 adds higher limits) | $69 (Starter; Growth $104, Business $139. Read from the pricing slider's plan data on the page) | $204 (Cloud, 1M hits (€172), read from the plan data on the pricing page) |
| Works without cookies | Yes (No cookies, no stored IP addresses) | No (Uses first-party cookies) | Yes (No cookies, no persistent identifiers) | Optional (Cookies on by default, can be disabled) |
| Cookie consent needed in the EU | No cookies set (Nothing is stored on the device by default) | Yes (Consent mode for visitors who decline) | Not needed, says Plausible | Depends on setup (Narrow cookieless setup only) |
| Revenue attribution | Yes (Stripe, Polar, Paddle, Dodo Payments, Creem, Whop, Razorpay, Freemius, Lemon Squeezy, Shopify, RevenueCat, Superwall, App Store, Shopify App Store) | Partly (Purchase events you send are reported with their value; no payment-provider webhooks) | Business plan (Ecommerce revenue attribution; cloud only) | Partly (Ecommerce tracking of orders you send; no payment-provider webhooks) |
| Funnels | Yes | Yes (Funnel exploration) | Business plan (Cloud only, not in the self-hosted edition) | Yes (In Cloud; a paid plugin when self-hosted) |
| Goals and custom events | Yes | Yes (Key events: 30 on standard, 50 on 360) | Yes (Goals and custom events from Starter) | Yes (150 goals on Cloud Business) |
| Custom event properties | Yes | Yes (25 parameters per event on standard, 100 on 360) | Business plan | Yes (Custom dimensions, 30 on Cloud Business) |
| Visitor profiles and journeys | Yes | Not verified | Journeys only (Aggregate user journeys on Business; no individual visitor profiles) | Yes (Visitor profiles and transitions) |
| Realtime globe or map | Yes (Live 3D globe) | Yes (Realtime report with a map, last 30 minutes) | Not verified | Yes (Real-time visitor map) |
| UTM campaign reports | Yes | Yes (Source, medium and campaign, also in realtime) | Yes (With automatic channel grouping) | Yes (Campaign tracking) |
| AI traffic | Yes | Not verified | Assistant visits (An AI Assistants channel for human visits; AI crawler hits are not reported) | Yes (AI assistants as a channel, plus AI agent reports) |
| AI chat over your data | Yes | Not verified | Not verified | Not verified |
| MCP server | Yes | Yes (Open-source MCP server from Google, run by you) | Not verified | Yes |
| API | Yes (REST API on every plan) | Yes (Data API, 200,000 tokens a day on standard; Measurement Protocol for server events) | Business plan (Stats API, 600 requests an hour) | Yes (HTTP reporting and tracking APIs) |
| Web vitals from real visits | Yes | Not verified | Not verified | Not verified |
| JavaScript error tracking | Yes | Not verified | Not verified | Yes (Crash Analytics: in Cloud, Enterprise bundle when self-hosted) |
| Uptime monitoring and status page | Yes | Not verified | Not verified | Not verified |
| Session replay | No | Not verified | No (Plausible says it is not a session replay tool) | Yes (Cloud allowance from 150 recordings a month; paid plugin when self-hosted) |
| Heatmaps | No | Not verified | No | Yes (Cloud allowance from 1,500 heatmap pageviews a month) |
| Feature flags | No | Not verified | Not verified | Not verified |
| A/B testing | No | Not verified | Not verified | Yes (In Cloud; Enterprise bundle when self-hosted) |
| Surveys | No | Not verified | Not verified | Not verified |
| Data warehouse | No | Export (BigQuery export, 1M events a day on standard) | Not verified | Add-on (Data Warehouse Connector, paid extra on Cloud) |
| Free plan | No (14-day free trial, no card) | Yes (Standard GA4) | No (30-day trial, no card required) | Self-hosted (Cloud has a free trial) |
| Every feature on every plan | Yes | Not verified | No (Features differ by plan) | Not verified |
| Sites | 10 on Starter (Unlimited from Growth) | Not verified | 1, 3 or 10 (Starter, Growth, Business) | 30 on Cloud Business (Unlimited when self-hosted) |
| Trial of paid plans | 14 days (No card required, every feature) | Not verified | 30 days (No card required) | Yes (Cloud, no card needed; length not stated) |
| If you go over the plan | Paid: keeps recording (Paid plans stay open at $1 per extra 100k; the trial pauses at 25k a month) | Not verified | Not verified | Pay per extra hits (€2.20 per extra 5,000 hits on the 50k tier) |
| Open source | No | Not verified | Yes (AGPL-3.0) | Yes (GPL-3.0) |
| Self-hosting | No (Hosted only) | No (Hosted by Google) | Yes (Community Edition, without funnels or revenue) | Yes (Free On-Premise edition) |
| Works on any host | Yes | Not verified | Not verified | Not verified |

Sources:

- CrispStats, checked 2026-11-23: [CrispStats pricing](https://crispstats.com/pricing), [CrispStats docs](https://docs.crispstats.com)
- Google Analytics, checked 2026-11-23: [Google Analytics home](https://marketingplatform.google.com/about/analytics/), [Help: standard and 360 limits](https://support.google.com/analytics/answer/11202874), [Help: GA4 cookies](https://support.google.com/analytics/answer/11397207), [Help: consent mode](https://support.google.com/analytics/answer/9976101), [Help: BigQuery export](https://support.google.com/analytics/answer/9358801), [Help: realtime report](https://support.google.com/analytics/answer/9271392), [Help: funnel exploration](https://support.google.com/analytics/answer/9327974), [Developers: ecommerce](https://developers.google.com/analytics/devguides/collection/ga4/ecommerce), [Developers: Measurement Protocol](https://developers.google.com/analytics/devguides/collection/protocol/ga4), [Google Analytics MCP server](https://github.com/googleanalytics/google-analytics-mcp)
- Plausible, checked 2026-11-23: [Home page, plans and pricing slider](https://plausible.io/), [When Plausible is not the right fit](https://plausible.io/when-not-to-use-plausible), [AI traffic analytics](https://plausible.io/track-ai-traffic), [Self-hosted web analytics](https://plausible.io/self-hosted-web-analytics), [Open source website analytics](https://plausible.io/open-source-website-analytics), [Real-time web analytics](https://plausible.io/real-time-web-analytics), [GitHub repository](https://github.com/plausible/analytics)
- Matomo, checked 2026-11-23: [Pricing](https://matomo.org/pricing/), [Features](https://matomo.org/features/), [FAQ: cookies](https://matomo.org/faq/general/faq_146/), [FAQ: tracking without consent](https://matomo.org/faq/new-to-piwik/how-do-i-use-matomo-analytics-without-consent-or-cookie-banner/), [GitHub repository](https://github.com/matomo-org/matomo), [Guide: MCP](https://matomo.org/guide/apis/mcp-model-context-protocol/), [FAQ: AI assistant traffic](https://matomo.org/faq/reports/how-to-track-and-analyse-traffic-from-ai-assistants-like-chatgpt-in-matomo-reports/), [Guide: Crash Analytics](https://matomo.org/guide/reports/crash-analytics/)

## Frequently asked questions

### Do I need consent for cookieless analytics under the GDPR?

Usually not for the device-storage question, because nothing is stored on the device. You still need a legal basis for any personal data processed, and many sites rely on legitimate interests for minimal analytics. National regulators differ, so check with your lawyer. This is not legal advice.

### Is a daily visitor hash personal data?

While the day lasts it is pseudonymous data derived from an IP address, so treat it with care. Because the salt is deleted after the day, nobody can recompute it or link it to later visits, which is why it is far less sensitive than a cookie id kept for two years.

### Do you sign a data processing agreement?

Yes. The data processing agreement is part of the terms of service, so it applies from the moment you accept them with nothing to sign. A countersigned copy is available on request by email, and the subprocessors are listed on the legal pages.

### Can visitors ask for their data to be deleted?

Traffic data holds no name, email or stored IP address, so there is usually nothing to find for one person. Payment records for one customer are deleted on request by email with their address, and deleting a site deletes all of its data.

## Related

- [GDPR](/glossary/gdpr)
- [Do you need a cookie banner for analytics?](/blog/do-you-need-a-cookie-banner-for-analytics)
- [Privacy-friendly analytics](/analytics/privacy-friendly-analytics)
- [Analytics without a cookie banner](/analytics/no-cookie-banner-analytics)
- [Data processing agreement](/legal/dpa)
