Privacy
Beacon never sets cookies and never writes to localStorage, except for the opt-out flag described below.
How visitors are counted
Section titled “How visitors are counted”For each event, ingest hashes the visitor’s IP address and user agent with a secret salt to get a visitor ID. The salt rotates, so the same person gets a new ID in the next period:
- Monthly (default): unique visitors are counted per month.
- Daily: stricter. A visitor who returns the next day counts again.
A superadmin picks the rotation in
Settings → Privacy & retention. The salts are
derived from INGEST_SECRET.
What is stored
Section titled “What is stored”| Stored | Never stored |
|---|---|
| The hashed visitor ID | The IP address |
| Page URL, title and referrer | The user agent string |
| Browser, OS and device type, parsed from the user agent | Cookies or any other browser storage |
| Country, region and city, when a GeoIP database is set up | |
| Screen size and language | |
| Custom event names and properties you send |
identify() attaches your own user id to events. It’s opt-in, meant for your signed-in users,
and kept in memory only in the browser.
What is dropped
Section titled “What is dropped”Ingest drops events before they’re stored when:
- they come from a bot,
- the page’s host isn’t one of the website’s allowed hostnames,
- the visitor’s IP or the page’s path is excluded in the website’s settings,
- the website respects Do Not Track and the browser sends
DNT: 1orSec-GPC: 1, - the event type is turned off for the website, or the website is paused.
All of these are set per website on its Settings tab.
Retention
Section titled “Retention”Raw events can be deleted after a number of days, set in Settings → Privacy & retention. The worker enforces it every night. Deleting a website deletes its analytics too.
Excluding your own visits
Section titled “Excluding your own visits”Open your site once with #beacon-ignore=true at the end of the URL. That browser stops sending
events until you open it with #beacon-ignore=false. This flag is the only thing Beacon ever
writes to the browser’s storage.