• Product

    • FeaturesFunnels, alerts, AI traffic and imports.
    • Live mapVisitors on a globe as they arrive.
    • SpeedA script under 1 KB. Visits in a second.
    • Integrations26 tools, from Slack to WordPress.
    • MCP serverAI tools set up sites and dashboards.

    Get started

    • Quick startOne script tag, and visits show up.
    • With an AI agentOne prompt, and your agent adds it.
    • API and CLIYour numbers in scripts and CI.
    • Install guides
      • Script tag
      • Next.js
      • React
      • Website builders
    Live demoacme.devLast 30 daysVisitors1,49325.5%PageVisitors/612/pricing341/docs/install208Click around before you sign up.Open the demoCompareHow we stack up against Google Analytics, Plausible, Fathom, PostHog and Umami
  • Company

    • AboutWhy it exists and how it is built.
    • BlogPrivacy, speed and how we build.
    • ContactQuestions on plans, setup or privacy.
    • BrandThe logo, colors, type and files.

    Trust

    • PrivacyWhat we collect and why.
    • TermsPlans, limits and your data.
    • StatusWhether everything is up right now. (opens in a new tab)
    Latest post4checks before DirectWhere Direct traffic comes fromNov 11, 2026Read the post
  • Blog
  • Docs
  • Pricing
Sign inStart free
FeaturesDemoSpeedBlogDocsPricing
Start freeSign in

Free for three sites. No card needed.

Getting started

  • Introduction
  • Quick start
  • Set up with an AI agent
  • CLI
  • CLI guide
  • How counting works

Install

  • Script tag
  • Next.js
  • React
  • React Native and Expo
  • Swift
  • Other frameworks
  • Server
  • Website builders

Mobile

  • Mobile apps
  • Screens and events
  • Swift apps
  • Development builds
  • Visitors and offline
  • App Store and Play privacy

Dashboard

  • Overview and filters
  • Custom dashboards
  • Realtime
  • Events page
  • Explore
  • Segments
  • Sessions
  • People
  • Journeys
  • Retention
  • Load
  • Web vitals
  • Errors
  • Revenue
  • Search Console
  • Visibility
  • Data quality
  • Transfer a site
  • Import and export
  • Scheduled reports

Tracking

  • Custom events
  • Signed-in users
  • Links and downloads
  • Goals and funnels
  • Alerts
  • Annotations
  • Excluded pages
  • Page addresses
  • Share links and embeds
  • Sitemaps

API

  • Overview
  • Query API
  • Load and vitals
  • Raw export
  • Live stream
  • MCP server

Platform

  • Architecture
  • Privacy and data

Getting started

  • Introduction
  • Quick start
  • Set up with an AI agent
  • CLI
  • CLI guide
  • How counting works

Install

  • Script tag
  • Next.js
  • React
  • React Native and Expo
  • Swift
  • Other frameworks
  • Server
  • Website builders

Mobile

  • Mobile apps
  • Screens and events
  • Swift apps
  • Development builds
  • Visitors and offline
  • App Store and Play privacy

Dashboard

  • Overview and filters
  • Custom dashboards
  • Realtime
  • Events page
  • Explore
  • Segments
  • Sessions
  • People
  • Journeys
  • Retention
  • Load
  • Web vitals
  • Errors
  • Revenue
  • Search Console
  • Visibility
  • Data quality
  • Transfer a site
  • Import and export
  • Scheduled reports

Tracking

  • Custom events
  • Signed-in users
  • Links and downloads
  • Goals and funnels
  • Alerts
  • Annotations
  • Excluded pages
  • Page addresses
  • Share links and embeds
  • Sitemaps

API

  • Overview
  • Query API
  • Load and vitals
  • Raw export
  • Live stream
  • MCP server

Platform

  • Architecture
  • Privacy and data

Cookieless web and product analytics. Fast to load, fast to read.

Start free, no card needed

Product

FeaturesLive mapDemoTry it on your siteSpeedPricingCompare

Get started

InstallDocsQuestionsSign inStart freeJoin the waitlist

Company

AboutBlogContactStatus (opens in a new tab)Brand

Legal

Privacy policyTerms of service

© 2026 Ultanimus. This site sets no cookies.

Tracking

Signed-in users

Pass your own user ID so one person counts once across days and devices, and server events join their visit.

Without cookies, a visitor gets a new ID every day, so the same person on Monday and Tuesday counts twice. Once someone signs in, pass your own ID for them. From then on they count as one visitor across days and devices, and the events your server sends for them join their visit.

Pass the user ID#

Use the ID your database already gives the account, such as u_8f2k1x or 4410. Do not use an email address or a name.

Render the ID into the snippet on pages for signed-in people, and leave the attribute out for everyone else.

HTML
<script defer src="https://cdn.ultanimus.com/s.js" data-site="YOUR_SITE_ID" data-user="u_8f2k1x"></script>

On a page that signs people in without a reload, call identify instead:

JavaScript
ultanimus.identify('u_8f2k1x')

To call it before the script has loaded, add the queue line from Custom events above the snippet.

Give Analytics the signed-in user, or null when nobody is.

TSX
<Analytics site="YOUR_SITE_ID" user={session?.userId ?? null} />

Or call identify where your app learns who signed in:

TSX
import { identify } from '@ultanimus/react'

identify(account.id)

Read the session in the root layout and pass the ID to Analytics.

TSX
<Analytics site="YOUR_SITE_ID" user={session?.userId ?? null} />

Or call identify from @ultanimus/next in a client component.

The packages' identify and the user prop work before the script has loaded and during server rendering. Every event after the call carries the ID. With data-user, the user prop or a call before the script loads, the page's own pageview carries it too.

The script keeps the ID in memory until the next full page load. That page starts anonymous until the snippet or your code passes the ID again, so render data-user or the user prop from your layout whenever someone is signed in.

Sign out#

Call identify(null), or render Analytics with user={null}. Later events count as an anonymous visitor again.

What changes in the dashboard#

  • Visitors. A signed-in person counts once over the whole range, on any device, instead of once a day. Pages viewed before the sign-in keep the anonymous ID, so the visit where someone signs in can add one extra visitor.
  • Visits. A visit stays one visit when someone signs in halfway through. The pages before the sign-in and after it stay together.
  • Funnels. A person who signs in between two steps stays the same person, and a step can be an event your server sends, such as a paid order.
  • Server events. An event your server sends with the same user joins the person's open visit and takes its source, country and device. See Server events.
  • People. Each signed-in person gets a page with their visits, pages, events and goals. See People.
  • Retention. Cohorts count only signed-in people, from their first visit. See Retention.
  • Revenue. A payment whose checkout carries the same ID is credited to the person's visits. See Revenue.

What is stored#

Ultanimus stores a hash of your ID and the site ID in place of the visitor ID. Your ID itself is never stored, and the same ID on two of your sites gives two different hashes.

The site's settings show since when the site sends user IDs and when the last one arrived.

The hash stays the same every day and links one person's visits, which makes it personal data in many countries. Mention it in your privacy notice, and check whether your users need to agree to it first. Privacy and data covers the rest.

PreviousCustom eventsNextLinks and downloads

On this page

  • Pass the user ID
  • Sign out
  • What changes in the dashboard
  • What is stored
View as Markdown