Commerce Engine is now in early preview. Please report any issues or feedback to support@commercengine.io
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": "<unknown>",
"userId": "<string>",
"channel": "<unknown>",
"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": "<unknown>",
"userId": "<string>",
"channel": "<unknown>",
"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?