Events & impressions

Send analytics events and control interactions to CtrlApp.

Analytics events

POSThttps://ctrlapp.krdcode.com/api/public/sdk/v1/events
Auth: Bearer <PUBLISHABLE_KEY>
json
{
  "device_uid": "<DEVICE_ID>",
  "platform": "ios",
  "app_version": "1.2.3",
  "events": [
    { "name": "screen_view", "props": { "name": "Checkout" } },
    { "name": "purchase",    "props": { "amount": 42.0 } }
  ]
}

Batches up to 200 events per request; payload cap is 256 KiB.

Control impressions and clicks

POSThttps://ctrlapp.krdcode.com/api/public/sdk/v1/controls/events
Auth: Bearer <PUBLISHABLE_KEY>
json
{
  "device_uid": "<DEVICE_ID>",
  "events": [
    { "key": "cta_primary", "event": "impression" },
    { "key": "cta_primary", "event": "click", "target": "/checkout" }
  ]
}
Back to top