Skip to main content

Vue / Browser — Identify

Associate events with a user by calling signal.identify(distinctId, traits?) after the user is known (e.g. after login). Use the same API in Vue, Vanilla JS, or any framework.

identify(distinctId, traits?)

  • distinctId (string) — Unique identifier for the user (e.g. database ID, email).
  • traits (Record<string, unknown> optional) — User properties (e.g. email, name, plan).
Call identify after login. Subsequent events will be associated with this user. Call signal.reset() on logout to clear identity.

Vue example

See also