Add to cart

Trigger when: any shopper hits button “Add to cart” on Tiki mobile app.

1 - Host

Name

Value

URL

https://a.ants.vn/event

Method

POST

2 - Params

Param

Data Type

Description

Required

Sample Data

idsite

Long

to confirm source from tiki.vn. Values:

for testing: 677332133

or production: 643712461

yes

643712461

app_type

Integer

to identify device operation system.

Value:

for iOS: 1

for Android: 2

Other: 3

yes

1

app_version

String

to identify mobile app version.

4.34.1

uid

String

device advertising id (AAID, IDFA,...)

yes

click_bc

String

ANTS_CLICK_BEACON_VALUE. from beacon in ad response data (C1-A).

10650469598b1555206663

res

String

to get viewer’s screen resolution

1600x900

e_n

String

to identify shopper’s activity name. Value: AddToCart

yes

AddToCart

e_c

String

to identify shopper’s activity category. Value: product

yes

product

e_a

String

to identify shopper’s activity type. Value: add_to_cart

yes

add_to_cart

e_v

String

to identify shopper’s activity value. Default value: 0

time

Long

Client tracked time (Unix timestamp)

yes

1469006299389

resp_type

String

To specify response type. Value: json

Yes

json

3 - POST data

Data Type

Description

Required

Sample Data

uinf

JSON string

Contains shopper data

customer_id

hashed customer id, ad system can identify unique shopper across all platforms

yes

13960238

products

JSON string

Contains product data

id

Seller product id of product that shopper adds to cart

yes

864115

sku

SKU of product that shopper adds to cart

yes

5261971730647

name

Name of product that shopper adds to cart

yes

Tivi Samsung

brand

Brand of product that shopper adds to cart

yes

seller_id

Id of seller who offers the product

yes

12345

category

Full category path of the product that shopper is viewing

yes

Điện tử-Điện lạnh/Tivi/Tivi 4K

price

Listing price (in VND) of product that shopper adds to cart

yes

4500000

quantity

Quantity of product that shopper adds to cart

yes

1

4 - Samples

Sample Request

https://a.ants.vn/event?idsite=643712461&app_type=1&app_version=4.34.1&uid=10651554281&e_c=product&e_a=add_to_cart&e_n=AddToCart&e_v=0&time=1469006299389&click_bc=10650469598b1555206663&resp_type=json
{
      "ecom_properties":{
"products":[
{
"id":"864115",
"sku":"5261971730647",
"name": "Tivi Samsung",
"quantity":1,
"brand":"Samsung",
"seller_id":"12345",
"price":4500000,
"category":"Điện tử-Điện lạnh/Tivi/Tivi 4K"
}
]
},
"uinf":{
"customer_id":"13960238"
}

}

Last updated

Was this helpful?