import VideowiseSDK from "@vidystar/videowise-react-native-sdk";
await VideowiseSDK.trackingPixel({
shop: "storename.myshopify.com",
orderId: 12345,
orderTotal: 99.99,
orderCurrency: "USD",
shippingCosts: 5,
taxAmount: 8.25,
orderItems: [
{
id: "item-1",
quantity: 1,
title: "Product Name",
variant: {
id: "variant-1",
image: { src: "https://..." },
price: { amount: 99.99, currencyCode: "USD" },
product: {
id: "prod-1",
title: "Product Name",
vendor: "Vendor",
type: "Type",
untranslatedTitle: "Product Name",
url: "https://...",
},
sku: "SKU-123",
title: "Variant",
untranslatedTitle: "Variant",
},
finalLinePrice: { amount: 99.99, currencyCode: "USD" },
discountAllocations: [
{
amount: { amount: 10, currencyCode: "USD" },
discountApplication: {
allocationMethod: "ACROSS",
targetSelection: "ALL",
targetType: "LINE_ITEM",
title: "LIVE10",
type: "DISCOUNT_CODE",
value: { percentage: 10 },
},
},
],
},
],
});