Affiliate button placement test: how to find where your links earn the most

November 28, 2026 · Hoplytic team · 5 min read

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

Where should your affiliate button go? Here's how to test it without fooling yourself.

First, give each link position a stable name, and track clicks and sales per position.

Buttons on one page steal clicks from each other, so measure the page as a whole. In the guide's example, adding a top box won on clicks but lost on money: thirteen cents per visitor, against thirteen and a half.

A reader who scrolls to your end button has already read the whole post, so spots are seen by different people.

Change one thing at a time. Split traffic fairly, by random split, alternating weeks, or matched pages. And wait until each version has enough visitors, often thousands.

With the site script, each click records the page, the link text and the spot you name with data-spot. Hoplytic doesn't split your page into versions, so use your A/B tool or alternating weeks.

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

Key points

On a content site, the same product, the same commission and the same reader can earn very different amounts depending on where the link sits and what it says. Button placement is one of the cheapest things you can test. It's also one of the easiest to test badly.

Short answer: give each link position a name (top box, comparison table, after verdict, end of post), track clicks and sales per position, and compare earnings per page visitor between versions of the page, not clicks per button. Change one thing at a time, split traffic fairly between versions, and wait until each version has enough visitors before you decide.

What you can test

Pick the change you think matters most and test that alone. If you move the button and reword it at the same time, you won't know which change did the work.

The measure: earnings per page visitor

Most people look at click-through rate per button. That's misleading for two reasons.

Buttons compete. Add a box at the top and it will collect clicks, but some of those readers would have clicked the button after your verdict anyway. The page's total clicks may barely move.

Clicks aren't sales. Readers who click early, before reading your review, often convert worse than readers who click after the verdict. A spot with more clicks can earn less.

So measure each version of the page as a whole:

earnings per visitor = commission from the page / visitors to the page

Example with made-up numbers. Version A (buttons in the table and after the verdict): 4,000 visitors, 360 affiliate clicks, $540 commission, so $0.135 per visitor. Version B (adds a top box): 4,000 visitors, 430 clicks, $520 commission, so $0.130 per visitor. B "wins" on clicks and loses on money. Clicks per spot are still useful as a diagnostic; they just don't pick the winner. For the formulas behind EPC and conversion rate, see affiliate metrics explained.

Spot comparison is not an A/B test

The quickest thing you can do is look at one page and see which spot earns most. That's worth doing, but read it carefully. A reader who scrolls to your end-of-post button has read 2,000 words; a reader who clicks the top box may have skimmed. The spots are seen by different people in different moods, so the comparison tells you where engaged readers act, not what would happen if you moved a button.

To learn what a change does, compare two versions of the page.

Three ways to run a fair test

MethodHowWatch out for
Random splitAn A/B testing tool or plugin shows version A or B per visitor, at randomPage speed and flicker; cached pages that always show one version
Alternating periodsVersion A for one week, B the next, repeatSeasonality, sales events and merchant price changes between weeks
Matched pagesApply the change to half of a group of similar pagesPages are never identical; you need many of them

A random split is the most reliable. Alternating works if you run several rounds, so a one-off promotion doesn't land in one version only. Avoid launching the new layout and comparing with "last month": too many other things change. The same rules apply to offers and landing pages, covered in split testing landing pages.

How much traffic you need

A rough rule for comparing two rates (80% chance of spotting a real difference, 5% false alarms):

visitors per version ≈ 16 × p × (1 − p) / d²

Here p is the rate you expect and d the difference you want to detect. If 9% of visitors click an affiliate link and you want to detect a change from 8% to 10% (d = 0.02), you need about 16 × 0.09 × 0.91 / 0.0004 ≈ 3,300 visitors per version. To detect a difference in sales, with much smaller rates, you need far more. That's why it's sensible to:

More on reading results in the statistical significance entry.

A simple test plan

  1. Choose one page with steady traffic and a clear change to test.
  2. Name every link position and keep the names the same across pages.
  3. Record a baseline: visitors, clicks per spot, sales and commission for two weeks.
  4. Run the test until each version passes your sample size and covers full weeks.
  5. Compare earnings per visitor. Check sales, not just clicks, before rolling it out.
  6. Roll the winner out to similar pages, then measure again: what works on reviews may not work on lists.

Once you know which spots earn, the next question is which pages earn: see tracking affiliate earnings per article.

Measuring spots in Hoplytic

With the one-line site script on your pages, each click on a tracked link records the page, the link text and the spot, which you name with data-spot, for example <div data-spot="verdict-button">. Sales from the network land on the exact click, so you can group a report by the spot value and see clicks, sales and commission per spot, and the Pages report shows earnings per page. Hoplytic doesn't split your page into versions itself; use your A/B tool or alternating weeks for that, and use the spot names to read the result.

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

Questions people ask

Where is the best place for an affiliate button?

There is no single answer: it depends on the page type and how ready the reader is to buy. Comparison pages often earn from a table near the top, long reviews from a button after the verdict. Test it on your own pages with earnings per visitor as the measure.

Should I put an affiliate link above the fold?

Often yes for readers who arrive ready to buy, such as visitors searching a product name. But a button above the fold can take clicks from readers who would have converted better later in the page, so measure total page earnings, not just that button's clicks.

How long should a button placement test run?

Until each version has enough visitors to show a real difference, and at least one or two full weeks so weekdays and weekends are both included. On low-traffic pages that can mean months, so test on your highest-traffic pages first.

More in Optimization and ROAS

Also: tracking glossary · ad platform macros · Markdown copy