API reference
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/eventsRecords 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}