Privacy & GDPR
How Stancelens counts visitors without cookies, and what that means for compliance.
How we count visitors without cookies
For each web request without an SDK-supplied ID, the server computes sha256(daily_salt | site_id | ip | user_agent) and keeps the first 16 hex characters as the visitor ID. Salts are random, one per UTC day, and deleted after two days, so the hash can't be recomputed later or linked across days. The IP address is never written to disk, and only the parsed browser, OS and device are kept from the user agent.
- The web tracker sets no cookies. It writes to localStorage only after you call
identify(to remember the user ID you passed) or when you setstancelens_ignoreyourself. - No cross-site tracking. Anonymous web visitors aren't linked across days or devices.
- Mobile and server SDKs send a random install ID they generate themselves (see Mobile apps), so app sessions can be counted across days. No device identifiers like IDFA or GAID are collected.
Do I need a cookie banner?
With the web tracker's defaults, Stancelens sets no cookies and stores no IP addresses, which is why many sites run it without a consent banner. Whether you need one depends on your jurisdiction and on what else you track (identified users, replays). This is not legal advice.
If you use identify or session replay for logged-in users, you are processing personal data. Disclose it in your privacy policy and rely on an appropriate legal basis.
Personal data
Under Site settings → Privacy, turn off Store personal data to keep personal data out of everything the site stores from then on. Existing data is unchanged. With it off:
- Traits and event properties named like personal data (
email,name,first_name,phone,address,zip,birthdayand similar) are dropped, and so is any value that is a whole email address. - Email addresses inside page paths, titles, referrers and other text values are replaced with
[email]. - A user ID that is an email address is stored as its SHA-256 hash, so the person stays one profile without the address being kept.
- Names and emails that payment providers send with revenue webhooks are dropped too.
Turn on Hash emails instead of removing them to keep a SHA-256 of each email (trimmed and lowercased first) where it would otherwise be dropped, so you can still match a person against your own records. Inside text, the hash is cut to 16 characters.
Data retention
Site settings → Privacy → Keep data for sets how long the site's data is kept: 6, 12, 24 or 36 months, or forever (the default). A cleanup runs once a day and deletes events, sessions, profiles and replays older than that. Shorten it and the older data goes at the next cleanup; it can't be brought back.
Where data is stored
Everything a site stores, and every account, lives in Stancelens's Postgres database, hosted by Supabase in [SUPABASE PROJECT REGION, e.g. AWS eu-central-1 (Frankfurt, Germany)]. The app runs on Cloudflare's network, so requests may be handled in a nearby data centre on their way there. Visitor IP addresses are used for the daily visitor hash and then discarded. Database backups are kept for [BACKUP RETENTION, e.g. 7 days], so deleted data leaves them within that time.
Data Processing Agreement
Read the DPA and Terms for the contractual side, including sub-processors.
Data subject requests
Anonymous web data can't be linked back to a person, so access and deletion requests apply to identified users and to app installs with their own ID. Two ways to erase someone:
- Site settings → Privacy → Delete a person's data: search by user ID, email or name (at least 2 characters), pick the person and confirm. Every event, session, replay and profile linked to that user or visitor ID is deleted. Owners and admins only.
- `DELETE /api/v1/users/:id` with an API key that has owner or admin access to the site.
Both are immediate and can't be undone. For an access request, filter the raw event export to the person with f_user_id=.
Suggested privacy-policy wording
We use Stancelens, a privacy-friendly analytics service, to understand how our website is
used. Stancelens does not use cookies. IP addresses are used only transiently to derive an
anonymous visitor hash that changes every day, and are never stored.
See https://stancelens.com/privacy.