User behavior analytics: see what each person actually does

datacub shows the journey of every person who uses your product, page by page and click by click, so you can see behaviour instead of guessing it.

Why totals are not enough

Page views and sessions tell you how much traffic you had. They do not tell you that a new user opened pricing three times and then left, or that most people who reach checkout go back to the cart first. Those patterns live in the order of what people did. User behavior analytics keeps that order for each person and lets you read it.

Every user, every step

The People page lists every guest and registered user, latest first. Open anyone and you get their timeline: the pages and screens they saw, the buttons they clicked (shown by the button text), the forms they sent and the custom events you track, all in order.

Each profile also shows first seen and last seen, number of sessions and active days. That makes it easy to tell a one-time visitor from someone who uses your product every day. More on this in user profiles.

A single user's journey in datacub with pages, clicks and events in orderA single user's journey in datacub with pages, clicks and events in order
One user's journey, step by step

Guests and registered users, linked

Before someone logs in, datacub knows them as a guest with a first-party cookie ID. When they log in, you call datacub.identify(id, traits) and datacub links that guest history to the person. If the same person later logs in on their phone, both devices join one profile. You see one journey, not three strangers.

Traits are the facts you choose to send, such as plan or company name. Never send passwords or ID numbers; the SDK also refuses to capture form field values, card numbers and national or Iqama IDs on its own.

What gets tracked

Out of the box, datacub records page views, clicks and form submits with no extra code. In single-page apps it follows route changes in React Router, Next.js, Vue Router and SvelteKit. You can turn autocapture off if you want full control.

For the moments that matter to your business, add a custom event:

datacub.track('booking_confirmed', { plan: 'monthly' })

Use an object_action name, keep it stable, and it shows up in every report. The event tracking page and the events and users guide explain how to choose good events.

From single journeys to patterns

Reading one journey gives you a feeling. Patterns give you proof. datacub turns behaviour into a few clear views:

  • Funnels: pick up to 6 steps and see the exact step where people drop off, and what most of them did next instead.
  • Retention: of the users who started on a day or week, how many came back after 1, 7 and 30 days.
  • Feedback: ask a short question in the product, after an event or on a page, and read each answer on that user's timeline next to what they did.
  • Overview filters: click a country, source or device and every list on the page narrows to those users.

Questions you can answer

  • Where do new users go right after signing up?
  • What did the people who bought do differently from those who did not?
  • Which button on the pricing page gets clicked, and by whom?
  • Did people who answered "no" to a feedback question come back?

You can also ask these in plain language. datacub has an MCP server, so tools like Claude, ChatGPT, Cursor or Codex can read your project's analytics and answer. See the MCP reference.

What datacub does not do

datacub records events, not screens. There is no session replay and no heatmaps. If you need to watch recordings of what users did, a tool with session replay is a better fit; see the PostHog alternative page for an honest comparison.

Privacy controls

Behaviour tracking should not mean collecting everything. Raw IP addresses are used in memory only and never stored, there is no fingerprinting, and bots are filtered. You can require consent so nothing is sent until datacub.consent.grant(), honour opt-out and Global Privacy Control, and delete or export a person's data on request. Read the privacy guide.

To see how this fits the rest of the product, start at product analytics.

Frequently asked questions

What is user behavior analytics?

It is the analysis of what individual people do inside a website or app, in order: which pages they visit, what they click, which actions they complete and where they stop. It helps teams find out why users convert or leave.

Can datacub follow one person across devices?

Yes. When you call datacub.identify at login, that person's visits on every device they log in from are linked into one profile.

Does datacub record sessions or show heatmaps?

No. datacub shows journeys as an ordered list of pages, clicks and events, plus funnels and retention. It does not record the screen.

Do I have to tag every button?

No. Clicks, page views and form submits are captured automatically. You only add custom events for the business moments you care about.