Tracks Add To Cart event
let modules = await Eitri.modules();
await modules.tiktok.logAddToCartEvent({
data: {
content_type: "product",
content_id: 123,
description: "details about the product",
currency: "BRL",
value: 99.90
},
id: "PROD_123"
})
Object describing the event.
Object describing the event's data.
Optionalid?: stringContent ID.
Tracks Add To Wishlist event
let modules = await Eitri.modules();
await modules.tiktok.logAddToWishlistEvent({
data: {
content_type: "product",
content_id: 123,
description: "details about the product",
currency: "BRL",
value: 99.90
},
id: "PROD_123"
})
Object describing the event.
Object describing the event's data.
Optionalid?: stringContent ID.
Tracks Checkout event
let modules = await Eitri.modules();
await modules.tiktok.logCheckoutEvent({
data: {
content_type: "product",
content_id: 123,
quantity: 2,
currency: "BRL",
value: 99.90
},
id: "CART_456"
})
Object describing the event.
Object describing the event's data.
Optionalid?: stringContent ID.
Registers an event in TikTok
let modules = await Eitri.modules();
await modules.tiktok.logEvent(
{
eventName: "eitri_event",
data: { page: "/Playground"},
id: "123"
}
)
Object describing the event.
Object describing the event's data.
Name of the event.
Unique identifier for the event (e.g. content ID).
Tracks Purchase event
let modules = await Eitri.modules();
await modules.tiktok.logPurchaseEvent({
data: {
content_type: "product",
content_id: 123,
description: "details about the product",
currency: "BRL",
value: 99.90
},
id: "ORDER_789"
})
Object describing the event.
Object describing the event's data.
Optionalid?: stringContent ID.
Tracks View Content event
let modules = await Eitri.modules();
await modules.tiktok.logViewContentEvent({
data: {
content_type: "product",
content_id: 123,
description: "details about the product",
currency: "BRL",
value: 99.90
},
id: "PROD_123"
})
Object describing the event.
Object describing the event's data.
Optionalid?: stringContent ID.
Collection of functions responsible for tracking an user's activity in an Eitri-App using TikTok.