POST
/
tracking_events
curl --request POST \
  --url https://api.growi.io/api/public/v1/tracking_events \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "event_name": "cart_viewed",
  "occurred_at": "2023-11-07T05:31:56Z",
  "visitor_uid": "<string>",
  "event_data": {},
  "subtotal": 123,
  "currency": "AED",
  "order_id": "<string>",
  "order_type": "one_time",
  "payment_id": "<string>",
  "external_user_id": "<string>",
  "quantity": 123,
  "campaign_affiliate_id": "<string>"
}'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
Tracking event to be added

The body is of type object.

Response

201
application/json
Tracking event created successfully

The response is of type object.