Journal

Affiliate links need a disclosure. Automate it.

The articles are earning and nobody has thought about the sentence that must sit above them. How we insert the disclosure automatically, back catalogue included.

A publisher adds affiliate links to its reviews. A retailer pays per click and a percentage of sales. Three months later the articles are earning, and nobody has thought about the sentence that is legally required to sit above them. Affiliate disclosure is the least glamorous job in publishing and one of the easiest to automate, so there is no excuse for it being missing.

What is required

Readers must be told, clearly and before they click, that the publisher may earn from the links in an article. Advertising regulators say so, the platforms themselves say so, and Google treats undisclosed paid links as link selling. The disclosure has to be on the page, visible without scrolling into the footer, and in plain language. A line in the site’s terms and conditions does not count.

The same rule applies to sponsored articles and to any product coverage the brand paid for, which is why this is a companion to our note on marking sponsored links. Disclosure is for readers. The link attribute is for search engines. A compliant article needs both.

Why it goes missing

Because affiliate links are added by writers, in the body of an article, with no step that asks whether a disclosure is present. The editorial workflow was built for news. Monetisation was added later and the workflow did not change. The result is a site where some reviews carry a disclosure because a diligent writer pasted one in, and most do not.

How we automate it

On the publishers we run, a small plugin inspects each article as it is rendered and looks for links to known affiliate destinations: the retailer’s domain, the marketplace’s tracking parameter, the affiliate network’s redirect. If any are present, a disclosure notice is inserted at the top of the article content, in the site’s style, with the wording the publisher’s lawyers approved. If none are present, nothing is shown. Writers change nothing. Editors change nothing. Articles published years ago are covered the day the plugin goes live.

The details that matter:

  • The list of affiliate destinations is configuration, not code. When a new affiliate programme starts, one line is added and every article linking to it is disclosed from that moment.
  • The notice is on the page, not in a popup or a tooltip. It is the first thing after the headline on a page that qualifies, and it is styled so it reads as an editorial note rather than an advert.
  • The outbound links themselves carry the sponsored attribute, added by the same plugin, so the search engine side is handled in the same pass.
  • It is render-time. Nothing is written into the article, so the disclosure wording can change site-wide without touching a single post.

What it looks like for the reader

A single sentence, in a subdued box, above the article: this article contains affiliate links and the publisher may earn a commission from purchases. Readers barely notice it. Regulators and platforms do, and so does the publisher’s reputation the day a competitor decides to make a point of it.

While you are at it

Affiliate links should also be checked for the obvious failure: a link to a product that no longer exists, pointing at a page that now returns an error, in an article that still ranks. A monthly report of affiliate links by response code is a few lines of script and it finds dead revenue every time.

Affiliate handling, sponsored content marking and ad operations are part of the publishing platforms we run. If your site earns from links and nobody owns the disclosure, that is a quiet risk worth closing.

Got a similar problem? Talk to us.

Start a project