Sync orders server-side — no tracking script changes needed on your store. Orders and refunds become purchase / refund events in your analytics. Only product IDs and revenue are stored; no customer data.
Repeat purchases by the same customer count as Returning Buyers — the customer id is hashed, so no PII is stored.
Orders fire order.created, refunds fire order.refunded. Line items are sent automatically; returning buyers are tracked via a hashed customer id (guests excluded).
POST JSON to the webhook URL with the header X-Commerce-Webhook-Secret set to your secret. Supported events: order.created, order.paid, order.refunded, refund.created.
{
"event": "order.created",
"platform": "woocommerce",
"order": {
"orderId": "ORD-12345",
"revenue": 129.98,
"currency": "EUR",
"tax": 20.0,
"shipping": 5.99,
"discount": 10.0,
"buyerId": "a1b2c3...",
"items": [{ "id": "sku-123", "name": "Canvas Tote", "price": 49.99, "quantity": 2 }]
}
}buyerId is optional and non-PII (e.g. a SHA-256 of your customer id) — it enables Returning Buyer attribution. Use either order.created or order.paid, not both. createdAt (optional) must be YYYY-MM-DD HH:MM:SS.