Skip to main content

Vue / Browser — Capture

Track custom events by calling signal.capture(eventName, properties?) on the instance you created with createSignal(). Use the same API in Vue, Vanilla JS, or any framework.

capture(eventName, properties?)

  • eventName (string) — Event name (e.g. 'button_clicked', 'order_created').
  • properties (Record<string, unknown> optional) — Arbitrary JSON-serializable properties.

Vue example

Vanilla JS example

Events are batched and sent with the current session and identity context. See Identify for setting user identity.

See also