Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Affiliate tracking script missing: how to find and fix it

TRK-259Medium impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

An affiliate or partner programme pays other people for sending you customers. To know who sent whom, the platform asks you to add a small piece of JavaScript to your site. This is the affiliate tracking script.

When a visitor arrives through a partner link, the script reads the click ID or referral code in the URL (for example irclickid for Impact or via for Rewardful) and saves it in a cookie. Later, at signup or purchase, that saved value links the sale to the partner.

The issue is simple: the script is not on the page. It may never have been installed, it may have been removed in a theme update, or it may only load on some pages.

Typical script per platform (check your own dashboard for the exact snippet and account ID)
PlatformWhat loadsWhat it stores
ImpactUniversal Tracking Tag (UTT) from your Impact accountClick ID from the irclickid parameter
PartnerStackGrowsurf-style partner tracking script (the translink or PartnerStack JS snippet)Partner key from the referral link
Rewardfulrewardful.js plus a small rewardful queue snippetReferral ID in a cookie, exposed as Rewardful.referral

Why it costs you leads or sales

Without the script, the click from a partner is not recorded. Your partners send real traffic, but their dashboards show no referrals and no commission.

The damage builds slowly. Partners notice missing payouts, stop promoting you or leave the programme. You also lose clean data on which partners actually bring revenue, so you cannot decide where to invest.

Where credit is lost
  1. Partner link clickedURL carries the click ID or referral code
  2. Landing page loadsAffiliate script is not on the page
  3. No referral cookieNothing is stored
  4. Signup or purchaseSale has no partner attached
  5. CommissionPartner is not credited

The break happens on the landing page, but you only see the effect later.

Partner-referred sales creditedExample numbers
Partner-referred sales credited (example)Real partner sales: 40 sales per month; Credited, script on all pages: 40 sales per month; Credited, script missing on landing pages: 6 sales per month0153140406Real partner salesCredited, script on a…Credited, script miss…sales per month

Example: 40 sales really came from partners, but only the pages that still had the script credited them.

How to check if your site has it

Check for the script in your browser
  1. Open a landing page in a private window

    Use the real URL partners link to. Add a test parameter, for example ?irclickid=test123 for Impact or ?via=testpartner for Rewardful.

  2. Open DevTools and go to the Network tab

    Press F12 (or Cmd+Option+I on Mac), choose Network, tick Preserve log and reload the page.

  3. Search for the script file

    Filter for impact, partnerstack or rewardful. You should see the script load with status 200. No match means it is missing or blocked.

  4. Check the cookie

    Open Application (Chrome) or Storage (Firefox), then Cookies. Look for the platform's cookie, such as rewardful.referral or an Impact click cookie. If the script loaded but no cookie appears, see the cookie issue linked below.

  5. Test other page types

    Repeat on the homepage, a blog post, a pricing page and a product page. Scripts are often added to the homepage only.

Console check (paste into DevTools Console)javascript
console.log('Rewardful:', typeof window.rewardful, window.Rewardful && window.Rewardful.referral);
console.log('Scripts:', [...document.scripts].map(s => s.src).filter(s => /impact|partnerstack|rewardful/i.test(s)));

How to fix it

Always copy the snippet from your own affiliate dashboard. It contains your account ID, and the code differs between accounts. The steps below show where to put it.

Install the affiliate script by platform
  1. Create a Custom HTML tag

    In Tags, choose New, then Custom HTML, and paste the snippet from your affiliate dashboard.

  2. Trigger on All Pages

    Use the All Pages trigger so every landing page loads it. If you use a consent banner, set the correct consent type for the tag.

  3. Preview and publish

    Use Preview mode with a partner link, confirm the tag fires, then Submit the container.

Example shape of a Rewardful install (use the snippet and API key from your own dashboard)html
<script>(function(w,r){w._rwq=r;w[r]=w[r]||function(){(w[r].q=w[r].q||[]).push(arguments)}})(window,'rewardful');</script>
<script async src='https://r.wdfl.co/rw.js' data-rewardful='YOUR_API_KEY'></script>

How to confirm it's fixed

Confirmation checks
  • The script file loads with status 200 on the homepage, a blog page and a landing page.
  • Opening a link with a test partner parameter creates the platform's cookie.
  • The console check shows the script or the referral object.
  • The click appears in the affiliate platform's dashboard or test tool, where it offers one.
  • A test signup or order made from a partner link shows the partner attached in the platform.
  • The script loads only once per page, not twice.

How to prevent it happening again

Prevention habits
  • Install the script through one place, such as the tag manager, so a theme change cannot remove it.
  • Keep a short note of where the script lives and who owns it.
  • Retest with a partner link after every theme update, migration, redesign or tag manager publish.
  • Ask your top partners to tell you if their dashboard referrals suddenly drop.
  • Compare partner-attributed sales each week against the previous weeks and look into sharp falls.
How a missing script usually goes unnoticed
  1. Day 0

    A theme update or redesign drops the script from the header.

  2. Week 1

    Sales still come in, so nothing looks wrong.

  3. Week 3

    A partner asks why their referrals stopped.

  4. Week 4

    You find and reinstall the script. Past sales are hard to credit.

How FunnelGuard handles this

FunnelGuard does not check for affiliate scripts yet. Detecting Impact, PartnerStack or Rewardful is a possible future check, not something it does today.

What FunnelGuard does do is run your real customer journeys on a schedule, such as lead forms, checkouts and booking buttons, and check each step plus the tracking hits sent to ad and analytics platforms like GA4, Google Ads and Meta. That can show you when a page or step breaks after a site change, which is often when affiliate scripts go missing too.

Questions people ask

Why is my affiliate tracking not working?

The most common cause is that the affiliate script is not loading on the landing page. Open DevTools, go to the Network tab and look for the Impact, PartnerStack or Rewardful file. If it is absent, add the snippet from your affiliate dashboard to every page.

How do I check if the Impact tracking script is installed?

Open your site in a private window with an irclickid test parameter, then check the Network tab for the Impact script and the Application tab for its cookie. Impact's own dashboard may also show whether the tag was seen. Test several page types, not only the homepage.

Where do I put the Rewardful script?

Place the Rewardful snippet in the head of every page, using your site's header code area or Google Tag Manager. Use the snippet with your own API key from the Rewardful dashboard. After publishing, check that window.Rewardful exists in the console.

Why does the affiliate script work on the homepage but not other pages?

The snippet was probably added to one template or page instead of the site-wide header. Move it into the shared layout or a tag that triggers on all pages. Partners often link to blog posts or landing pages, so those must have it too.

Can an ad blocker stop affiliate tracking?

Yes. Some blockers and privacy browsers stop affiliate scripts or cookies, so some partner clicks can be missed even when your install is correct. Test in a clean window to be sure your own setup works, and ask the platform about server-side options.

Do I need the affiliate script on the checkout page too?

The click script should be on all public pages so the referral is saved early. The conversion tracking on the order confirmation is separate and usually needs order data. Check your platform's guide for both.

Does FunnelGuard check for affiliate scripts?

Not yet. It is a possible future check. FunnelGuard currently monitors journeys, tracking hits to ad and analytics platforms and lead delivery, so check affiliate scripts manually for now.

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.