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.
You can activate these integrations from the Integration settings page in the Merchant Portal.
Google Analytics (via Google Tags)
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.
purchase_type is a custom attribute. To see it, an event-scoped custom dimension has to be created in GA.
Google Ads (via Google Tags)
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.
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.
TikTok Pixel
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>,
Yotpo
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.
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.
Server side tracking
Klaviyo
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.
type: 'event',
attributes: {
profile: {
data: {
type: 'profile',
attributes: {
email: <shopper's email address>,
first_name: <shopper's first name>,
last_name: <shopper's last name>,
location: {
address1: <first line of shipping address>,
address2: <second line of shipping address>,
city: <shipping address city>,
region: <shipping address region>,
country: <shipping address country>,
zip: <shipping address zip>,
},
phone_number: <shopper's phone number>,
},
},
},
metric: {
data: {
type: 'metric',
attributes: {
name: <as configured in the Purple Dot dashboard>,
},
},
},
properties: {
OrderId: <Purple Dot pre-order reference>,
Items: [{
Cancelled: <if this line item is now cancelled>,
ProductName: <name of the product>,
ProductID: <external ID of this product>,
VariantID: <external ID of the specific variant purchased>,
SKU: <sku code of the specific variant purchased>,
Quantity: <how many units were purchased>,
ItemPrice: <unit price>,
RowTotal: <line item total>,
ShippingGroupID: <Purple Dot ID of the shipping group for this line item>,
}],
ShippingGroups: [{
ShippingGroupID: <Purple Dot ID of this shipping group>,
Title: <shipping gropu name>,
Code: <shipping group code>,
ItemPrice: <shipping group price>,
RowTotal: <shipping group total>,
}],
Discounts: [{
Type: <type of discount used>,
Code: <discount code>,
Amount: <total amount off>,
}],
},
value: <total pre-order amount>,
value_currency: <currency shopper paid in>,
time: <date and time this pre-order was placed>,
unique_id: <Purple Dot pre-order reference>,
}
Converge Pixel
If you have enabled Converge tracking from the Integration settings page in the Merchant Portal, then Purple Dot will send the following event (with your desired event name) to your converge account: