Integrating the Amazon Associates OneLink code into your self-hosted WP site

Amazon.com has a successful affiliate program that allows website owners (like my own blog) to display products directly from the Amazon website. This allows your readers to purchase a product that you could be talking/reviewing about, and in return Amazon will pay you a commission. Great stuff, eh!

I think so. I love writing about stuff and if I can channel my reader to the exact product so that they are happy using it and there is a monetary incentive for me, why not? It’s a Win-Win for all. I have personally read articles, clicked on the link and bought things myself. So, I have no qualms in providing the same service on this site 🙂

Moving to the technical side of things, Amazon has stores all over the world and your blog readers could also be from all over the place. If you signed up to the US Amazon Associate program, then you are mainly going to benefit from readers who purchases your recommended product there. But what if a British reader wants to buy the same product that’s available at his/her Amazon UK store? They are looking for local delivery in local prices.

This is where Amazon’s OneLink tool comes into the picture.

What this tool does is navigate your users to the Amazon store page relevant to the regions they are coming from. That way, they see prices and products available to their home stores. Nifty tool! BUT, please note the following though:

  1. OneLink is only available from the US site at the moment. This means that you will need a US Amazon account (the .com one)
  2. You will need to sign up for each of the Amazon Associate program in each country you are interested in!!! Yup. This is because each affiliate program is independent of the other with their own rules. Hence, Amazon want you to agree to each one of them.
  3. The monetisation of Amazon products via the OneLink tool is available only in these countries – UK, France, Germany, Canada, Italy, Spain, Japan and neighbouring countries. Not sure what “neighbouring countries” constitute as it’s not explicitly mention on the Amazon site.
  4. If you are interested in regions outside of the above (say Australia – amazon.com.au), then signup on their specific Amazon Associate account as mentioned before and then manually create your Product links from there. You can easily change your “Locale” up at the top to move between different countries.
  5. Once you have signed up, you will need to come back to the US account and start linking all the countries you have signed up with.
  6. Then you need to copy – paste a specific script into the footer of your site so that Amazon knows where the users are based at while downloading your webpage.

Step 1: Signup with other countries

As of writing this article, there are 12 locations in the world where Amazon Associates are available. You can see the list and link from the Amazon page here:
https://affiliate-program.amazon.com/help/node/topic/GCE3F2NCVZLDFM6A

  • Note: For some reason, countries like India, Australia etc are not listed. Maybe, Amazon hasn’t updated their information 🙁 Anyway, the best is to google search “Amazon Associates” followed by your country name. E.g: Amazon Associates India or Amazon Associates Australia etc. That should show up search results like below:
    • https://affiliate-program.amazon.in
    • https://affiliate-program.amazon.com.au
      (the URL path seems to be the same for all associates, so you could also just try changing the domain at the end like .in, .com.au etc)

You can also access different regions from the LOCALE toggle button up at the top of your current Amazon Associate account as seen below. So, that’s another option.

Go through the signup process which is easy and not very complicated. You can also set up your payment details if you have time or come back to it later.

Once you finish the final step, you will get your specific store ID. You decide what the name of the store/account you like. it could be your website name or your business name etc. Amazon will then add a number to the end like 20, 21, 22 etc specific to the country you are signing up with.

Step 2: Login to your .COM Amazon Associate account.

a. Once you have signed up to the respective countries as described in Step 1 above, sign-in to your .COM US Amazon Associate account.

b. Click on TOOLS > ONELINK

c. Click on “Link Your Accounts

Step 3. Enter your new store id

This is the store/account id you created in Step 1. Enter that in the box as seen below and click the button “Link Store”. It should instantly link/connect and the Status column will show up as “VERIFIED”.

Step 4. Get the code for site integration

Go back to your OneLink page where you started and click on “Get the code here” link.

Step 5: Copy the script (OneTAG)

All you need to do on this page is copy that OneTag code seen in the box. If you use the “Highlight HTML” button, then don’t forget to copy (CTRL + C).

Step 6. Paste it in to your WordPress site

Remember, this article is for the .org WordPress sites / self-hosted websites on the WordPress platforms.

Once you lave logged into your WordPress dashboard of your website, you need to do what all these curved arrows are asking you to do 🙂

  1. Click on APPEARANCE from the left
  2. Click on WIDGETS under APPEARANCE
  3. On the WIDGETS page, there should usually be a FOOTER widget already ready. If there are many Footer widgets, choose the 1st one.
  4. Drag a new TEXT box and drop it to the Footer widget box
  5. Copy Paste the OneTag you got from Step 6 previously.
  6. SAVE (there is no need to give a title)

Here is a nice video that explains the whole process I have highlighted above.
https://www.youtube.com/watch?v=InXLeZuA6ZQ

Step 7: Double check your implementation

Open your website and let the whole page load. Then right click on your page and click on “View Page Source” if on a Mac and I think it’s “View Source Code” on Windows machine.


On the page that has all sorts of scripts running, press CTRL + F and in the box, type in “adsystems”. This should immediately take you to the section on the page which has the Amazon script.

If you see it, you are in business!

Step 8: Check matching products

As best practice, you can double check if there are matching products in other regions when you create a specific product link. This will ensure that your readers does have the appropriate link for the product you are talking about.

That’s it!

Let me know how it all went, If any issues, please comment and we can work through it together. If you have advice or further instructions, please post that too so that it helps others.


Image credit:
1. Screenshots of the steps: From the Amazon Associate pages
2. Featured Photo for the article by 
Thomas Lefebvre on Unsplash

Written by

Manoj loves all things related to the internet, productivity, self-improvement, spirituality & entrepreneurship. He has written close to 400 articles online in the last 10 years. He is also a podcast host at "Manoj Speaks" (manojspeaks.com) and a YouTube content creator at "Manoj Videos" and works full-time in the digital advertising industry. For a number of years, he worked in the Australian international education sector helping overseas students come to Australia for their higher studies. You can follow him on Twitter at "@manojthinks".

Leave a Reply