Here's a quick, comprehensive guide on the benefits of a Shopify Custom Sales Pixel and how to set one up.
What is a Shopify Custom Pixel?
Sales pixels allow us to track offline conversions, so you can follow your fans' journeys from the moment they click a TBits Tracker Link to when they purchase that slick new merch they've had their eyes on.
Use this pixel in conjunction with your TBits Trackers to match purchases to individual Fan Profiles, and enrich your conversion data.
Create a Shopify Custom Pixel
Like most pixels, setting up a TBits Sales Pixel on Shopify will require you to install a piece of code to your order status page. To get started, you will need access to your Shopify and Tradable Bits accounts.
1. In your Shopify account navigate to Settings > Customer Events > Add custom pixel.
2. Name the pixel and click Add Pixel
3. Once created, copy and paste the below code into the code window in Shopify.
analytics.subscribe('checkout_completed', (event) => {
const script = document.createElement('script');
script.setAttribute('src', "https://tradablebits.com/pixels/ACCOUNTID/sdk.js");
script.setAttribute('async', '');
document.head.appendChild(script);
window.tbShopifyEvent = event.data.checkout;
});
4. Add your account number into the ACCOUNT placeholder in the above link, or grab it pre-populated from your Tradable Bits account under Trackers>Sales>Shopify Sales Tracker.
5. Click Save first, then click Connect and that's it.