Skip to main content
VideowiseSDK.trackingPixel is an async function that sends order data to Videowise analytics after a successful checkout. Call it once per completed order, after order confirmation. It is a plain async function and does not need to be rendered inside VideowiseSDK.Provider. On the web, the equivalent is the order tracking pixel. When a stored live shopping session ID (lsId) is present, the order request must include referral. VideowiseSDK.trackingPixel sets it automatically. It is not a trackingPixel argument. A custom mobile pixel has to send the same value. Live Shopping add-to-cart uses it on /tracking/cart/pixel as well. referral is that object, URL-encoded:
vw_source_id is the live stream id (reeview_lsid). vw_user_identifier is the Videowise user id (reeview_uid). With referral empty, the order is stored but not attributed to MOBILE APP. It returns Promise<Response | null>. The resolved value is null when the SDK has no stored user identifier, when a required parameter is missing, or when the request throws.

Parameters

trackingPixel(params) takes a single object with the following properties:

orderItems element (OrderItem)

finalLinePrice is the line total before discount allocations — typically variant.price.amount * quantity, matching Shopify checkout line items. Do not pre-subtract discounts. Pass Shopify discountAllocations on the line; Videowise subtracts them. Allocations whose discountApplication.targetType is SHIPPING_LINE are ignored. variant object finalLinePrice object discountAllocations element

Example