• 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.

Install

Script tag

Paste one line into your page head. The script is under 1 KB gzipped, loads with defer and works on any site.

0:30Watch insteadAdd a site and paste the script tagOn YouTube (opens in a new tab)

The script tag works on any site: plain HTML, a server-rendered app or a site builder. It is under 1 KB gzipped and loads with defer, so it never blocks your page.

Add the snippet#

Paste it once, into the <head> of your site's main layout or base template. Other frameworks names that file in SvelteKit, Nuxt, Astro, Laravel and others.

HTML
<script defer src="https://cdn.ultanimus.com/s.js" data-site="YOUR_SITE_ID"></script>
AttributeWhat it does
deferLoads the script after the page is parsed, so rendering never waits for it.
srcThe script itself.
data-siteYour site ID. The install page fills it in, and the site's settings show it.
data-outboundOptional. Records clicks on links to other sites. See Links and downloads.
data-downloadsOptional. Records clicks on links to files, such as a PDF or an installer.
data-userOptional. Your own ID for the signed-in person, so they count as one visitor across days. See Signed-in users.
data-loadOptional. Measures what one page load in ten downloads, or the share you set from 1 to 100, for the Load page.
data-vitalsOptional. Measures LCP, INP, CLS, FCP and TTFB on every page load, or the share you set from 1 to 100, for the Web vitals page.
data-errorsOptional. Reports the JavaScript errors visitors run into, with the stack and the page, for the Errors page. The code that reads them loads only when a page throws.

One copy per page#

Add the snippet once, in the shared layout. If a page loads it twice, for example the snippet and the Next.js component together, the second copy counts nothing, and your site's settings show a note until you remove it.

What it sends#

After the page loads, the script sends one pageview with sendBeacon, which arrives even when the visitor leaves right away.

A pageview carries the page address, the referrer, the screen size and the browser language, and the user ID if you pass one. No cookies are read or written. Privacy and data has the full list.

Content Security Policy#

If your site sends a Content-Security-Policy header or meta tag, the browser blocks the script until the policy allows it. No event arrives and the install check keeps waiting. Add the tracker's domain to two directives:

Text
script-src 'self' https://cdn.ultanimus.com
connect-src 'self' https://cdn.ultanimus.com

script-src lets the browser load the script, and connect-src lets it send events. Add the domain next to the sources you already list and leave the rest of the policy as it is. A policy without these two directives uses default-src for both, so add the domain there instead.

In Next.js the policy usually lives in headers() in next.config or in the proxy file. On other sites, look in the server or hosting config, or a <meta http-equiv="Content-Security-Policy"> tag.

Check that it works#

Open a page with the script, then your dashboard. The install check turns live when the first event arrives. If it does not:

  • Check that data-site matches your site ID.
  • Check that the page is on the domain you added or one of its subdomains. Events from anywhere else do not count.
  • Open the browser console. A "Refused to load the script" or "Refused to connect" error means a Content Security Policy blocks the tracker.
  • Look for the script in your browser's network tab. Some ad blockers stop analytics scripts; proxy snippets help, and Pricing shows which plans include them.
PreviousHow counting worksNextNext.js

On this page

  • Add the snippet
  • One copy per page
  • What it sends
  • Content Security Policy
  • Check that it works
View as Markdown