How to track sales from Shopify
Every order in your store, attributed to its source link.
AT A GLANCE
| What NEMO tracks | Sales |
|---|---|
| Connection | Guided — step by step, no server code involved |
| Method | “The thank-you page” · Thank-you page · good reliability |
| Steps | 3 in total, with a one-minute check at the end |
| Worth knowing | Don't use the order status “Additional scripts”: Shopify is retiring them (deadline August 2026). The custom pixel is the current route. |
With Shopify, NEMO tracks which link brings each sale with no pixels and no Google Analytics. Know which link, video or ad brought you each order in your Shopify store — with today's official route (custom pixel), no paid apps. Two pieces: the NEMO script in your theme (stores the visitor's source) and a custom pixel that, when the order completes, reports it to NEMO with the real amount. The method is “The thank-you page” (thank-you page · good reliability): After paying, the buyer lands on a page of yours with the NEMO script: the sale is recorded there with its source (the 90-day cookie). It depends on the purchase happening in the same browser as the click. Don't use the order status “Additional scripts”: Shopify is retiring them (deadline August 2026). The custom pixel is the current route. The full connection is 3 steps and you verify it with a single test click.
How is each Shopify sale attributed?
The thank-you page · Thank-you page · good reliability
Two pieces: the NEMO script in your theme (stores the visitor's source) and a custom pixel that, when the order completes, reports it to NEMO with the real amount.
- Paste the NEMO script into your theme: Online Store → Themes → ⋯ → Edit code → layout/theme.liquid, right before </head>: Open the Shopify admin
<script src="https://nemolink.app/nemo.js" defer></script> - Point your NEMO links at your store (home page, product or collection — any theme page works to store the source).
- Create the pixel: Settings → “Customer events” → Add custom pixel → name it “NEMO” and paste this code. Save and press Connect:
analytics.subscribe("checkout_completed", async (event) => { const nmId = await browser.cookie.get("nm_id"); if (!nmId) return; const total = event.data.checkout.totalPrice; const payload = { click_id: nmId, event: "sale", event_name: "Shopify Purchase", customer_external_id: String((event.data.checkout.order && event.data.checkout.order.id) || "anon_" + nmId), }; if (total && total.amount) payload.amount_cents = Math.round(Number(total.amount) * 100); fetch("https://nemolink.app/api/track", { method: "POST", mode: "no-cors", keepalive: true, body: JSON.stringify(payload), }); });
Note: Don't use the order status “Additional scripts”: Shopify is retiring them (deadline August 2026). The custom pixel is the current route.
Note: Privacy: in the EU, if the customer rejects cookies in your consent banner, the pixel doesn't run and that sale goes unattributed (you can adjust the pixel's permissions under “Customer privacy”, at your own responsibility).
Check it in one minute
- Click your own NEMO link to your store.
- Place a test order (Shopify has the “Bogus Gateway” test gateway so you're not actually charged).
- When you reach the checkout's thank-you page, the sale shows up in NEMO with amount and source.
Frequently asked questions
- What do I do if the order completes but the sale never arrives?
- Is the pixel in “Connected” state (not just saved)? Is the NEMO script in the ACTIVE theme? Did you accept cookies during the test?
- What do I do if sales show “no source” or don't show up at all?
- The cookie lives on your store's domain: if the customer browsed on another domain (e.g. came in through *.myshopify.com and bought on your own domain), there will be no source. Always use the same public domain in your links.
- What do I do if shopify warns me that custom pixels are “unsupported”?
- It's Shopify's standard notice for any custom code (they work, but their support team won't debug them). The code above uses only their official pixels API.
OFFICIAL SOURCES
- Shopify · Web Pixels API (browser.cookie, checkout_completed)
- Shopify · Managing custom pixels
- Shopify · Additional scripts retirement (Thank you / Order status upgrade)
Guide verified against the official documentation on 2026-07-21.
ALSO INTEGRATES WITH
Track Shopify from your very first link.
Free during early access. Early users get special terms when paid plans launch.