The plugin
Doozly Affiliate Box for Amazon
Amazon affiliate boxes that keep themselves current — and tell you which one earns its place. Build a product box once and reuse it anywhere: prices refresh overnight, readers are routed to their own Amazon store, and Reports says which box was actually clicked. Insert it with a block, a widget or a shortcode.
Product boxes
A price written into a post is a price nobody ever revisits.
Type a product into an article and it is right for about a week. The price moves, the discount ends, the ASIN is retired — and nothing on your site says so. Multiply that by two hundred posts and you have a catalogue you cannot maintain by hand.
So the product lives in one place instead. You build a box once, and posts point at it. The same box can appear in twenty articles and still be changed in one.
Reused by a key, not a row number
The Shortcode column hands you the finished line. The key belongs to the box and never changes — not when you reorder the list, not when you move the site — so a post always shows the box you meant.
Amazon fills it in
Search Amazon or paste an ASIN and the title, image, price, savings and star rating arrive with it. That part is in the free plugin.
Kept honest overnight
Premium re-reads the prices while you sleep, so an article written in March is not still quoting March’s price in November.
It knows where it is used
Each box names the posts that show it, whether they use the block, a pasted shortcode or a rotation. A box that appears in no post at all is named on the Health tab rather than left to sit there.
Placement
Put it on the page in one choice.
Add the Affiliate Box block, pick from a list of everything you have saved, and the real box appears while you choose — drawn by the plugin itself, not an imitation of it in the editor.
One block for all four kinds
Product boxes, comparison tables, bestseller lists and reviews stand in one list. Four separate blocks would have put back the question — which one do I add? — that the merged tab was built to remove.
Width and image size sit beside the block
Because they belong to the place and not to the box: the same box goes wide in an article and narrow in a sidebar, and the settings page cannot know which. Colours stay on the General tab on purpose — one box should not be two colours in two posts.
A widget, for classic sidebars
On a modern theme the block works in widget areas as well; the widget is for sites running Classic Widgets, where blocks are not offered. A widget with nothing chosen draws nothing at all — not even its heading.
Nothing already in a post changes
The block runs the same shortcode, so a block and a pasted shortcode produce exactly the same box. There is nothing to migrate and no old post to go back and edit.
Layouts
Five layouts, each named with the size it takes.
So you can pick by the space you have. These are not pictures of the layouts:
it is one saved box on this site, rendered five times on this page just now,
with nothing changed but the word after layout=.
In post 640 px
Image beside the text. The one for the middle of an article.
EUHOMY Nugget Ice Maker Countertop, 44Lbs/24H Sonic Ice Maker Machine, Self-Cleaning Pellet Ice Makers with Ice Scoop&Basket, Countertop Pebble Ice Maker for Home/Kitchen/Office
As an Amazon Associate we earn from qualifying purchases.
Sidebar 400 px
Stacked and centred, for a narrow column. Fills the column up to 400 px.
Compact 640 × 78 px
One line: thumbnail, name, price, button. For naming a product without breaking the paragraph. An article that mentions eight products cannot carry eight cards.
EUHOMY Nugget Ice Maker Countertop, 44Lbs/24H Sonic Ice Maker Machine, Self-Cleaning Pellet Ice Makers with Ice Scoop&Basket, Countertop Pebble Ice Maker for Home/Kitchen/Office
As an Amazon Associate we earn from qualifying purchases.
Hero 960 px
Wide, with a bigger picture and a line above the name — for the pick at the top of a review.
EUHOMY Nugget Ice Maker Countertop, 44Lbs/24H Sonic Ice Maker Machine, Self-Cleaning Pellet Ice Makers with Ice Scoop&Basket, Countertop Pebble Ice Maker for Home/Kitchen/Office
As an Amazon Associate we earn from qualifying purchases.
Button only auto × 38 px
Just the call to action, for after a paragraph that has already named the product. No card, no picture, no price — and, once the disclosure is set to once per page, no grey line under it either. That setting is the next section, and the line below is what it is for.
Hero also carries a line above the name — Our pick, Best value, in small capitals. It is a field on the box and ours is empty, so nothing is drawn: leaving it blank is how you switch it off.
A mirror image, per box
A tick box moves the picture to the right. Three identical arrangements one after another read as a catalogue; alternating sides read as an article somebody wrote. It belongs to the box, which is what makes the alternation hold wherever the box appears.
The sizes are measured, not promised
Compact is one line at any picture shape — a portrait product photo used to make it three. The names, the sizes and the stylesheet come from one place in the plugin, so a label cannot claim what the CSS does not do.
Set once, overridden where needed
A default layout for the whole site under General, a different one on a box that wants it, and a third beside the block for one particular placement. Each is only read when the one before it says nothing.
The disclosure
Required by Amazon. Placed where you want it.
Amazon’s Operating Agreement requires an affiliate disclosure, and advertising regulators in most countries require the same. The plugin draws it, so it travels with the link instead of depending on a line in your footer that a reader scrolling to one paragraph never sees.
Count the grey lines in the sheet above: five boxes, five copies of the same sentence. On a real article that is the problem, and it is why there is more than one answer.
In every box
The default, and the safe one. Every box carries the line, wherever it ends up and however it got there.
Once per page
Drawn with the first box and left off the rest, where it still sits above every link it covers. A compulsory grey sentence under a one-line Compact strip is longer than the strip; five product mentions in an article meant five copies of it. This is the setting that makes Button only a button.
Nowhere — I place it myself
For sites whose theme or another plugin already states it. Leaving it out is a decision the plugin will let you make and will not make for you.
A rotation keeps it through a swap
With once per page, only the first output would normally carry the line — and a rotation draws all of its boxes, showing one and swapping it in the reader’s browser. Each of them carries it, because exactly one is ever visible.
The text itself is yours to edit, and every outbound link carries
rel="nofollow noopener sponsored" whichever answer you pick.
Associates tags
Amazon runs a separate programme in every country.
A German purchase credited to a US tracking ID normally earns nothing — and you cannot see it happening, because the link looks perfectly ordinary. Doozly stores one tag per marketplace and appends the right one to every link it writes.
One field per store
Every active Amazon Associates marketplace, each with its own tracking ID.
A fallback store you nominate
Any marketplace you have not enrolled in borrows the ID of one you pick, so a click never goes out untracked. The United States unless you change it — and you can, which matters if you sell on amazon.in and hold no US account at all.
It warns you about mismatches
A -20 United States ID sitting in the German field gets flagged on save. The value is still stored — it is a warning, not a veto.
Outbound links are marked properly
Every link carries rel="nofollow noopener sponsored", and the FTC disclosure is on by default.
Premium · Geotargeting
The country comes from your own server first.
Every reader is sent to the Amazon store closest to them, under the Tracking ID that earns there. The interesting part is who gets asked where the reader is — because the obvious answer, a free lookup service in another country, hands out an IP address before anybody agreed to it. Here is the whole sequence, in order:
Your server renders its default store first
Crawlers and readers without JavaScript still get a working, tagged affiliate link. Nothing below can leave them worse off.
A ~4 KB script checks the browser’s own memory
An answer from the last 24 hours ends the lookup here, with no network call at all.
Otherwise it asks this site
Cloudflare adds a country header to every request it forwards, on every plan including the free one; CloudFront, Vercel, Fastly and several managed hosts do the same. Your server reads a value that already arrived — it looks nothing up and calls nobody.
A free external lookup, only if you leave it on
BigDataCloud, with ipwho.is as failover, for sites behind no CDN. It is a switch you can turn off, and a consent banner can hold it back until the reader says yes.
The country maps to a marketplace, and the links are rewritten
Austria → amazon.de. Thailand → amazon.sg. Bangladesh → amazon.in. Target store, matching Associates tag, result cached for 24 hours.
Where step 3 answers, nothing leaves your site at all — you received that IP address the moment the reader opened the article. If every step fails, the box simply keeps your default marketplace; nothing breaks.
“Why not just use Amazon OneLink?”
A fair question — OneLink is free and official. It also covers fourteen marketplaces to our twenty-two, ignores product boxes entirely, and does nothing for readers in India, Brazil or Mexico. We wrote the comparison out in full, including when OneLink is the better choice.
It refuses to be clever at your expense
A store you hold no Tracking ID for is never a destination, because Amazon credits a sale to the ID of the store the purchase happens in. Routing a reader there would look like it worked and earn nothing.
An ASIN belongs to one store
The same product carries a different ASIN on amazon.de than on amazon.com, and one from the wrong store either fails or — worse, because it looks fine — opens something else entirely. A link is only rewritten where something proves the ASIN is valid there.
Three answers when it cannot prove it
Send them to a search on their own store under your tag for that country, leave the link where it is, or hide the box for that reader. You pick; the plugin does not guess.
The price travels or it goes
Point a box at another store and the price and star rating are removed unless you filled in a per-store one. Both belong to the store they came from, and Amazon asks that a shown price be the one the linked store currently charges.
Every reader outside your one store clicks a link that earns you nothing — and it is rarely the cheap end of your traffic that sits abroad. Routing them, each under the tag that pays in their country, is Premium.
Get Premium — from $19.99 a yearNot sure how much of your traffic that is? The audience check works it out from your own analytics, in the browser, without uploading anything.
Premium · Reports
The numbers Amazon does not give you.
Amazon counts clicks and earnings per Tracking ID — never per box. It sees the tag, not the placement, so it cannot tell you which box in which post produced the click. Two hundred posts share one number, and you are left guessing which of them earns it.
Per box, by day, by country
How often each box was seen and how often it was clicked, with the rate beside it. A box in a sidebar and the same box in an article are counted apart, because they are not the same placement.
No cookie, no visitor ID
Only sums are stored, in a table of the plugin’s own: no address, no identifier, no session, and no time more precise than the day. There is nothing in it that leads back to a person, which is also why it needs no consent banner.
One number is an instruction
How many readers reached a store you hold no Tracking ID for. Amazon credits a sale to the ID of the store it happens in, so those views are worth nothing — and the panel says which country they came from, which is the whole fix.
It leaves with the plugin
The table is the plugin’s own and is removed when you uninstall it. The counting is a tick box, off until you turn it on, and the figures download as CSV whenever you want them elsewhere.
Reporting is Premium. Without it, Amazon tells you what was bought and nothing about which box did the work — and the readers you hold no tag for stay invisible, because nobody counts a sale that never happened.
Get Premium — from $19.99 a yearPremium · Rotation
A different box at the same spot — and an A/B test with it.
A box in a sidebar stays there for months, and a regular reader stops noticing it
after the third visit. Pick the saved boxes that should take turns, choose every
hour, day or week, and place the rotation with the block, the widget or
[affiliate_box_rotate key="…"].
It survives a page cache
Which is where this kind of feature usually breaks without saying so. The box on show is chosen from the clock rather than at random, so a freshly built page is already right; the others ride along inside it without loading a single picture, and a page served from an older cache puts itself right in the reader’s browser.
Everyone sees the same box on the same day
Which is also what makes a report about it mean anything. Random per visitor would give you a number you could not act on and a page that changed under anyone who reloaded it.
It doubles as an A/B test
Reports already counts each box on its own, so two boxes for the same product — a different photo, a different button, a different layout — tell you which one earns its place.
Product boxes, ten at most
Not tables, lists or reviews: those differ so much in height that the page would jump on every change. Delete a box that sits in a rotation and it drops out; the rest carry on, and a rotation down to one box says so on its own tab.
Rotation is Premium, and it is the one thing here that keeps working on an article you will never open again.
Get Premium — from $19.99 a yearReference
Seven ways to place a box. Every attribute of the first one.
All attributes are optional. Anything you leave out falls back to the value set under Settings → Affiliate Box, so most boxes need only an ASIN, a title and an image. The Affiliate Box block and the widget write these same lines for you; the table is here for when you would rather type one.
| Shortcode | What it renders | Plan |
|---|---|---|
[affiliate_box] | One product box, with its data written into the shortcode. Documented in full below. | Free |
[affiliate_box box="…"] | A saved box, kept in one place and reused by its own key. Change the price once and every post follows. The older [affiliate_box_pro id="N"] still renders the same box. | Free |
[affiliate_box_compare] | Four products side by side, with shared feature rows to compare them across. | Premium |
[affiliate_box_bestsellers] | A list built live from a keyword or an Amazon category. | Premium |
[affiliate_box_search] | A grid of live Amazon search results. | Premium |
[affiliate_box_review] | Your own photographs, your own score, pros and cons and a verdict — a review of a product you actually tested. | Premium |
[affiliate_box_rotate key="…"] | Saved product boxes taking turns at one spot, changing every hour, day or week. Up to ten, chosen from the clock so a page cache cannot freeze it. | Premium |
| Attribute | Values | What it does | Plan |
|---|---|---|---|
| The product | |||
box | Key of a saved box | Shows a box built under Settings → Affiliate Box → Product Boxes. Every product detail then comes from the saved box; only layout, image_size, bg_color and button_text are still read from the shortcode. | Free |
asin | Amazon ASIN | Builds the URL as https://<marketplace>/dp/<asin>?tag=<yourtag>. | Free |
url | Full Amazon URL | Use instead of asin for search pages or non-standard links. Your tag is appended unless the URL already carries one. | Free |
title | Plain text | Shown in the box and used as the image alt text. | Free |
image | Image URL | Your own hosted copy, or a permitted Amazon image URL. | Free |
price | Plain text | Displayed exactly as typed. With an Amazon credential connected the free plugin fills it from the ASIN; Premium keeps saved boxes current overnight. | Free |
brand | Plain text | Small brand line above the title. | Free |
eyebrow | Plain text | The line above the name, in small capitals — Our pick, Best value. Shown in every layout that has room for it; compact leaves it out, because one line stays one line. Left empty, nothing is drawn. | Free |
| Social proof and savings | |||
rating | 0–5 | Star rating. Left empty, nothing is drawn at all — no row of hollow stars. | Free |
rating_count | Number | How many reviews the rating averages. 4.6 from nine buyers and 4.6 from eleven thousand are not the same recommendation. | Free |
original_price | Plain text | Crossed-out former price. Only shown together with savings_pct. | Free |
savings_pct | Number | Discount for the savings badge. Only shown together with original_price. | Free |
| Appearance | |||
layout | post · sidebar · compact · hero · button | 640 px horizontal, 400 px stacked, a 640 × 78 px one-liner, a 960 px hero, or the bare call to action. All five, rendered live above. | Free |
image_right | 1 · 0 | Mirrors the box so the picture sits on the right. For several boxes one after another: alternating sides read as an article rather than a catalogue. | Free |
image_size | small · medium · large | Caps image width at 90 / 140 / 200 px on desktop, scaling down on mobile. In compact it is what sets the height of the line. | Free |
bg_color | Hex colour | Box background, per shortcode only. | Free |
button_text | Plain text | Label on the call-to-action button. Defaults to “Buy on Amazon”. | Free |
| Routing | |||
marketplace | Marketplace key | Which store this box points at. With geotargeting on, it is the first-paint default before the visitor is resolved. | Free |
geotarget | 1 · 0 | Forces geotargeting on or off for a single box, overriding the global switch. | Premium |
search | Plain text | What to look for when the visitor’s store has no ASIN of its own — they get a search on their own store rather than a product ID it does not hold. Worth filling in per store where it matters: icemaker finds rather less on amazon.de than Eismaschine does. | Premium |
asin_global | 1 · 0 | Says this ASIN means the same product in every store. True for books, where the ASIN is the ISBN-10, and false for almost everything else — so it is opt-in and never guessed from the ASIN itself. | Premium |
Worked examples
[affiliate_box asin=“B08N5WRWNW” title=“Northbeam One” image=“https://example.com/speaker.jpg” price=“$49.99”]
// Sidebar: vertical, centred, fills the column up to 400px
[affiliate_box asin=“B08N5WRWNW” title=“Northbeam One” layout=“sidebar”]
// German store, large image
[affiliate_box asin=“B08N5WRWNW” title=“Northbeam One” price=“49,99 €” marketplace=“de” image_size=“large”]
// A search result page instead of a single product
[affiliate_box url=“https://www.amazon.com/s?k=smart+speaker” title=“Smart speakers” button_text=“Browse”]
// A one-line mention, mid-paragraph
[affiliate_box box=“a7f3k2c9” layout=“compact”]
// The pick at the top of a review, picture on the right.
// eyebrow and image_right belong to the box, so a saved one
// carries them itself — here the product is written in.
[affiliate_box asin=“B08N5WRWNW” title=“Northbeam One” price=“$49.99” layout=“hero” eyebrow=“Our pick” image_right=“1”]
Free vs Premium
The free plugin is a whole product, not a teaser.
Product boxes, saved boxes, the block, all five layouts, all twenty-two marketplaces, per-country tags and the Amazon Creators API in full are free and always will be. Premium adds five more things you can build, sends each visitor to the store nearest them, and tells you which box was actually clicked — which Amazon cannot, because it sees the tag and not the placement.
| Feature | Freeno account needed | Premiumvia Freemius |
|---|---|---|
| Core | ||
[affiliate_box] shortcodeWorks in posts, pages and widgets | Yes | Yes |
| Affiliate Box blockPick from everything you have saved; the real box draws while you choose | Yes | Yes |
| WidgetFor sites running Classic Widgets, where blocks are not offered | Yes | Yes |
| 22 marketplacesEvery active Amazon Associates store | Yes | Yes |
| Associates tag per marketplaceBlanks borrow the ID of a fallback store you nominate | Yes | Yes |
| Five layoutsIn post, sidebar, compact one-liner, hero, button only — three image sizes, colour pickers, custom button text | Yes | Yes |
| Picture on the rightPer box, so alternating sides hold wherever it appears | Yes | Yes |
| Affiliate disclosureIn every box, once per page, or nowhere — your choice, and editable | Yes | Yes |
| External requestsWhat the plugin talks to | None until you connect a credential | Amazon, plus a geo lookup only where your CDN cannot state the country |
| Per-marketplace ASINs and imagesThe same product has a different ASIN per store | Yes | Yes |
| Ratings and savings badgeStar rating, review count, crossed-out former price | Yes | Yes |
| What you can build | ||
Product boxes[affiliate_box] · one product, written into the post | Yes | Yes |
Saved boxes[affiliate_box box="…"] · kept in one place, reused by its key | Yes | Yes |
Comparison tables[affiliate_box_compare] · four products side by side with feature rows | — | Yes |
Bestseller lists[affiliate_box_bestsellers] · built live from a keyword or an Amazon category | — | Yes |
Search grids[affiliate_box_search] · a grid of live search results | — | Yes |
Review boxes[affiliate_box_review] · your own photos, your score, pros and cons, a verdict | — | Yes |
Rotation[affiliate_box_rotate] · up to ten saved boxes taking turns at one spot, hourly, daily or weekly | — | Yes |
| Automation | ||
| Amazon Creators APITitles, images and prices pulled from an ASIN or a search | Yes | Yes |
| IP-based geotargetingRewrites links to the visitor’s nearest store, under the tag that earns there | — | Yes |
| Review markupA review box also ships its own schema.org data — a Product with your Review in it, no invented rating, no offer | — | Yes |
| Nightly price refreshSaved boxes and bestseller lists stay current on their own | — | Yes |
| Automatic updatesFree from the WordPress.org directory, Premium through your licence | Yes | Yes |
| Knowing what happened | ||
| Health checkFinds the misconfigurations that cost money without breaking anything | Yes | Yes |
| ReportsWhich box was seen, which was clicked, and how many readers you have no tag for | — | Yes |
Settings are shared between the two builds, so upgrading keeps every tag and every box you already configured.
Pricing
Free stays free. Premium buys automation.
The free plugin is a complete product with no licence key, no expiry and no upsell nagging in your dashboard. Premium is for sites where doing it by hand stops scaling.
Free
$0 forever
- Product boxes and saved boxes, placed with a block, a widget or a shortcode
- All five layouts, and the disclosure in every box or once per page
- All 22 marketplaces, one Associates tag each
- The Amazon Creators API, in full
- The Health check that finds the quiet mistakes
- No comparison tables, bestseller lists, search grids, review boxes or rotation
- No geotargeting, no reporting
Never phones home. Talks to Amazon only once you connect a credential.
Premium
$19.99 a year
What one licence covers
- 1 website $19.99
- 3 websites $39.99
- 10 websites $89.99
A website means one WordPress installation. Staging and development copies do not count.
- Everything in Free, plus:
- Five more builders — comparison tables, bestseller lists, search grids, review boxes and rotation
- Every visitor sent to their nearest Amazon store, under the tag that earns there
- Reports: which box was seen and clicked, by day and by country, cookie-free
- Nightly price refresh
14-day money-back guarantee on your first purchase, no reason needed. Renews yearly, cancel any time. Prices in US dollars; Freemius is the merchant of record and works out any VAT or sales tax from your billing country at checkout. Terms & refunds
Settings are shared between the two builds, so upgrading keeps every tag and every box you already configured.
Questions
The things people ask first.
Do I have to paste shortcodes?
No. Add the Affiliate Box block, choose from a list of everything you have saved, and the box appears while you choose — drawn by the plugin, not an imitation of it. One block covers product boxes, comparison tables, bestseller lists and reviews; the kind is written beside each name.
The shortcode is still there and still the same. A block runs it, so a block and a pasted line produce exactly the same box — which also means nothing already in a post needs editing.
Do I need an Amazon API key?
No. Out of the box the plugin builds outbound links from the ASIN or URL you give it, appends the correct Associates tag, and fetches nothing.
Connect one and it does more, and this is part of the free plugin: the Amazon Creators API fills a box from an ASIN or a keyword search — title, image, price, star rating and review count. It is the successor to the Product Advertising API, which Amazon has retired, and you create the credential yourself under Tools → Creators API in Associates Central. Amazon issues one only to accounts with recent qualifying sales.
What happens if a country has no tag configured?
It borrows the Tracking ID of your fallback store, so a link is never tagless. You nominate which store that is under General → Which Amazon store; it is the United States until you change it.
That it is a choice and not a fixed rule matters more than it sounds. Somebody selling on amazon.in and nowhere else holds no US Tracking ID at all — and if the fallback were wired to the United States, adding a US account later would push their Indian tag out of the slot every other store had been quietly borrowing. Growing a business should not cost you the rest of your markets.
It is a stopgap either way, not a substitute for enrolling: a link to amazon.de under a US ID earns nothing.
Which geolocation services does Premium use?
Ideally none. The reader’s browser asks your site first, and your site reads the country from a header its CDN already attached — Cloudflare adds one on every plan including the free one, and CloudFront, Vercel, Fastly and several managed hosts do the same. Nothing is looked up and nobody is called: you received that IP address the moment the reader opened the article.
Only where no such header arrives does it fall to BigDataCloud, with ipwho.is as failover. Both are free and need no API key, but the reader’s IP then goes to a company outside the EU — so it is a switch you can turn off, and a consent banner can hold it back until the reader agrees. Either answer is cached in their own browser for 24 hours.
What if both lookup services are down?
The box keeps the default marketplace rendered by your server. The link still works and still carries your tag — visitors simply are not routed.
Does the free version phone home?
No. It connects to no external service, sends nothing to us or to any third party, and ships no tracking or analytics code.
Can I use it in a sidebar widget?
Yes, three ways. On a block theme the Affiliate Box block works in widget areas directly. On a site running Classic Widgets there is a widget of the same name. And a Shortcode block with layout="sidebar" works wherever either does — the box switches to a vertical, centred layout that fills the column up to 400 px.
Is Premium a subscription? What happens if I stop paying?
A Premium licence runs for twelve months and renews yearly until you cancel. You can cancel at any time, effective at the end of the term you already paid for.
If a licence lapses, the plugin keeps working. Your boxes, lists and tables stay in place and keep rendering. What stops is updates and support — which matters, because the Amazon API and the geolocation services do change over time.
How many websites does one licence cover?
One, three or ten, depending on the tier: $19.99, $39.99 or $89.99 a year. A website means one WordPress installation. Staging and development copies of a licensed site are free and do not count against your tier.
Can I get a refund?
Yes. We refund a first Premium purchase within fourteen days, on request and without asking why. Write to support@doozly.link from the address you bought with; Freemius returns the money to your original payment method.
Which WordPress and PHP versions are supported?
WordPress 6.1 or newer, PHP 7.2 or newer. Tested against WordPress 7.1 on PHP 8.2.
Start with the free plugin.
Install it, add your Associates tags, paste a shortcode. If you later want visitors routed to their own store automatically, Premium is a licence away — and every setting you made carries over.