Affiliate Atlas – Amazon & Awin Affiliate Links
Search Amazon in 22 countries and build Awin tracking links from inside the WordPress editor. Select some words, choose Affiliate link, pick a product or advertiser, and the tagged link goes straight into your post. Your API keys stay on your server; the editor only talks to your own site.
The free version covers Amazon search in one store, Awin links to advertisers’ homepages, the Classic Editor and block editor buttons, the text-link shortcodes, rel="sponsored" and an affiliate disclosure for every affiliate link in your content, and scheduled edits and depublication for time-limited offers. Pro adds all 22 Amazon stores, Amazon product boxes with live prices, and Awin deep links, click references and short links. Compare free and Pro.
1. Install and activate
- In WordPress, go to Plugins → Add New Plugin → Upload Plugin.
- Choose the zip from your purchase email (Pro) or download (free), then Install Now and Activate.
- Open Settings → Affiliate Atlas. With Pro, Freemius asks for your licence key the first time; see Already have a licence key? With the free version, you’re asked whether to share basic usage data. Allow & Continue and Skip both work.
Only administrators (users who can manage options) can change the settings. Anyone who can edit posts can insert affiliate links.
If you’re moving from the free version to Pro, deactivate and delete the free version after installing Pro. Your settings and tracking IDs are kept.
2. Connect Amazon
Amazon retired Product Advertising API 5.0 (PA-API) in 2026. Affiliate Atlas uses its replacement, the Creators API. Old PA-API access keys don’t work; you need a new Creators API credential.
Create your credential
- Sign in to Amazon Associates Central for your main store (for UK sites, affiliate-program.amazon.co.uk).
- Go to Tools → Creators API and click Create App. Give it a name, for example your site’s name, and click Create.
- Amazon shows a Credential ID, a Secret and a Version. Copy the Secret now; Amazon only shows it once.
Enter it in WordPress
- Open Settings → Affiliate Atlas.
- Paste the Credential ID and Credential Secret.
- Choose the Credential version that matches the one Amazon showed you (see the table below).
- Choose your Default marketplace, the Amazon store you link to most.
- Enter your tracking ID for that store, for example
mysite-21. It’s shown at the top right of Associates Central. - Click Save Changes.
| Version | Region | Issued by Associates Central in |
|---|---|---|
3.1 | North America | US, Canada, Mexico, Brazil |
3.2 | Europe | UK, Germany, France, Italy, Spain, Netherlands, Belgium, Ireland, Sweden, Poland, Turkey, UAE, Saudi Arabia, Egypt, India |
3.3 | Far East | Japan, Singapore, Australia |
Tracking IDs in other countries
Amazon runs a separate Associates programme in each country, and a tracking ID only earns in the country it was created in. You can’t use one ID for every store: a UK ID (ending -21) on amazon.de won’t earn, and Amazon rejects searches in a country you haven’t joined.
- In Associates Central, go to Account Settings → Link Store IDs and join the programme for each country you want to link to. Amazon’s guide: earning in other countries.
- Copy each country’s tracking ID. They usually share your name with a different ending, for example
mysite-21for the UK andmysite-20for the US. - Enter each one in its row under Tracking IDs per marketplace Pro. Countries left blank are hidden in the editor.
Your one Creators API credential then works in every country you’ve joined. Amazon’s OneLink (which redirects overseas visitors to their local store) is a separate Amazon feature; it doesn’t replace these IDs for direct links.
Amazon only gives Creators API access to Associates accounts with at least 10 qualifying sales in the last 30 days, and a new credential can take up to 48 hours to start working. Until then, searches show an AssociateNotEligible error. That’s Amazon, not the plugin.
3. Connect Awin
- Sign in to Awin and go to ui.awin.com/awin-api. Click Show my API token and copy it. Awin may ask for your password again.
- Find your Publisher ID: the number shown next to your account name in Awin (it’s also in Awin addresses, for example
/publisher/123456/). - In Settings → Affiliate Atlas, enter both and click Save Changes.
The advertiser list in the editor shows the programmes you’ve joined. It refreshes on its own every 6 hours; after joining a new programme, click Refresh advertiser list in the Awin tab.
4. Insert links in the Classic Editor
An Affiliate link button sits next to Add Media above the editor. It works in both the Visual and Text tabs.
- Select the words you want to link, for example these headphones. Or select nothing to insert the product or advertiser name as the link text.
- Click Affiliate link. The window opens with your selected words already in the search box.
- Amazon tab: choose a store (Pro), search or paste an Amazon link or ASIN, then click Insert link on a result.
- Awin tab: choose an advertiser, click Generate link, then Insert link.
With Pro, each Amazon result also has a Product box button, which inserts an [atlas_amazon_box] shortcode (see product boxes).
5. Insert links in the block editor
- In any paragraph, heading or list, select the words you want to link.
- In the block toolbar, open the ⌄ (More) menu and choose Affiliate link.
- Pick a product or advertiser as above and click Insert link.
To remove an affiliate link, click inside it and choose Remove affiliate link from the same menu. The words stay; only the link is removed.
Links inserted this way are ordinary links saved in your post, with rel="sponsored nofollow noopener" and your new-tab setting applied.
6. Elementor, widgets and page builders
Use a Shortcode widget or block and paste one of the shortcodes. To find a product’s ASIN, copy the 10 characters after /dp/ in its Amazon address, or look it up with the Affiliate link button on any post.
[atlas_amazon asin="B0CHX1W1XY"]these headphones[/atlas_amazon]
7. Schedule changes for time-limited offers
Deals end. A Black Friday post still showing last week’s prices loses readers’ trust, and Amazon and Awin don’t want expired offers promoted. You can prepare a post’s replacement in advance, or take the post down on a set date. This is included in the free version and works on posts and pages.
Schedule a future edit
- Open the post or page. In the Classic Editor the options are in the Publish box. In the block editor they’re at the top of the amber Replacement version panel under the content; if it’s hidden, open Meta Boxes at the bottom of the editor.
- Tick Schedule future edit and choose the date and time. Times use your site’s time zone (Settings → General).
- In the amber Replacement version panel, enter the new title, content and excerpt. Click Copy current post into replacement to start from the live version and change only what you need. A blank field keeps its current value.
- If Rank Math or Yoast SEO is active, you can also set a replacement SEO title and meta description.
- Click Update (or Publish) as usual.
At the chosen time, the replacement goes live and the amber panel empties. WordPress saves the old version in Revisions first, so you can restore it. Shortcodes such as [atlas_amazon] work in the replacement as normal.
Schedule depublication
Tick Schedule depublication, choose the date and time, then choose Move to draft or Make private. You can schedule both on one post: for example, swap in an evergreen version on 1 December and unpublish it in January.
See what’s scheduled
The Posts and Pages lists show Edit scheduled or Unpublish scheduled, with the date, next to each title. To cancel, untick the box and update the post.
Scheduled changes use WordPress’s built-in scheduler, which runs when someone visits your site, so on a quiet site a change can run a few minutes late. An hourly check catches anything missed. For exact timings, ask your host to run WP-Cron from a server cron job. While Affiliate Atlas is deactivated nothing runs; when you reactivate it, anything already due runs straight away.
8. Sponsored links and the affiliate disclosure
These work on every affiliate link in your posts and pages, not only links you insert with Affiliate Atlas: older links, links pasted in by hand, and links from other networks. They’re included in the free version and are applied as pages are shown, so your saved posts aren’t changed and turning a setting off undoes it straight away.
Which links count as affiliate links
- Amazon store links that carry a tracking ID (
tag=), in any of the 22 countries. Plain Amazon links without a tracking ID are left alone. amzn.toshort links, Awin links (awin1.com) and Awin short links (tidd.ly).- Any domains you add under Other affiliate domains in Settings → Affiliate Atlas, one per line, for example a course provider’s or VPN’s tracking domain. Subdomains are included.
rel=”sponsored”
Google asks for paid links to be marked rel="sponsored". With Mark as sponsored ticked (the default), Affiliate Atlas adds sponsored nofollow to every affiliate link, keeping any rel values the link already has.
The disclosure
UK advertising rules (ASA and CMA guidance) and Amazon’s Associates terms require you to tell readers about affiliate links. Tick Affiliate disclosure to show a short notice on every post and page that has at least one affiliate link:
- Wording: leave Disclosure text blank for the standard sentence, or write your own.
{site}is replaced with your site title. - Amazon: on pages that link to Amazon, the statement Amazon requires, “As an Amazon Associate we earn from qualifying purchases.”, is added (untick it if your text already says this).
- Position: before the content (recommended, so readers see it before the links) or after it. On a static front page it always goes after the content, so your opening section stays clean.
- Pages that already have their own disclosure, with text containing “Disclosure:”, “contains affiliate links” or “Amazon Associate”, are left alone, so you never get two.
The disclosure has the class afat-disclosure if you want to restyle it from your theme.
9. Pro: Amazon product boxes
A product box shows the product’s image, title, brand, up to three feature bullets, the current price (with the old price struck through when it’s on offer) and a View on Amazon button.
Add one
- Block editor: add the Amazon Product block (search the inserter for “amazon”), search for the product and click Use. In the block sidebar you can change the button text or hide the feature bullets.
- Classic Editor: click Product box on a search result.
- Anywhere else: use
[atlas_amazon_box asin="…"].
How prices stay current
The box is built when the page loads, from product data cached for between 1 and 24 hours (12 by default, set in Product data cache). Under every price is the “price as of” date and time that Amazon requires.
If Amazon can’t be reached, the box still shows the saved title and a working buy button, without a price.
If your Pro licence is removed, product boxes already in your posts turn into plain text links to the product, so visitors never see a broken box.
10. Pro: Awin deep links, click references and short links
- Destination URL: paste any page on the advertiser’s site (a product, a category, a sale page) to link straight to it. Leave it empty to link to their homepage.
- Click reference: a label that appears in your Awin reports, so you can see which post earned a sale. Set a default in settings;
{post_id}and{post_slug}are filled in for you. - Short link: asks Awin for a short link. Awin limits how many you can make each day; the settings page shows how many you have left.
Awin designed its Link Builder for creating links ahead of time, so Affiliate Atlas makes each link once, when you insert it, and remembers it. Some advertisers don’t allow deep links; if so, leave the destination empty.
11. Shortcode reference
| Shortcode | Attributes | Output |
|---|---|---|
[atlas_amazon]…[/atlas_amazon] | asin (required)market, for example uk or de Pro | A text link with your tracking ID. Uses the words between the tags, or the product title if left empty. |
[atlas_amazon_box] Pro | asin, market, button, features="no" | A product box. In the free version, a plain text link. |
[atlas_awin]…[/atlas_awin] | advertiser (required)url, clickref Pro | An Awin tracking link using the words between the tags. |
[atlas_amazon asin="B0CHX1W1XY" market="uk"]these headphones[/atlas_amazon] [atlas_amazon_box asin="B0CHX1W1XY" market="de" button="Bei Amazon ansehen"] [atlas_awin advertiser="1234" url="https://www.example-shop.co.uk/boots/" clickref="winter-guide"]see the boots[/atlas_awin]
The ASIN and advertiser number above are examples; use your own. If Awin’s API can’t be reached when an [atlas_awin] shortcode needs a new link, a standard awin1.com/cread.php link is used instead, so visitors never hit a broken link.
12. Settings reference
| Setting | What it does |
|---|---|
| Credential ID, Secret and version | Your Amazon Creators API sign-in. The secret is never shown again after you save it; leave the box blank to keep the saved one, or tick Remove to clear it. |
| Default marketplace | The Amazon store used when none is chosen. In the free version, the only store. |
| Tracking ID(s) | Your Associates tag for each store, from that country’s own programme. Stores without one are hidden in the editor. |
| Product data cache (hours) | How long product data and prices are kept before being fetched again, from 1 to 24. |
| Publisher ID and API token | Your Awin account details. The token is hidden after saving, like the Amazon secret. |
| Default click reference Pro | Added to new Awin links unless you change it in the editor. |
| Short links Pro | Turns short links on by default in the Awin tab. |
| rel attribute | For links you insert with Affiliate Atlas. Defaults to sponsored nofollow noopener, which is what Google asks for on paid links. |
| New tab | Opens affiliate links you insert in a new tab. |
| Mark as sponsored | Adds rel="sponsored nofollow" to every affiliate link in your content. On by default. |
| Other affiliate domains | Extra domains whose links count as affiliate links, one per line. |
| Affiliate disclosure, text and position | Shows a disclosure on pages with affiliate links. Off until you turn it on. See the disclosure. |
13. Amazon store codes
Use these in the market shortcode attribute.
| Code | Store | Code | Store |
|---|---|---|---|
uk | amazon.co.uk | se | amazon.se |
us | amazon.com | pl | amazon.pl |
de | amazon.de | tr | amazon.com.tr |
fr | amazon.fr | ae | amazon.ae |
it | amazon.it | sa | amazon.sa |
es | amazon.es | eg | amazon.eg |
nl | amazon.nl | in | amazon.in |
be | amazon.com.be | jp | amazon.co.jp |
ie | amazon.ie | sg | amazon.sg |
ca | amazon.ca | au | amazon.com.au |
mx | amazon.com.mx | br | amazon.com.br |
14. Caching and compliance
- Amazon prices are cached for no more than 24 hours, the most Amazon allows, and each price carries its “price as of” date and time.
- Search results in the editor are cached for 15 minutes, so repeat searches are instant and you stay under Amazon’s request limits.
- Awin links are remembered for 30 days.
- Every affiliate link gets
rel="sponsored"by default, including links Affiliate Atlas didn’t create. - Affiliate Atlas sets no cookies and loads nothing from Amazon or Awin in your visitors’ browsers, apart from product images in Pro product boxes.
You need an affiliate disclosure on your site, and Amazon requires the sentence “As an Amazon Associate I earn from qualifying purchases.” Turn on the affiliate disclosure to add both automatically, or write your own.
15. Free, Pro and your licence
| Feature | Free | Pro |
|---|---|---|
| Amazon search, link and ASIN lookup | ✓ | ✓ |
| Amazon stores | 1 | All 22 |
| Awin links to advertiser homepages | ✓ | ✓ |
| Awin deep links, click references and short links | — | ✓ |
| Classic Editor, block editor and text-link shortcodes | ✓ | ✓ |
| rel=”sponsored” and affiliate disclosure on all affiliate links | ✓ | ✓ |
| Scheduled edits and depublication | ✓ | ✓ |
| Amazon product boxes | — | ✓ |
| Priority email support | — | ✓ |
- Pro is a one-off payment: £189 for 2 sites or £899 for unlimited sites, with future updates included.
- Staging and local copies (such as
localhost,*.localorstaging.addresses) don’t count towards your site limit. - To move a licence, deactivate it on the old site from the plugin’s Account page (under Settings), then activate it on the new one.
- If a licence is removed, the plugin falls back to the free features. Product boxes become plain links, and your settings and tracking IDs are kept for when Pro is active again.
16. Troubleshooting
Product boxes show only a button
Update to version 1.0.1 or later. Version 1.0.0 couldn’t read Amazon’s product lookup replies, so boxes had no image, title or price. After updating, boxes fill in on the next page load; there’s nothing else to do.
Amazon: AssociateNotEligible
Your Associates account doesn’t have Creators API access yet. Amazon needs at least 10 qualifying sales in the last 30 days, and a new credential can take up to 48 hours. Text links from an ASIN with [atlas_amazon] still work in the meantime.
Amazon: Could not get an access token / Client authentication failed
Check the Credential ID, the Secret and especially the version: a credential created in Associates Central UK needs version 3.2, not 3.1. If you’ve lost the secret, create a new credential in Associates Central and enter it.
No tracking ID is set for Amazon …
Add a tracking ID for that store in Settings → Affiliate Atlas. It must come from that country’s Associates programme; see Tracking IDs in other countries.
Search works in one country but not another
Amazon only allows API searches in countries whose Associates programme you’ve joined. Join that country’s programme and enter its own tracking ID.
The free version works with your default marketplace only
Change the default marketplace in settings, or upgrade to Pro for all 22 stores.
Amazon rate limit reached
New Creators API accounts have low request limits. Wait a minute and try again. Limits rise as your account makes more sales.
Awin: Invalid access token / Unauthorized
The API token is wrong or has been revoked. Copy it again from ui.awin.com/awin-api.
Awin did not return a link
Some advertisers don’t allow deep links. Leave the destination URL empty to link to their homepage.
There’s no Affiliate link option in the editor
In the Classic Editor it’s next to Add Media; in the block editor it’s in the toolbar’s ⌄ (More) menu. Your user role needs permission to edit posts.
The disclosure doesn’t appear on a page
Check that Affiliate disclosure is ticked, and that the page’s links are recognised: Amazon links need a tracking ID, and other networks’ domains must be listed under Other affiliate domains. It’s also skipped when the page already has its own disclosure, and it only shows on single posts and pages, not archive listings.
A scheduled change ran late or didn’t run
WordPress’s scheduler only runs when someone visits the site, and the hourly check picks up anything missed. If changes never run, WP-Cron may be turned off (DISABLE_WP_CRON in wp-config.php) without a server cron job to replace it; ask your host. The post must still be in the Posts or Pages list, not in the Bin.
The licence screen names a different plugin
This can happen if the plugin was activated remotely (through Jetpack, ManageWP or WP-CLI). Affiliate Atlas corrects it automatically the next time you open any admin page. If it doesn’t, deactivate and reactivate Affiliate Atlas from the Plugins screen.
17. For developers
Keep secrets out of the database
Add these to wp-config.php instead of entering them in settings. The settings fields then show “Set in wp-config.php”.
define( 'AFAT_AMAZON_CREDENTIAL_ID', 'your-credential-id' ); define( 'AFAT_AMAZON_CREDENTIAL_SECRET', 'your-credential-secret' ); define( 'AFAT_AWIN_API_TOKEN', 'your-awin-token' );
Filter: afat_amazon_marketplaces
Add or change stores. Each entry has host, label, region (NA, EU or FE) and lang.
add_filter( 'afat_amazon_marketplaces', function ( $markets ) {
$markets['uk']['label'] = 'UK';
return $markets;
} );
Filter: afat_affiliate_hosts
The domains whose links count as affiliate links (besides Amazon store links with a tracking ID). Subdomains match too.
add_filter( 'afat_affiliate_hosts', function ( $hosts ) {
$hosts[] = 'go.example-network.com';
return $hosts;
} );
Filter: afat_disclosure_text
Change the disclosure wording in code. Receives the plain text and whether the page links to Amazon.
Filter: afat_sc_post_types
Choose which post types get scheduled changes. The default is posts and pages.
add_filter( 'afat_sc_post_types', function ( $types ) {
$types[] = 'product';
return $types;
} );
REST endpoints
All require the edit_posts capability: GET /wp-json/affatlas/v1/amazon/search, GET /amazon/item, GET /awin/programmes and POST /awin/link.
Markup and styling
Links have the classes afat-link plus afat-link--amazon or afat-link--awin. The product box uses .afat-box with __image, __title, __byline, __features, __price, __button and __disclaimer children, and the disclosure uses .afat-disclosure, so you can restyle them from your theme.
18. Questions
Do I need the Amazon API just to make links?
Not if you know the ASIN: [atlas_amazon] builds the tagged link itself. You need the API to search and for product boxes.
Do I need an Amazon Associates account in every country?
Only in the countries you want to earn in. See Tracking IDs in other countries.
Will my links break if I deactivate the plugin?
No. Links inserted with the editor buttons are ordinary links saved in your posts. Shortcodes and product boxes need the plugin to run, and the automatic rel="sponsored" and disclosure stop.
Does it work alongside my disclosure or SEO plugin?
Yes. If you already use another disclosure plugin, leave Affiliate Atlas’s disclosure off. Scheduled edits can also update Rank Math and Yoast SEO titles and descriptions.
Does it slow my site down?
No. Text links are plain HTML. Product boxes use cached data, and the editor scripts only load on post edit screens.
Is this made by Amazon or Awin?
No. Affiliate Atlas is an independent plugin by Andrew Hill, using Amazon’s and Awin’s official APIs. It isn’t affiliated with or endorsed by either company.
19. Changelog
1.2.0
- New:
rel="sponsored nofollow"on every affiliate link in your content, not only links inserted with Affiliate Atlas. - New: optional affiliate disclosure on posts and pages with affiliate links, with your own wording and Amazon’s required statement.
- New: list other affiliate domains so their links are recognised too.
1.1.0
- New: schedule a future edit for a post or page: a prepared replacement title, content, excerpt and Rank Math or Yoast SEO title and description go live on the date you choose.
- New: schedule depublication, moving a post to draft or making it private when an offer ends.
1.0.1
- Fixed: Amazon product lookups found no products, so product boxes showed only a button.
- New: plugin icon, and clearer help on tracking IDs for each country.
- Fixed: the licence screen could name another plugin after remote activation.
1.0.0
- First release.
Already have a licence key?
Install the Pro zip from your purchase email and open Settings → Affiliate Atlas. Freemius shows a licence screen: paste the key from the email and click Activate License. Freemius checks the key and handles any consent prompts. You don’t need another purchase. Only a site administrator can manage licences. Moving to a new site? Deactivate the licence on the old site from its Account page first, or email us.