api-event_track

This is the template API for event tracking.

URL request

API Track Event

POST https://a.cdp.asia/event?portal_id=PORTAL_ID&prop_id=INSIGHT_PROPERTY_ID&resp_type=RESPONSE_TYPE&is_s2s=[true|false]

In more detail these common params for each API call

Query Parameters

Name
Type
Description

redirect_url

string

When param resp_type is redirect nd event tracking is click then redirect_url should be use.

resp_type

string

Support that types: javascript, json, redirect, pixel. Default is javascript

portal_id

integer

Your business Account ID on the analytics system.

prop_id

integer

Your datasources ID on the analytics system such property as of Web , App Android, App IOS, POS,...

Request Body

Name
Type
Description

context

object

Context properties data for events has describe detail bellowing.

extra

object

Extra properties data for event has described on bellowing **

dims

object

The relation items on events as shop, warehouse, payment method, delivery method...

items

array

List items on events as: products

ea

string

Event action

ec

string

Event category

sid

integer

Hash any ID your users session on visiting your application and caching on SDK of device. default expired after 30 minutes over a session

aid

string

The device advertising ID as: AAID, IDFA

uid

string

You can set to anonymous User ID

Set request headers

Data payload template

extra-propertiesproduct-propertiescontext-properties

Data payload sample

Last updated

Was this helpful?