User profiles and user journeys

The People page in datacub lists every user, the latest first, and opens each one's journey: the pages, screens, clicks and events they sent, in order.

Why look at one person at a time

Charts tell you how many. A journey tells you what actually happened. When a funnel shows that half your new users stop at the second step, opening five of them often explains it faster than any report: they hit an error page, went looking for prices, or opened the same screen three times because a button was unclear.

User journeys are also the quickest way to check your own tracking. Sign in on your site, find yourself on the People page, and see whether every event you expected is there.

The People page

People lists every user, the latest first, with where they came from, their latest activity and their sessions. There are two kinds of user:

GuestRegistered
Whoanyone before identifyafter identify(userId)
Shown asGuest #8d4c25, with country, device and browserthe name or email you passed, and your user ID
Across devicesone per browser or phoneevery device where they signed in

When a Guest signs in and your code calls datacub.identify, they become Registered, and their Guest history on that browser or phone comes with them. So you see the whole path, from the first visit before sign-up to today.

The People page: every visitor, the latest first, with where they came from, their latest activity and sessionsThe People page: every visitor, the latest first, with where they came from, their latest activity and sessions
People

One person's profile

Open anyone to see their profile:

  • First seen and last seen, sessions and active days.
  • The journey, day by day. Each row is a page with the time spent on it, a click, or one of your events. Expand a row for its details.
  • About this person: the user ID, traits such as plan or role, where they first came from, and their last country, language and device.
  • Feedback answers. If you ask in-product questions, a user's answers appear on their timeline next to what they were doing.
A Registered user's profile: first and last seen, sessions and active days, the journey of pages, clicks and events, and the About this person cardA Registered user's profile: first and last seen, sessions and active days, the journey of pages, clicks and events, and the About this person card
One person's profile

Getting good journeys

Most of a journey needs no code. Page views, clicks and form submits are captured automatically, and single-page apps on React Router, Next.js, Vue Router or SvelteKit are followed as the route changes. Three small steps make journeys much more useful:

  1. Call identify at login with your own internal user ID, so one person on a phone and a laptop is one user. Never use an email or phone number as the ID.
  2. Pass name or email as traits at login so you can recognise and search for people on the People page.
  3. Send a few custom events for the outcomes that matter, such as checkout_completed, so the journey shows what someone achieved, not only where they clicked.

Call datacub.reset() at logout, so the next person on a shared device is not counted as the last one.

Privacy is part of the design

Journeys show product facts, not personal content. The SDK never collects passwords, what people type into form fields, card numbers or national and Iqama IDs. Raw IP addresses are used in memory only and never stored, and datacub never matches people by IP, device traits, email or phone. Members can see individual people; Viewers see totals only. Owners and admins can delete or export a person from their profile, which handles the requests Saudi PDPL gives people the right to make.

Use journeys with the rest of datacub

Developers: the events and users guide covers identify, traits and Guests in detail. Or browse fictional users' journeys in the public demo.

Frequently asked questions

What is the difference between a Guest and a Registered user?

A Guest is anyone before your code calls identify, shown with a short random ID. After identify, they are Registered and shown with the name or email you passed, and their earlier Guest history on that device joins their profile.

Can I see the same person across devices?

Yes, once they sign in on each device and your code calls datacub.identify with the same user ID. datacub never guesses who someone is from their IP or device.

Does datacub record what users type?

No. The SDK never collects form field values, passwords, card numbers or national and Iqama IDs. A form submit is recorded as an event, not its contents.

Who on my team can see individual users?

Owners, Admins and Members can see individual people. Viewers see totals only.