Vue / Browser — Capture
Track custom events by callingsignal.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
See also
- Identify — Set user identity
- Page views — Track $pageview
