How to track affiliate earnings per article, across every network

November 28, 2026 · Hoplytic team · 5 min read

The short version: this guide in 79 seconds.
Read the video transcript

Your blog earned money across four networks. Which posts made it? Here's how to find out.

Put the post slug in a sub-ID slot, or put a click ID there and let a page script record the post. Labels need a separate link per product per post. The script needs one line. It also records the spot, country and device.

Don't rank posts by total earnings. Click-through rate is affiliate clicks over pageviews. Earnings per click is commission over clicks, so it shows whether the offer converts. Page RPM is CTR times EPC times a thousand: the fair way to compare big and small posts.

High traffic but low click-through? Move links higher or add a product box. Good click-through but low earnings per click? Change the offer or the merchant. Clicks with no sales for weeks usually means a broken link or lost sub-ID.

Use approved commission, and don't judge a post on two or three sales.

Hoplytic puts its click ID in the sub-ID, and the site script records page, spot and link text. Sales arrive by postback, hourly API sync, or report upload. The Pages report shows which pages earn.

The full guide is right below. Hoplytic: ad tracking made simple.

Key points

Your blog made $3,140 last month across four networks. Which posts made it? Without earnings per article, you update the wrong posts, write more of what doesn't pay, and leave your best earners to go stale.

Short answer: tag every affiliate click with the article it came from, either with a per-article label in a sub-ID or with a click ID plus a page script, then collect sales from every network and match them back. Compare posts on earnings per 1,000 pageviews, and split that into click-through rate and earnings per click to see what to fix.

If your clicks aren't tracked per page yet, start with tracking affiliate clicks in WordPress. This guide is about turning that data into earnings per post and acting on it.

Two ways to tag clicks with the article

Per-article label in a sub-IDClick ID plus page script
HowEach link carries the post slug, like best-standing-desks, in a sub-ID slotEach click gets a unique ID in the sub-ID; a script on your pages records which post and spot it came from
SetupA separate link per product per postOne script line; links can be shared across posts
DetailPost onlyPost, spot on the page, link text, country, device
Works without a trackerYes, in each network's reportNo
RiskOne forgotten label and that post's sales go to "unknown"The script missing from a page template

The per-article label works for a small site with a handful of networks. Past a few dozen posts, or once the same link appears in many posts, the click ID approach saves a lot of upkeep. Which sub-ID field each network uses is in sub-ID parameters by network.

Getting sales back from every network

A post's earnings come from several places. You need sales from each, matched to the click or label:

Amazon deserves a note: it has no sub-ID, only tracking IDs, so per-post earnings there need one tracking ID per post or per group of posts. See Amazon Associates tracking IDs. Combining everything into one view is covered in affiliate earnings dashboard.

The three numbers to compare

Total earnings rank posts by traffic, not by how well they earn. Use these instead:

  1. Earnings per 1,000 pageviews (page RPM): commission divided by pageviews, times 1,000. The fair way to compare a big post with a small one.
  2. Click-through rate (CTR): affiliate clicks divided by pageviews. Shows whether the post persuades people to click.
  3. Earnings per click (EPC): commission divided by affiliate clicks. Shows whether the offers you link to convert and pay. More in EPC, CR and CPA.

Page RPM is simply CTR times EPC times 1,000, so any gap traces back to one or the other.

An example

PostPageviewsClicksCommissionCTREPCPage RPM
Best standing desks18,4002,210$1,32612.0%$0.60$72.07
Standing desk vs sitting22,900460$2072.0%$0.45$9.04
Desk chair review4,100530$9512.9%$0.18$23.17

The second post has the most traffic and the lowest RPM. Its EPC is fine, so the offer converts; the problem is that few readers click. It's an informational post with links buried at the end. A short product box near the top is the obvious test.

The third post gets plenty of clicks, but each earns little. The post works; the offer doesn't. Try another merchant, a better-paying program, or a country route if many clicks come from places the offer doesn't pay for.

What to do with the results

PatternLikely fix
High traffic, low CTRMove links higher, add a comparison table or product box, make the call to action specific
Good CTR, low EPCChange the offer or merchant, link to a specific product instead of a home page, check country mix
High RPM, falling trafficUpdate the post first: it pays the most per visitor you win back
Clicks, but zero sales for weeksA broken link or lost sub-ID; test it with the redirect checker
Same post, one spot earns mostCopy that spot's format to similar posts

Traps that distort per-article numbers

In Hoplytic

Hoplytic uses the click ID approach: each link puts its click ID in the network's sub-ID, and the site script records the page, spot and link text of every click without cookies. Sales arrive by postback, hourly API sync for ten networks, or a guided report upload for Amazon and others, and the Pages report shows which pages send clicks and earn money across all of them. Commission, conversion rate and earnings per click appear on every link. Pageviews come from your own analytics, so page RPM is one division away.

Copy the one line and paste it before </body> on every page.

Questions people ask

Can I see earnings per post in my affiliate network?

Only if every link carries the post in a sub-ID, and only for that network. Each network reports separately, so you still have to combine them to see a post's total.

What is a good earnings per 1,000 pageviews for an affiliate blog?

It varies too much by niche, offer and traffic type for a useful benchmark. Compare your own posts with each other and with their own past months instead.

How many clicks do I need before comparing articles?

Enough sales that one more or one fewer doesn't change the ranking. With only two or three sales per post, differences are mostly chance; wait for more data or compare groups of posts.

More in Optimization and ROAS

Also: tracking glossary · ad platform macros · Markdown copy