Skip to content
Guides
API reference
stable

Track commerce analytics events

Records commerce events from the storefront — product views, add to cart, checkout steps — that feed the merchant's analytics.

POST/v1/analytics/events

Records commerce events from the storefront — product views, add to cart, checkout steps — that feed the merchant's analytics.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/v1/analytics/events" \  -H "Content-Type: application/json" \  -d '{}'
{  "accepted": 0}