Skip to content
trackrift

Documentation

Platform

Events catalog

Canonical event names, payload schema, autocapture events, and mapping to CAPI.

AI brief: Canonical: page_view, identify, purchase, lead. Autocapture: scroll_depth, click, form_*, engagement_time, rage_click. event_name snake_case. Required: event_id, anonymous_id, page, consent, source. value+currency on purchases.

Events are the atomic unit of Trackrift. Every row in the Events explorer maps to a JSON document validated against the collector schema (see OpenAPI).

Core events (explicit)

event_nameWhenKey fields
page_viewRoute change / universal scriptpage.url, page.path, referrer
identifyAfter identify()email, user_id, traits
purchaseCheckout successvalue, currency, content_ids
leadHigh-intent form / demo requestproperties.plan, properties.form
sales_closedCRM / server offlineemail, value, source: offline|crm
refundChargeback / refund processedvalue (negative), transaction_id

Autocapture events

event_nameTriggerCAPI mapped?
scroll_depth25/50/75/100% per pathUsually no — analytics only
clickDelegated clicksOptional custom mapping
form_startFirst form focusNo
form_submitNative submitCan map to Lead
engagement_time15s active intervalsNo
rage_clickFrustration signalNo — UX analytics

Full payload skeleton

event.json
{
  "event_name": "purchase",
  "event_id": "550e8400-e29b-41d4-a716-446655440000",
  "anonymous_id": "anon_…",
  "timestamp": "2026-05-26T12:00:00.000Z",
  "source": "web",
  "value": 297,
  "currency": "USD",
  "page": {
    "url": "https://example.com/thanks",
    "path": "/thanks",
    "referrer": "https://example.com/checkout"
  },
  "context": {
    "utm_source": "google",
    "gclid": "…",
    "fbp": "fb.1.…",
    "locale": "en-US"
  },
  "properties": {
    "plan": "starter",
    "transaction_id": "txn_9f3a"
  },
  "consent": {
    "analytics_storage": true,
    "ad_user_data": true
  }
}

Custom events

Any snake_case name works (view_pricing, start_trial). Document internally and keep names stable — renaming breaks historical reports and CAPI mappings.