---
title: "Count visitors without cookies"
description: "In cookieless mode the web SDK stores nothing on a visitor's device, and Pug counts them with an ID that changes every day. @pug-sh/browser 0.1.0 starts every visitor in it."
date: 2026-08-08
tags: ["Privacy","SDKs"]
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.pug.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Count visitors without cookies

## New

- In cookieless mode the [web SDK](/sdks/web/#tracking-consent) sends events
  with no identity and writes nothing to the device. Pug derives an ID from the
  request's IP address and user agent, hashed with a salt that changes daily,
  and stores neither.
- `@pug-sh/browser` 0.1.0 starts in cookieless mode. `optInTracking()` moves a
  visitor who accepts your banner to full tracking, and the SDK can honor Global
  Privacy Control.
- `beforeSend` edits or drops any event before it leaves the browser, and
  sensitive URL parameters are redacted by default.
- Unique users, funnels and retention leave cookieless IDs out by default, since
  a returning visitor gets a new one each day. Event totals and session metrics
  count them.

## Changed

- In 0.1.0, consent defaults to cookieless rather than granted, `beforeSend`
  replaces `sanitizeUrl`, and IDs stored by 0.0.x are discarded. See
  [Upgrading](/sdks/web/#v010).

Source: https://docs.pug.sh/changelog/2026-08-08-cookieless/index.mdx
