Pre-order Tracking
The Purple Dot SDK can automatically forwarding events to various product analytics, ad and order tracking platforms if your store uses the Purple Dot init script introduced here.
If your store has Google tags enabled in the theme and you enabled the Google Analytics integration in the Purple Dot portal, then the Purple Dot SDK will forward the
purchase
event to Google Analytics. The
purchase
event that PurpleDot sends is identical to the data sent by Shopify's native Google Analytics integration.send_to: <the provided Measurement ID>,
transaction_id: <Purple Dot pre-order reference>,
value: <total pre-order amount>,
currency: <currency shopper paid in>,
tax: <total tax>,
shipping: <total shipping cost>,
items: event.lineItems.map((lineItem) => ({
id: <line item product ID>,
name: <line item product name>,
brand: <your brand>,
category: undefined,
coupon: <any discount code that was applied>,
price: <line item price>,
quantity: <how many units of this line item>,
variant: <line item SKU>,
})),
If your store has Google tags enabled in the theme and you enabled the Google Ads integration in the Purple Dot portal, then the Purple Dot SDK will forward the
conversion
event to Google Ads.send_to: <the provided Measurement ID>,
value: <total pre-order amount>,
currency: <currency shopper paid in>,
transaction_id: <Purple Dot pre-order reference>,
If your store has the Meta Pixel enabled in the theme and you enabled the Meta Pixel integration in the Purple Dot portal, then the Purple Dot SDK will forward the
Purchase
currency: <currency shopper paid in>,
value: <total pre-order amount>,
content_type: 'product',
content_ids: <list of SKU ids in this pre-order>
and
Preorder
currency: <currency shopper paid in>,
value: <total pre-order amount>,
content_type: 'product',
content_ids: <list of SKU ids in this pre-order>
events.
If your store has TikTok Pixel enabled in the theme and you enabled the TikTok Pixel integration in the Purple Dot portal, then the Purple Dot SDK will forward the
PlaceAnOrder
event.content_type: 'product',
quantity: <how many line items in this pre-order>,
content_id: <Purple Dot pre-order reference>,
currency: <currency shopper paid in>,
value: <total pre-order amount>,
If your store has Yotpo tracking enabled in the theme and you enabled the Yotpo integration in the Purple Dot portal, then the Purple Dot SDK will forward order information to Yotpo.
source: 'pixel_v2',
platform: 'shopify',
orderId: <Purple Dot pre-order reference>,
orderNumber: <Purple Dot pre-order reference>,
orderName: <Purple Dot pre-order reference>,
orderAmount: <total pre-order amount>,
orderCurrency: <currency shopper paid in>,
You can listen to the
PreorderCreated
created event to forward data for other custom use cases such as transforming data into a specific format or forwarding events to an unsupported provider.If you have enabled Klaviyo tracking from the Integration settings page in the Merchant Portal, then Purple Dot will send the
Placed Pre-Order
event to your Klaviyo project.token: <your Purple Dot store's public API key>,
event: 'Placed Pre-Order',
customer_properties: {
$email: <shopper's email address>,
$first_name: <shopper's first name>,
$last_name: <shopper's last name>,
$city: <shipping address city>,
$region: <shipping address region>,
$zip: <shipping address zip>,
$country: <shipping address country>,
$phone_number: <shopper's phone number>,
},
properties: {
$event_id: <Purple Dot pre-order reference>,
$value: <total pre-order amount>,
OrderId: <Purple Dot pre-order reference>,
Items: <list of product names in this pre-order>,
}