Authorizations
Access token
Body
application/json
Model for analytics event
event name
commercengine user id
properties of the event
unique hash string.
timestamp when event occured
time when event sent to server
Commerce Engine is now in beta. We're working hard to make it better for you.
curl --request POST \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/analytics/track \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"event": "<string>",
"type": "<any>",
"userId": "<string>",
"channel": "<any>",
"context": {
"ip": "<string>",
"userAgent": "<string>"
},
"properties": {},
"messageId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"sentAt": "2023-11-07T05:31:56Z"
}'
{
"message": "<string>",
"success": true
}
Track event
curl --request POST \
--url https://staging.api.commercengine.io/api/v1/{store_id}/storefront/analytics/track \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"event": "<string>",
"type": "<any>",
"userId": "<string>",
"channel": "<any>",
"context": {
"ip": "<string>",
"userAgent": "<string>"
},
"properties": {},
"messageId": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"sentAt": "2023-11-07T05:31:56Z"
}'
{
"message": "<string>",
"success": true
}
Access token
Model for analytics event
event name
commercengine user id
Show child attributes
properties of the event
unique hash string.
timestamp when event occured
time when event sent to server
Was this page helpful?