Actionairy docs
Custom events
- Send an event
- Names and properties
- Sign-up, activation and paying
- Where events are used
- Measure a release
Send an event
actionairy.track("plan_chosen", { plan: "team", seats: 5 });From a single-page app, import track from @actionairy/analytics. An event belongs to the visitor and, once they identify, to their user id, so one person stays one person across devices they sign in on.
Names and properties
- Names: up to 80 letters, digits, spaces and
_ . : -. Use one name per action, in the past tense:invite_sent, notclick_invite_button. - Properties: up to 20 keys with text (200 characters), number or true/false values. Nested objects are dropped.
- Never put an e-mail address, name or secret in a property. Pass a company with
identifyinstead.
Sign-up, activation and paying
user_signed_up, user_activated and the subscription events are reserved: the browser refuses them and only your server key can send them (server events). That keeps Today's sign-ups and paying accounts honest.
Where events are used
- Growth diagnosis finds your lifecycle and repeated value events among them and measures activation, conversion and retention cohorts.
- QA and UI/UX read the most-visited pages, page-to-page journeys and friction from the same events.
- Identity mapping sees a fixed schema: events, distinct ids, sessions and each user's company domain.
Measure a release
A Results measurement can read your events directly. It counts an event, counts the people who sent it, or measures conversion from one event to another inside the release window, with guardrails such as script errors:
{"event": "user_activated", "measure": "conversion", "from_event": "user_signed_up",
"guardrails": [{"name": "errors", "event": "js_error", "measure": "count"}]}The result is a descriptive before/after reading, never a causal claim.