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.
- Affiliate link clickNetwork sets click ID or cookie
- CheckoutCustomer pays
- Order confirmationConversion pixel missing
- Network records saleNever receives the order
- Affiliate paidNo commission
The click is tracked, but the sale never reaches the network.
Why it costs you leads or sales
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
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.
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.
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').
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.
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
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.
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.
Save and test
Place a test order and check the network request.
Use the integration if it exists
For WooCommerce, check whether your network provides a plugin. That is more reliable than pasting code.
Or add code to the thank-you page
Use a plugin that lets you add scripts to the order received page, or add it in your child theme, using the order object for ID and total.
Clear caches
Purge page and CDN caches so the confirmation page is not served from an old copy.
Create the tag
Add a Custom HTML tag with the network's code, or use their template from the Community Template Gallery if available.
Set the trigger
Fire on the purchase event from your data layer, or on a page view where the URL contains your confirmation path.
Pass dynamic values
Create data layer variables for order ID, value and currency and map them into the tag.
Preview and publish
Use Preview mode to confirm the tag fires once on the confirmation page, then publish.
Open the confirmation page settings
In Webflow Ecommerce, open the Order confirmation page and add the script in Page settings > Custom code (before body tag).
Use Webflow's dynamic values
Webflow's order confirmation does not expose all order data to custom code in every plan, so check what your network needs and consider their Webflow guide.
Publish and test
Publish the site and place a test order.
Render the pixel server-side
Output the network's script on the confirmation template only, filling in the real order ID, total and currency.
Fire once per order
Guard against refreshes counting twice, for example by storing a flag against the order.
<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
- 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
- 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.
Related issues
- TRK-259Affiliate tracking script missing (Impact, PartnerStack, Rewardful)Fix guide
- TRK-260Affiliate click ID (irclickid, ref) lost on redirectFix guide
- TRK-261Affiliate cookie not set or wrong domainFix guide
- TRK-263Affiliate conversion fires for every order including non-affiliateFix guide
- TRK-265Shopify/Stripe affiliate integration not passing order IDsFix guide
- TRK-266Partner postback (S2S) failingFix guide