Meta integration
This guide applies only when selling pre-orders through Purple Dot's own checkout. Pre-orders sold through the Shopify checkout benefit from the same tracking as your regular sales.
If you have enabled Meta tracking on the Integration settings page in the Merchant Portal, the Purple Dot checkout automatically sends certain events to Meta via the Conversions API (CAPI).
What you need before you start
The Facebook & Instagram app installed on the Shopify store and connected to the merchant’s Meta Business account
A dataset (pixel) active on the storefront via that app, with browser events flowing in Events Manager
Admin access to the merchant’s Meta Business Manager and Events Manager
Prerequisites
Before configuring Conversions API in Meta or connecting Purple Dot to your Meta account, you must have the Meta Pixel running on their Shopify storefront. Purple Dot will not send any server-side events for a session where we could not find browser cookies (_fbp and _fbc) that the pixel sets in your storefront.
Step 1 - Install the Facebook & Instagram app on Shopify
In Shopify Admin, go to Settings → Customer events (or open the Shopify App Store).
Search for and install Facebook & Instagram (by Meta).
Open the app and sign in with the Meta account that has access to the merchant’s Business Manager.
Connect the Shopify store to the correct Meta Business Portfolio (Business Manager).
When prompted, connect or create a dataset (Meta Pixel). Use the same dataset you plan to use for Conversions API and Purple Dot.
Complete the app setup and confirm the pixel is connected and active on the storefront.
Facebook & Instagram app connected to Meta account
Use the same dataset everywhere. The Dataset ID you enter in Purple Dot must match the dataset connected in the Facebook & Instagram app and shown in Meta Events Manager. If these don’t match, connection tests may pass but production events will go to the wrong dataset or checkout events won’t attribute correctly.
Verify the pixel is working on the storefront
In Shopify Admin, go to Settings → Customer events
Verify the app is “Connected”
On the Facebook & Instagram app, click “Test”
Accept any cookie consent banner that covers marketing/analytics cookies
Confirm events are being processed
Step 2 - Set up the Conversions API connection in Meta
Open Meta Events Manager.
Select the dataset used on the merchant’s storefront (the same one connected via the Facebook & Instagram app).
Go to Settings (gear icon) → Conversions API.
Choose Set up manually or Connect via partner (either works; Purple Dot sends events directly with an access token).
Review the event configuration. Purple Dot sends these standard Meta events:
Purple Dot action
Meta event name
Item added to cart
AddToCartCheckout started
InitiateCheckoutPayment details entered
AddPaymentInfoPre-order completed
PurchaseConfirm the dataset is configured to accept server events for those event types.
Configure the parameters to send with the events
Event ID
Email
Browser ID
Phone
Client IP
Step 3 - Generate an access token, get the Dataset ID, and open Test Events
Generate an access token
In Events Manager, on the same dataset, go to Settings → Conversions API.
Under Set up manually, find Generate access token (or Set up with Conversions API → token section).
Click Generate access token.
Copy the token immediately and store it securely. Meta may not show it again.
Find the Dataset ID
Stay on the dataset in Events Manager.
Open Settings.
Copy the Dataset ID (numeric string, e.g.
1695925551723490).
Use this value in Purple Dot’s Dataset ID field (not the Business Manager ID or ad account ID).
Open Test Events (for verification)
In Events Manager, select the dataset.
Open the Test Events tab.
Copy the Test event code shown at the top (e.g.
TEST52433). You’ll use this when testing from Purple Dot so events appear in this tab instead of production reporting.
Keep this tab open while you run the connection test in Step 5.
Step 4 - Add credentials in Purple Dot
Log in to the Purple Dot merchant portal.
Go to Settings → Integrations.
Under Analytics, click Connect for Meta.
In the Meta connection modal, enter:
Field
Value
Access Token
Token from Step 3
Dataset ID
Dataset ID from Step 3
Click Save.
Step 5 - Send a test event and verify the connection
You can verify in two ways. Use Test Connection in the modal for the first setup; use the Test button on the saved connection tile for later checks.
Option A - Test before saving (recommended for first setup)
In the Meta connection modal, fill in Access Token, Dataset ID, and Test Event Code.
Click Test Connection (bottom-left of the modal).
Wait for “Credentials verified!”
Confirm in Meta Events Manager
Return to Events Manager → [your dataset] → Test Events.
Within a few seconds, you should see an event named
PurpleDotTestEvent.Confirm the event shows as received/processed (not rejected).
Option B - Test via live checkout with meta_test_event_code (end-to-end)
This option verifies the full integration: storefront → Purple Dot checkout → Meta CAPI → Events Manager Test Events. It is the best way to confirm real checkout events (AddToCart, InitiateCheckout, AddPaymentInfo, Purchase) are flowing correctly.
Copy the Test event code from Meta Events Manager → [your dataset] → Test Events.
Open the storefront with the test event code in the URL:
https://your-store.com/products/example-product?meta_test_event_code=TEST52433Replace
TEST52433with your actual test event code. The parameter can be added to any storefront page URL.Complete a test pre-order/checkout flow (add to cart, open checkout, enter payment details, complete the order).
In Meta Events Manager → Test Events, confirm the real checkout events appear - for example
InitiateCheckout,AddPaymentInfo, andPurchase.

Last updated