How to mark affiliate links with rel="sponsored"
An affiliate link is a normal URL with an id in it that pays you when someone buys or signs up. Readers should be able to see that the mention is commercial. Crawlers should see it on the tag, not only in a disclaimer three screens away. Google’s guidance on outbound links asks for rel="sponsored" on advertising and paid placements, and affiliate links are in that group. Nofollow is the older, broader mark. Sponsored is the one that says why.
A single product mention
Say the draft sentence is: “We tested the kettle and kept it.” The href is the program’s tracking URL, not the pretty product URL you wish you had. The label is the product, not “click here” and not the raw query string.
URL box:
https://shop.example/go/kettle?ref=bulkhyperlink
Anchor box:
the kettle we tested
Tick sponsored. Leave the other rel boxes off unless you also want nofollow on the same tag. Many publishers add both. One is enough to qualify the link. Generate:
<a href="https://shop.example/go/kettle?ref=bulkhyperlink" rel="sponsored">the kettle we tested</a>
If the click should leave your review open, tick new tab as well:
<a href="https://shop.example/go/kettle?ref=bulkhyperlink" target="_blank" rel="sponsored noopener noreferrer">the kettle we tested</a>
noreferrer hides your URL from the shop’s referrer log. The ref parameter is still in the href, and that is what the affiliate program counts. You do not need the shop to see a Referer header if their id is in the query. If a program told you they track by referrer and gave you no id, the new-tab checkbox on this tool will break that, because it always adds noreferrer. In that rare case, leave new tab off.
The disclosure is a sentence, the rel is on the tag
Put a sentence where a reader will see it before they click. Near the top of a review, or directly above a list of product links, is the usual place:
<p>Some links on this page are affiliate links. If you buy through them, we may earn a commission.</p>
That paragraph does not mark the link. The rel does not explain the deal to a reader who never views source. Use both. A footer line that says “we sometimes use affiliate links” under a 3,000-word post is easy to miss. The sentence next to the kettle is not.
Do not clean the id off the URL
The URL cleaner strips utm_, gclid, fbclid, and similar tracking. That is what you want on a citation. It is not what you want on an affiliate URL if the only thing making it an affiliate URL is a parameter. ref in the example above is not in the cleaner’s default strip list, so this particular link would survive, but a program that uses utm_campaign as its id would lose it. Look at one URL after you clean a column. If the id is gone, undo it and clean by hand, or skip the cleaner for that column.
Keep the label honest. “Best kettle under $40” is a bad anchor if the page is a search results URL and you did not check the price. “The kettle we tested” matches a review. The ranking of your review does not improve because the anchor contains “best kettle”. The generator will print whatever phrase you paste. Read it as a reader who has not seen the product.
A batch of ten products
Paste ten tracking URLs and ten product names. Tick sponsored once. All ten tags get the same rel. That is what you want when the whole list is paid. It is what you do not want when the list also contains the manufacturer’s manual and an independent test lab. Those are editorial. Run them in a second pass with the sponsored box clear, then put the two lists in the layout: “Sources” and “Where to buy”, or whatever headings you actually use.
Markdown will not carry rel="sponsored". If the review lives in a Markdown repo, generate HTML and paste the tags into the file, or add the attribute after the renderer. Details are in HTML or Markdown. The three-way split between sponsored, ugc, and nofollow is in that guide.
None of this creates the affiliate relationship. The program does. The generator only keeps the tracking URL, the product name, and the sponsored mark on the same line so you are not assembling them in a text editor at midnight.