Cookieless analytics: how collection and privacy work

Measure visits without analytics cookies, and know what that does and doesn't change for privacy. Add the tracker once:

index.html
<script
  async
  src="https://cdn.databuddy.cc/databuddy.js"
  data-client-id="YOUR_WEBSITE_ID"
></script>

See Quickstart for frameworks. Installing twice inflates pageviews.

"Cookieless" describes a storage choice. It does not guarantee anonymous data, exemption from consent, or complete measurement. Browser identifiers and event contents can still be personal data.

How does cookieless tracking work?

  1. Tracker loads
  2. Records a pageview or event
  3. Sends permitted fields
  4. Reports group them

Tools replace the cookie in different ways, and the label alone doesn't say which:

MethodHow activity is linkedWhat to check
No persistent identifierRequests counted without tying them to a browserWhich reports need visitor or session continuity
Short-lived server identifierThe server assigns an ID that lasts a limited timeWhat it's calculated from and how long it lasts
Random ID in browser storageThe browser keeps an ID, such as in localStorageWhat's stored on the device and how the ID is handled after collection

Databuddy uses the third:

Databuddy's tracker
Visitor IDRandom, in first-party localStorage; hashed with a rotating daily salt at ingestion by default (anonymizeVisitorIds)
Session IDIn sessionStorage, reused for 30 minutes; a page left open can keep its session longer
Page and referrer addressesQuery strings removed; selected campaign and ad-click parameters collected separately
IP addressOmitted from standard event records after request handling and approximate location lookup
Privacy signalsGlobal Privacy Control and stored opt-outs honored

Daily-salted hashing limits continuity in stored visitor hashes. It does not remove browser storage or sanitize every other field. Paths, titles, custom properties, errors and optional profile traits can contain personal information. See the Data Policy.

Know what it can and can't measure

The dashboard reports visitors, sessions, pageviews, bounce rate, session duration, pages, sources and UTMs, approximate location, devices and browsers, plus goals, funnels and custom events.

QuestionWithout cookies
Same browser on a later dayWith default anonymizeVisitorIds, each day's stored ID differs, so earlier days aren't connected unless the visitor is identified
Same person on another deviceOnly with identify(), using an ID from your own system
A visitor moving between your domainsIDs travel in the link; see cross-domain tracking
Campaign and a conversion days apartNot guaranteed; verify the whole journey with the UTM guide
ConversionsYes: record the events and define goals or funnels
Visitors who block the tracker or opt outNot counted

Cookieless collection does not bypass browser privacy protections or ad blockers. Network failures, consent decisions and storage restrictions still affect counts, so compare tools on your own website with the same definitions.

"Cookieless" is not a compliance status. Assess two questions separately:

QuestionWhy it matters
Are you processing personal data?GDPR duties can include a lawful basis, transparency, minimization, retention limits, rights handling and processor arrangements. See the GDPR text.
Are you storing or accessing information on a visitor's device?ePrivacy rules can apply to technologies beyond cookies, so switching to localStorage doesn't settle it. See the EDPB's Article 5(3) guidance.

Some jurisdictions allow narrow audience-measurement exemptions, but the setup must meet their conditions, which vary. CNIL's audience-measurement guidance limits the purpose and statistical use, and excludes certain data combinations and cross-site tracking. A vendor's "cookieless" label does not prove eligibility.

Advertising pixels and embedded services may still need consent even if your analytics qualifies. Where consent is required, load the tracker only after consent; async doesn't gate anything. Don't remove a banner based solely on a product category. See the GDPR guide.

Verify your setup

Inspect the browser

Check Cookies, Local Storage and Session Storage in developer tools, when the tracker loads, and where its requests go.

Review payloads

Look for personal information in paths, titles, properties and errors.

Check the dashboard

Confirm the website ID, pageviews and one confirmed conversion.

Test consent

Test refusal, withdrawal and the privacy signals you support. Check identification, recording and error collection against your notice.

Record the reports you need, install Databuddy, then compare the same range in both tools; session, bot and attribution rules differ. Update your privacy notice and consent behavior, and remove the old tracker once Databuddy covers your needs. GA4's advanced consent mode sends cookieless pings when consent is denied, while basic mode blocks tags; see Google's consent mode docs.

How is this guide?