Skip to main content

Tracking

Bambuser Conversion Tracking for Live Video Shopping gives you the most value out of your Live Shopping performance statistics. The Bambuser Conversion tracker enables merchants to attribute the relevant conversions to the LiveShopping shows. The number of attributed sales will be available on the stats page of each show.

To track conversions within the BambuserCommerceSDK, use the track function on your BambuserSDK instance. No player view is required, so you can call it from anywhere in your app, for example on the order confirmation screen after the show has been closed. This function transmits necessary data sets to Bambuser Analytics.

// `bambuser` is the BambuserSDK instance created during setup
let response = try? await bambuser.track(
event: "purchase",
with: [
"transaction": [
"id":"abcd",
"subtotal":70.99,
"currency":"USD",
"total":74.98,
"tax":14.2,
"shippingCost":3.99,
"shippingMethod":"Store pickup",
"coupon":"SUMMER_SALE",
],
"products": [
[
"id":"314-7216-102",
"name":"Tennis Shoe Classic - Size 10",
"image":"https://example.com/images/314-7216-102.jpg",
"price":70.99,
"currency":"USD",
"quantity":1,
"brand":"Plausible Co.",
"category":"Footwear > Sports > Tennis",
"location":"https://example.com/products/314-7216"
]
]
]
)

To log an event, you must supply and include additional data as a dictionary with string keys and values of any type ([String: Sendable]). Note that the example format is for illustrative purposes only.

For the precise data structure required for each event, please refer to our Github Repo.