• 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

Custom events

Send signups, purchases and clicks with a name and properties.

Pageviews tell you where visitors go. Custom events tell you what they do: sign up, start a trial, buy, download. Each event has a name and optional properties.

From React or Next.js#

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

export function SignupButton() {
  return <button onClick={() => track('signup', { plan: 'pro' })}>Sign up</button>
}

The packages' track is safe to call before the script has loaded and during server rendering.

From the script tag#

The script adds window.ultanimus.track to the page. Call it with a name and, if you want, properties.

HTML
<button onclick="ultanimus.track('signup', { plan: 'pro' })">Sign up</button>

The script loads with defer, so your own code can run before it does. To send events that early, add this line above the snippet. Calls wait in a queue and go out as soon as the script starts, and a user you pass to identify goes with them.

HTML
<script>window.ultanimus = window.ultanimus || { q: [], track: (name, props) => window.ultanimus.q.push([name, props]), identify: (id) => { window.ultanimus.user = id } }</script>

Links and downloads#

Clicks on links to other sites and on files need no code. Add data-outbound or data-downloads to the snippet and the script sends outbound_link and file_download for you. See Links and downloads.

From your server#

Send the same event with the Events API. Use the server for anything confirmed there, like a paid order, so a blocked or closed browser cannot lose it. Pass the same user ID as the browser's identify() and the event joins that person's open visit.

Name events well#

  • Use short, lower-case names: signup, trial_start, purchase.
  • Put the part that varies in properties, not in the name: purchase with { plan: 'pro' }, not purchase_pro.
  • Keep names stable. A renamed event starts a new line in your charts.

Properties#

Properties let you filter an event and break it down: by plan, by button, by page section. Keep values short and countable, like a plan name, rather than free text or IDs.

TSX
track('purchase', { plan: 'insight', billing: 'monthly' })
track('purchase', { order: 'ord_8f2k1x' })

Share links and embeds never show properties.

See them in the dashboard#

The Events page lists every custom event. Open one for its numbers, a chart and a tab for each property, and click a value to filter by it.

Tip

Any event can become a goal, and goals can be the steps of a funnel. See Goals and funnels.

PreviousScheduled reportsNextSigned-in users

On this page

  • From React or Next.js
  • From the script tag
  • Links and downloads
  • From your server
  • Name events well
  • Properties
  • See them in the dashboard
View as Markdown