Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Affiliate conversion pixel missing on order confirmation: fix

TRK-262High impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

When a visitor arrives through an affiliate link, the network stores a click ID or cookie. The conversion pixel (also called a sale tag or conversion script) runs on the order confirmation page. It sends the order ID, value and the stored click ID back to the network, which then credits the affiliate.

Where the affiliate sale gets lost
  1. Affiliate link clickNetwork sets click ID or cookie
  2. CheckoutCustomer pays
  3. Order confirmationConversion pixel missing
  4. Network records saleNever receives the order
  5. Affiliate paidNo commission

The click is tracked, but the sale never reaches the network.

Why it costs you leads or sales

Reported vs real affiliate salesExample numbers
Reported vs real affiliate sales (example)Real affiliate orders: 100 orders; Pixel working: 100 orders; Pixel missing: 0 orders038771001000Real affiliate ordersPixel workingPixel missingorders

Example: 100 orders came from affiliate links in a month, but the pixel only fired on a fraction of them.

How to check if your site has it

Check the confirmation page manually
  1. Start from an affiliate link

    Open a private window and visit your site through a test affiliate link from your network dashboard, so the click ID or cookie is set.

  2. Place a test order

    Complete a checkout using a cheap product, a 100% discount, or your store's test mode. Do not use a real card on a live gateway unless you intend to pay.

  3. Open DevTools on the confirmation page

    Press F12, open the Network tab, reload if needed, and filter by your network's domain (for example the name of the network or 'conversion', 'sale', 'track').

  4. Look for the sale request

    You should see a request carrying the order ID and amount. No request, or a failed one (red, 4xx or 5xx), means the pixel is missing or broken.

  5. Check the network dashboard

    Most networks show a test or pending conversion within minutes to hours. If nothing appears, the sale was not received.

How to fix it

Add the conversion pixel by platform
  1. Open checkout settings

    Go to Settings > Customer events and add a custom pixel, or use the network's Shopify app if it has one. Older stores on checkout.liquid can use Settings > Checkout > Order status page > Additional scripts, where available.

  2. Fire on checkout completed

    In a custom pixel, subscribe to the checkout_completed event and send the order ID, total and currency to the network.

  3. Save and test

    Place a test order and check the network request.

Example shape of a conversion call (use your network's real code)html
<script>
  // Replace with the snippet from your affiliate network.
  // Values must be filled in by your platform for each order.
  var order = {
    id: "ORDER_ID",
    total: "99.00",
    currency: "USD"
  };
  // networkConversion(order);
</script>

How to confirm it's fixed

Confirmation checks
  • Test order made after arriving through an affiliate link
  • Network request visible in DevTools with status 200
  • Order ID, value and currency are correct, not blank or placeholder text
  • Request fires once, not on every refresh
  • Test conversion appears in the network dashboard
  • Works for each payment method, including PayPal and wallets
  • Works on mobile as well as desktop

How to prevent it happening again

Habits that catch it early
  • Place a test affiliate order after every checkout, theme or plugin update
  • Compare network-reported sales to your store's orders each week
  • Document where the pixel lives (theme, GTM container or app) so others do not remove it
  • Ask affiliates to tell you quickly if commissions look low
  • Keep GTM version notes so you can roll back a bad publish

How FunnelGuard handles this

Questions people ask

Why are my affiliates not getting credit for sales?

The most common reason is that the network's conversion pixel is not firing on the order confirmation page. It may have been removed in a theme or checkout change, or the customer lands on a different URL after payment. Place a test order from an affiliate link and check DevTools for the network's sale request.

Where should the affiliate conversion pixel go?

It goes on the page shown after a successful order, usually the thank-you or order confirmation page. It should fire once per order and include the order ID, value and currency. Some platforms use an app or integration instead of pasted code.

How do I test if my affiliate pixel is firing?

Visit your site through a test affiliate link, place a test order, then open DevTools Network tab on the confirmation page and filter for the network's domain. You should see a successful request with the correct order details. Then check the network dashboard for the test conversion.

Can I add the affiliate pixel with Google Tag Manager?

Yes. Create a tag with the network's code or template, trigger it on the purchase event or confirmation page, and map order ID and value from the data layer. Use Preview mode to confirm it fires once, then publish.

Why does the pixel work for card payments but not PayPal?

Some payment methods redirect customers to a different confirmation URL or skip your thank-you page. Make sure the pixel is on every page a customer can land on after payment, and test each payment method.

Does FunnelGuard detect a missing affiliate conversion pixel?

Not yet. It is a possible future check. FunnelGuard currently runs your customer journeys and checks steps and tracking hits to ad and analytics platforms, so for affiliate pixels you should test manually and reconcile network sales against your orders.

Can missing affiliate sales be added back later?

Sometimes. Many networks let you submit missing conversions manually or by file upload within a limited window, but rules vary. Check your network's documentation and fix the pixel first so it does not keep happening.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.