managed-components/tiktok

Properties are always set to empty object

Closed this issue · 2 comments

agcty commented

The getBaseRequestBody function initialises the properties key as an empty object without letting you override it. This makes it impossible to track what products a user has bought, significantly reducing targeting capabilities.

properties: {},

This is an example of what can be tracked with TikTok but is currently impossible with Zaraz:

properties: {
  contents: [
    {
      price: 8,
      quantity: 2,
      content_type: "product_group",
      content_id: "1077218",
    },
    {
      price: 30,
      quantity: 1,
      content_type: "product_group",
      content_id: "1197218",
    },
  ],
  currency: "USD",
  value: 46
}

Hey @agcty - this looks like it should be part of adding Ecommerce API support to the component. Do you have any link for the relevant documentation?

bjesus commented

I'm closing this as Ecommerce support is part of the component.