Landing Platform Landing Platform
Developer Web Analytics
POST /api/public/analytics/orders Token + HMAC

Send order events from your server

Send up to 100 order events from your store's server. Sales fill in the orders the browser missed (a sale the page already reported is skipped, matched by order number); refunds and cancellations of paid orders appear in Conversions › E-commerce beside the sale. Each event carries your own unique id, so sending it again is safe.

Sign the exact request body with HMAC-SHA256 using the store key from Web analytics › Settings › E-commerce, and send it as X-Signature: sha256=<hex>. Send {"property": "WA-…", "test": true, "events": []} to check the key.

Rate limited.

Body parameters

property
string optional
Your analytics property key, e.g. WA-WYA6U0. Required.
source
string optional
What is sending, e.g. "my-shop-connector/1.0.0". Shown on the settings card. Optional.
test
string optional
true to check the key without sending events. Optional.
events
string optional
The events, at most 100. Required unless test is true.

Responses

200 { "accepted": 2, "duplicates": 0, "skipped": [{ "id": "order:1100228327:placed",...
200 { "ok": true }
401 { "error": "Invalid signature" }
422 { "error": "events.0.type must be purchase, refund or cancellation" }
503 { "error": "Try again shortly" }
response
{
  "accepted": 2,
  "duplicates": 0,
  "skipped": [{ "id": "order:1100228327:placed", "reason": "already_counted" }],
  "rejected": []
}