WordPress plugin · Amazon Associates

Every reader lands in their own Amazon store.

Doozly turns an ASIN into a clean, responsive product box — then rewrites every outbound link to the Amazon marketplace closest to each visitor, with the correct Associates tag attached. Twenty-two stores, one shortcode.

The free version needs no licence and no account. Connect an Amazon credential or do not — it works either way.

Live routing — pick a visitor country

Visitor detected in

Routing table lookup

AT · Austria → amazon.de

Outbound link written into the page

What the visitor sees

Northbeam Northbeam One compact smart speaker ★★★★☆ 4.6 · 11,482 ratings € 52,99 As an Amazon Associate I earn from qualifying purchases.
Buy on amazon.de

Premium The routing above is Premium. The free plugin builds the same box and carries your tag — into the one store you pick, for every reader.

The shortcode

Paste one line. Get a product box.

There is an Affiliate Box block and a widget as well — this is the way that works everywhere else. No block editor required, no page-builder lock-in: it runs in posts, pages, widget areas and anywhere else a shortcode runs, and a block produces exactly the same box. Every attribute is optional and falls back to what you set once under Settings.

[affiliate_box box="ttkgghst"]   // the box on the right

// built once under Settings, reused by its own key in as many
// posts as you like. Change it there and every post changes.

// or write the product into the post itself, saving nothing:
[affiliate_box
  asin="B0GVYRDGS4"
  title="EUHOMY Nugget Ice Maker Countertop"
  image="https://example.com/icemaker.jpg"
  price="$199.93" original_price="$249.99" savings_pct="20"
  rating="4.6" image_size="large"
  bg_color="#f8fafc"
  layout="post"   // sidebar, compact, hero, button
]
  • Five layouts, three image sizes

    In post, sidebar, a one-line compact strip, a wide hero and a bare button — each named with the size it takes. All five, rendered live.

  • Ratings only when you have them

    Leave rating empty and nothing is drawn — no row of hollow stars pretending to be data.

  • Your colours, measured

    Pick the title, price and button colours, or take one of seven ready-made schemes. The editor measures each pair against its background and names any that fall below 4.5:1. It warns; it never refuses.

  • Loads nothing it doesn’t need

    The stylesheet is enqueued only on pages that actually contain a box.

Rendered on this page, just now

That is the first line above, running live — a saved box with its own button colour, its own background and a large image, carrying our Associates tag. The price is what Amazon charged when this page was last built.

Premium · What you can build

Four more shortcodes, four kinds of page.

Every specimen below is rendered by the plugin on this page, right now, from the shortcode printed above it. Nothing here is a screenshot.

[affiliate_box_compare id=”1″]

Up to four products side by side, with your own feature rows underneath and one column marked as the pick. Built once under Settings, reused by ID.

[affiliate_box_review id=”1″]

The only thing here that describes what you found rather than what Amazon sells: your photographs, your score, what was good and what was not. It carries its own schema.org markup as well — a Product with your Review inside, deliberately without an offer or an aggregate rating, because you are not the shop and one opinion is not an average. Whether a search engine shows anything for it is its own decision, and this page will not pretend otherwise.

[affiliate_box_bestsellers id=”1″]

Fetched live from Amazon for a keyword or a category, so prices and pictures stay current on their own. It is Amazon’s own relevance order, not its sales ranking — the plugin says so above the list rather than pretending otherwise.

[affiliate_box_search keywords=”countertop ice maker” count=”4″ columns=”4″]

Live search results, saved nowhere — everything is in the shortcode itself. Change the keyword and the grid changes with it.

Real products, fetched through the Amazon Creators API with our own Associates tag. The prices are whatever Amazon charged when this page was last built.

A fifth Premium shortcode is not a kind of page, so it is not on show here: [affiliate_box_rotate] puts saved product boxes in turn at one spot, changing every hour, day or week. What rotation does.

All five builders are Premium. What you just switched between was not a gallery of screenshots — it is the plugin, rendering on this page, from the shortcodes printed above each one.

Get Premium — from $19.99 a year

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.

The Marketplaces settings tab. An amber panel reads "1 store you link to has no Tracking ID" and explains that its links borrow the tag of India, which builds a working link but earns nothing, because Amazon credits a sale to the ID of the store the purchase happens in. It notes that 1 of 22 stores is filled in and that leaving the rest blank is normal. Below, North America is listed store by store: the United States row is highlighted amber, carries a blue badge reading "5 items link here" and warns that those links go out under the fallback tag; Canada, Mexico and Brazil sit blank, each showing the grey placeholder for the suffix Amazon uses there.
Settings → Affiliate Box → Marketplaces, on a demonstration site. Twenty blank fields is the normal state of this screen, not an unfinished job — the amber row is the one that is costing something.

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:

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

Doozly compared with OneLink

The Geotargeting settings tab. An amber panel headed "Geotargeting is not doing anything yet" lists three conditions with a cross or a tick: the switch is on — not ticked; one store can receive readers — not met, because only a store with a Tracking ID of its own can be a destination and with fewer than two there is nothing to route between; and the country comes from an external service — ticked, with the note that this request carried no country, so readers ask a free service outside your site, which is a data transfer the privacy policy has to name. Below, step one, "Enable geotargeting", holds an unticked box reading "Detect the visitor's country and route them to the closest Amazon store", and states that the country is asked of this site first and of an external service only if your server cannot say and you allow it, and that either answer is kept in the reader's own browser for 24 hours.
Geotargeting on a demonstration site, switched off. The panel at the top says what is still missing before it would do anything — including that this particular server cannot state the country itself.

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 year

Not sure how much of your traffic that is? The audience check works it out from your own analytics, in the browser, without uploading anything.

Free · Health

The mistakes that do not announce themselves.

A missing Tracking ID breaks no page. It costs the commission, quietly, on every click — and nothing anywhere tells you. Thirteen checks look for exactly that kind of fault: the ones with no error message, no broken layout and no symptom except money that never arrives.

The plugin's Health tab. A red panel headed "7 things need attention, unchanged since 2 weeks ago" lists them as links: only one store has a Tracking ID, four saved boxes point at a store with no Tracking ID, a comparison column that cannot geotarget, another pointing at a store with no ID, a credential secret of the wrong length, two errors on the last refresh, and a country route that does not answer. A note reads "13 checks ran just now". Below, a Geotargeting section grades two findings: "Needs attention — only one store has a Tracking ID", which adds that this cost 222 of 5,829 box views in the last 30 days, or 3.8 per cent; and "Worth knowing — geotargeting is switched off".
Health on a demonstration site, with enough left broken to show what it says when things are wrong.

It grades, rather than alarms

Three levels: needs attention for something costing money now, worth knowing for a setting whose consequence is easy to miss, and a quiet passed that stays folded away.

It prices the fault

Where Reports has the figures, a finding says what it cost: “in the last 30 days this cost you 222 of 5,829 box views — 3.8 %”. That is the difference between a warning you file away and one you act on this afternoon.

It says how long it has been wrong

“Unchanged since 2 weeks ago” is the difference between a fault you introduced this morning and one that has been costing you since spring.

It changes nothing

The screen only reads. It repairs nothing behind your back, and it collects nothing about your readers — it is looking at your settings, not at them.

Health is in the free plugin. It is not a Premium feature and it never asks you to upgrade to see a result.

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
Download free

Never phones home. Talks to Amazon only once you connect a credential.

Settings are shared between the two builds, so upgrading keeps every tag and every box you already configured.

Every line compared, free against Premium → Twenty-nine rows, including what the plugin talks to and what it does not.

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.

The Doozly fox holding a product card and a glowing affiliate link.