Affiliate link hijacking: when someone else's ID ends up on your links
A hijacked link still works for the reader. The product page opens, the sale happens, and the commission goes to someone else. Nothing errors, so it usually shows up only as earnings that slowly don't add up.
On your pages: someone else's ID in your links
- A theme, plugin or widget that adds its maker's affiliate ID to product links or boxes.
- A snippet or table copied from another site, with that site's tag or sub-ID still in it.
- A site you bought: the seller's tracking IDs and network accounts left in old posts.
- Compromised code. In June 2024, a supply-chain attack slipped malicious code into five plugins on WordPress.org, installed on more than 35,000 sites; it created admin accounts and injected JavaScript into site footers. Code that can do that can rewrite every link on the page.
Off your pages: the last click
Most networks credit the last affiliate click before a sale. A browser extension that adds its own affiliate click at checkout can take the credit for a sale your page sent. In December 2024, an investigation by the YouTuber MegaLag showed PayPal's Honey extension replacing creators' affiliate cookies with its own at checkout, even when it had no coupon to offer. Awin later said Honey had violated its publisher policies and suspended its payments.
You can't stop an extension on a reader's browser. What you can do is notice it: if a program's clicks hold steady and its sales fall, ask the network or brand whether a coupon or cashback partner is taking the last click.
Checking your own links
- List your own IDs on each network: Amazon tracking IDs, your Awin publisher ID, your CJ and Impact account IDs.
- For Amazon, paste a page's HTML into the tracking ID checker with your IDs listed: any other ID is flagged.
- For the rest, look at the network's link format on your busiest pages: the publisher ID part should be yours on every link.
- Repeat after every theme or plugin change and after buying a site, and check the whole site, not one page.
If you find one
- Remove the code that adds it, and replace the links it touched.
- If it came from a plugin, check whether a security update exists, and look for admin accounts you didn't create.
- Tell the network: they can check which account received the clicks and sales.
Check your whole site, free
The free link check reads up to 100 pages across your sitemap and finds every one of these: gone, bounced, out of stock, untracked, someone else's ID, no sub-ID. It reads the store address out of each link and never clicks one.
Check my linksSources: BleepingComputer: Plugins on WordPress.org backdoored in supply chain attack · Wordfence: Supply chain attack on WordPress.org plugins · PPC Land: Awin confirms Honey violated affiliate policies, suspends payments · PPC Land: How PayPal's Honey manipulated coupon codes and diverted affiliate commissions.
More guides
- RevWarn vs Strackr vs Wecantrack: which affiliate dashboard fits your sites?
- Switching from Strackr to RevWarn: what moves over, and what to check first
- Switching from Wecantrack to RevWarn: links, click IDs and history
- Lasso and RevWarn: use both, or switch?
- How to find broken affiliate links before they cost you
- What to do when an affiliate program pauses or ends
- FTC and Amazon disclosure checklist for affiliate sites
- How to track which page earned each affiliate sale (sub-IDs on every network)
- Why your affiliate network numbers don't match your analytics
- What buyers check before buying a content site
- Amazon Associates: three sales in 180 days, and keeping the account after
- Amazon tracking IDs: one per site or section, and how to read them back
- Amazon OneLink: earning from visitors outside the US
- EPC and RPM for affiliate sites: which number to watch, and why
- Which affiliate pages to update first: earnings at risk, not traffic
- Core Web Vitals for affiliate sites: what slows buying guides down, and what to fix first