How counting works
Visitors, sessions and pageviews without cookies or stored IP addresses.
Ultanimus counts people without cookies and without storing IP addresses. This page explains what a visitor, a session and a pageview mean, and where that approach has limits.
Visitors
Each event gets a visitor ID: a hash of a salt that changes every day, your site ID, the IP address and the user agent. The IP address is never stored. Because the salt changes daily, the same person on two different days counts as two visitors.
To follow a signed-in person across days and devices, pass your own user ID with identify(). See Signed-in users.
Sessions
A session is a run of events from one visitor with no gap longer than 30 minutes. Arriving from a new source also starts one, so a visitor who browses directly and then comes back from a Google search gets a second session, credited to Google. Coming back from a sign-in or payment page, such as Google sign-in or Stripe Checkout, keeps the session going. Server events on their own never add a visit, since a session counts as a visit only once a browser sends one of its events.
Pageviews and events
The script sends a pageview after each page loads. Your code sends custom events, like a signup, from the browser or from your server. A server event with a user ID joins that person's open visit. One without counts for a single server visitor each day. Each event carries an ID, and a repeat of the same ID is dropped, so a retried request is never counted twice.
Bots and spam
Ingest drops known bots and spam before anything is stored. Data quality shows how many events it dropped and why.
Location, device and source
The country, region and city come from the IP address, which is then thrown away. Browser, operating system and device come from the user agent. The source and the channel, AI assistants included, come from the referrer and the UTM tags in the page address.
The country is reliable. The region and city show where the visitor's carrier connects to the internet, often the nearest big city, so a visitor in a small town can count toward that city.
Many apps open links without a referrer. Ultanimus still finds the source from:
- the app that opened the link on Android, such as WhatsApp, Telegram or the Google app
- ad click IDs in the address, like
gclidandfbclid - in-app browsers, like Instagram, TikTok and WhatsApp
A utm_source that names a known site, such as chatgpt.com, shows as that site. An app like LinkedIn or Instagram counts as the source, never as the browser. The browser is the one the app opens pages in, such as Safari on iPhone or Chrome on Android.
A chat app that opens links in the phone's browser without naming itself leaves no source, so those visits count as Direct. Add ?utm_source=whatsapp to the links you share and they count as WhatsApp.