Install affiliate referral tracking on your website
The referral tracking script keeps the partner's referral when a visitor lands on your website. Install it once on the site your partners promote, then run a tracking check before partners start sharing.
On this page
Before you start
- You need an active program with an active offer. See create an affiliate program.
- To run the tracking check, you need at least one approved partner. Their referral link is what you test.
- You need access to your website's code or its custom-code setting.
How tracking works
When someone opens a partner's referral link, they land on your website with a referral token. The tracking script saves that token in the visitor's browser, so the referral is not lost when they move to other pages.
The script captures the referral. It does not record sales. Purchases, renewals, refunds and chargebacks must come from a revenue source, so commissions follow real payments. See add a revenue source.
Install the script
In Omni Affiliates, open Settings and choose your program.
Scroll to Website attribution.
Under 1. Install attribution once, select Copy.
Omni Affiliates › Settings › Website attribution The script looks like this:
<script src="https://founderomni.com/affiliates/track.js?v=20260912" async></script>Paste it into your site's shared layout, so it loads on every landing page partners link to. To find where your site builder takes custom head code, see install the tracking code on your platform.
Publish your site.
Always copy the script from Settings so you get the latest version, including the ?v= part. One copy per page is enough.
Optional: track free signups or leads
Under 2. Optional zero-value lead event, select Copy for an example that records a lead or signup with no money value. Your developer calls it after the signup succeeds. Browser events can't record paid sales; send those from a revenue source.
Run the tracking check
The tracking check opens a test visit through a real referral link and confirms that your website captured it. Test visits stay out of reports, usage limits and payouts.
Open Home and find Check your referral tracking.
Under Referral link, choose an approved partner's link.
Select Start tracking check.
Select Open test website. Your website opens in a new tab with the test link.
Go back to FounderOmni and select Check again. Step 2 shows "Website captured the test visit." when the script works.
Optional: enter a Sample revenue amount and select Calculate sample commission to preview what the partner would earn, using the offer, partner and program rules.
The check is a diagnostic visit and a calculation preview. It does not create a real conversion, payment or payout. Test links expire after one hour.
Troubleshooting
- "No referral links are ready for testing." — activate the program and an offer, then approve a partner. Their active referral link appears in the list.
- Step 2 keeps saying "Waiting for your website." — the script is missing, unpublished or out of date on the page the link opens. Copy the latest script from Settings, publish, open the test link again and select Check again.
- "This check expired. Start a new check above." — test links last one hour. Select Start tracking check again.
- Calculate sample commission is greyed out — the website hasn't captured the test visit yet. Fix step 2 first.
- Real sales arrive without a partner — the referral wasn't passed into checkout. Set up your revenue source to carry it. See add a revenue source.
