- Front end (Shopify): your storefront and checkout both run on Shopify.
- Backend (custom): your own system, such as an external order management system (OMS), sends orders to Northbeam through the Orders API. You don’t use the Shopify connector.
Why you’d have this setup
A common reason is keeping one customer ID across every system. For example, you might:- Import your Shopify orders into your OMS.
- Replace the Shopify customer ID with your OMS customer ID.
- Send all orders to Northbeam through the Orders API, including your Shopify orders.
Why the pixel needs a change
The Northbeam Custom Pixel sends a purchase event to Northbeam when a customer checks out. Northbeam then matches that event to the real order.- With the Shopify connector, Northbeam matches them using Shopify’s checkout token. That’s what the standard pixel sends.
- With a custom backend, Northbeam matches them using the order ID you send through the Orders API. The checkout token won’t match anything, so the pixel needs to send the Shopify order ID instead.
Update the Custom Pixel
Set up the Custom Pixel as usual by following step 2 of the Shopify guide. Before you click Save, change one line in the script.1
Find the id line
In the firePurchaseEvent script, find the
// Subscription Hook section. The first line inside firePurchaseEvent sets the id:2
Change it to the order ID
Replace that line with:Leave the rest of the script as it is. The section should now look like this:
3
Save and connect
Click Save, then finish the rest of the Shopify guide as normal.