User analytics

One timeline per person

User analytics follows people instead of pages: each person’s events, sessions, and traits, in order and across devices. Pug merges anonymous and signed-in activity into one profile when someone signs in.

Unified profiles Anonymous → identified Cohorts and traits Self-host under AGPL-3.0
Definition

What user analytics means

Behavior attributed to one person over time.

Web analytics tells you how many sessions hit a page. User analytics tells you who did what, in order, across devices, from a person’s first anonymous visit through sign-up. Product analytics builds funnels and retention on top of it.

Unified profiles

Anonymous activity becomes one person

Call identify() at sign-in and Pug merges the history itself; there is no stitching job to run.

  • Before sign-in, events collect under an anonymous ID
  • identify() at sign-in merges that history into their profile
  • The same user ID on web, Android, and server is one person
  • Traits such as plan or email filter every insight
Diana Jones
ext cust_009996
1,633
Events
317
Sessions
215
Pageviews
First seen 123d ago Last seen just now Android New York City
Activitylast 60 days
Identified properties
email
diana@example.com
name
Diana Jones
plan
pro
Recent activity
  • checkout_started just now USD 48
  • add_to_cart 1m ago prod-0198 · USD 48
  • product_viewed 2m ago Linen Oxford Shirt
  • search 3m ago linen shirt
  • scroll 21h ago 72%
  • page_view 21h ago /new-arrivals
Identity resolution

The first visit and the upgrade, on one profile

Events from before sign-in stay on the timeline: identify() joins the anonymous history to everything after it.

  • Each device keeps its own anonymous ID until sign-in
  • Server SDKs name the user ID on every call, with no anonymous step
  • On the web, events from before consent are never linked
From people to cohorts

What per-person data adds

Once events belong to people, you can count people instead of pageviews.

Per-person timelines

One person’s sessions, events, and traits in one view, newest first. An AI agent reads the same timeline over Pug’s MCP server.

Cohorts and retention

Retention groups people by when they first did something, then counts how many come back in each period after.

Traits as filters

Plan, country, email, or any trait you set lives on the profile and works as a filter in every insight.

Own the data

Where profiles are stored

Self-hosted, every profile stays in your own infrastructure. On Pug Cloud, profiles are stored in the EU.

What is user analytics?

User analytics measures behaviour at the level of an individual person and cohort, rather than aggregate page totals. It ties every event to a profile, so you can answer questions like “what did this user do before they upgraded?” or “do users from this cohort stick around?” It’s the per-person side of product analytics.

How is user analytics different from web analytics?

Web analytics counts traffic (sessions, pageviews, sources), usually anonymised and aggregated. User analytics attributes behaviour to a person over time and across devices, which is what funnels, retention, and profiles need.

How does identity resolution work?

Before sign-in, events accrue to an anonymous ID. When you call identify(userId), that anonymous history merges into one profile, so a user’s pre-signup activity isn’t lost. The same person stays unified across web, mobile, and server.

Does user-level tracking work with privacy and GDPR?

Self-hosting keeps every profile on your own servers, which simplifies data residency and GDPR questions, and there’s no ad-network data sharing. It isn’t automatic compliance, but it removes the third-party sharing that complicates most setups. See privacy-first analytics.

Can I self-host user analytics?

Yes. Pug runs as one Go binary with four stores (PostgreSQL, ClickHouse, NATS, and Dragonfly or any Redis 7+), so every profile and event stays inside your infrastructure. See self-hosted analytics.

Can an AI agent look up a user?

Yes. Over Pug’s MCP server, an agent in Claude, ChatGPT, or any other MCP client looks a person up by their Pug ID or by your own user ID, then reads their timeline, sessions, and stats. It has no tool for erasing a person.

Send your first event.

Create a project, add the snippet, and watch the Live view fill up. Or open the demo first: the real dashboard on a sample pet shop, with no sign-up.

Questions? Email hello@pug.sh