Liftoff Pixel Shopify Integration
This guide walks you through the steps to integrate Liftoff’s pixel into your Shopify store. This integration enables accurate tracking of web events on your Shopify storefront and attributes them to mobile advertising campaigns.
Prerequisites
- A Shopify store and access to your store's admin dashboard
- Your Liftoff Pixel ID
Install Shopify Customer Events
- In your Shopify admin, navigate to Settings > Customer Events. Click Add Custom Pixel.
- Name your pixel (e.g., Liftoff Pixel), then paste the below script into the code editor. Replace
<customer-pixel-id>
with the pixel ID that will be provided to you.
(function (w, d, f) { if (w.lo)return;s=(w.lo=function(){s.callMethod? s.callMethod.apply(s, arguments): s.queue.push(arguments);}); if (!w._lo)w._lo=s;s.push=s;s.loaded=0;s.version="1.0";s.queue=[]; T=d.createElement("script");T.async=1;T.src=f;f=d.getElementsByTagName("script")[0]; f.parentNode.insertBefore(T,f); })(window, document, "https://cdn-public.liftoffintl.io/app2web-sdk/sdk.js");
lo("init", {
pixelID: "<customer-pixel-id>",
analytics: analytics,
init: init
});
- Click Save and Connect to publish it.