Loading…

Integration

Identity & session attributes

setUserId, user_name, and custom identify fields.

Anonymous visitors get a stable label from fingerprint. After sign-in, call setUserId and identify() so Visitors, Lobby, and replay show real names and custom attributes.

Before and after

AnonymousVisitors list

Fluffy Cotton Candy

fp_a8f3c2e91b4d…

Stable anonymous label until you identify.

No setUserId or identify yet.

IdentifiedAfter login

Alex Morgan

acct_7f2a9c1e

user_name is the headline; user_id stitches sessions.

  • Tracuto.setUserId("acct_7f2a9c1e")
  • Tracuto.identify({ user_name: "Alex Morgan", plan: "pro" })

Fields

FieldAPIWhenNotes
user_idsetUserId(id)After loginStable id from your auth system
user_nameidentify({ user_name })After loginDisplay name in the dashboard
utm_*automatic on tag loadLanding URLutm_source, utm_medium, etc. from ?query on new sessions—Custom attributes
custom keysidentify({ key })Anytimeplan, cohort, etc.—shown under Custom attributes

Example

javascript
if (window.Tracuto?.isReady?.()) { window.Tracuto.setUserId(user.id); window.Tracuto.identify({ user_name: user.displayName || user.email, plan: user.plan, cohort: user.cohort, }); window.Tracuto.flush(); } // On logout: if (window.Tracuto?.isReady?.()) { window.Tracuto.clearUserId(); window.Tracuto.flush(); }

We ask before enabling optional analytics (including our own Tracuto script) or marketing cookies. Essential cookies are always used to run the service securely. See our Privacy Policy.