Shopify checkout with a custom backend? If your checkout runs on Shopify but your own system sends orders to Northbeam, this isn’t the right guide. Follow Shopify + Custom.
What you’ll set up
Before you start
- Plan: Custom setup is available on Pro and Enterprise plans.
- Developer: You’ll need someone who can add scripts to your site, either in its code or through Google Tag Manager.
- Open your scripts. Go to Settings → Northbeam Pixel and Event Tracking. Your scripts are there, already filled in with your Client ID.
1. Install the Northbeam Pixel
The pixel must run on every page of your site. It records visits, where visitors came from, and the pages they view.- In your site's code
- Google Tag Manager
1
Copy the pixel
Copy the Northbeam Pixel from Settings → Northbeam Pixel and Event Tracking.
2
Paste it in the head of every page
Paste it into the
<head> section of your site’s template, so it loads on every page.3
Publish
Deploy or publish your site.
Using a Content Security Policy (CSP)?
Using a Content Security Policy (CSP)?
If your site uses a CSP, its
connect-src must allow your i. subdomain. Add either:*.your-store.com, ori.your-store.com
Need the script without the dashboard?
Need the script without the dashboard?
Use this script and replace
{DATA_CLIENT_ID} with your Data Client ID, found under API Keys.2. Add a purchase event
Add a purchase event to your Order Confirmation or Thank You page. It tells Northbeam which orders to attribute. UsefireSlimPurchaseEvent. It sends the order ID, which is all Northbeam needs. Order details like revenue come from your backend.
It must:
- Fire after the Northbeam Pixel loads
- Fire once per order. Refreshing the confirmation page must not fire it again.
- Use the exact order ID your backend sends to Northbeam
Set up purchase events
Full instructions, examples, field reference, and testing steps.
Test your setup
Check that you have:- The Northbeam Pixel in the
<head>of every page - A purchase event that fires once per order on your confirmation page
- Your Google Tag Manager container published (if you use it)
Optional tracking
Add these only if they apply to your store.Custom Goals
Track other actions, like sign-ups, add-to-carts, or form submissions.
Page View Events
Only for single-page apps (for example, Next.js or React Router). Most sites don’t need this.
FAQ
Can I install Northbeam through Google Tag Manager?
Can I install Northbeam through Google Tag Manager?
Yes. Both the pixel and the purchase event can be added through Google Tag Manager. Make sure the pixel tag fires before the purchase event tag, and publish your container after every change.
My store is headless but uses Shopify's checkout. Which guide do I follow?
My store is headless but uses Shopify's checkout. Which guide do I follow?
Follow the Shopify guide.
Where's the list of every pixel function?
Where's the list of every pixel function?
See All Pixel Functions.