# Amazon link rewriting for affiliate codes

**URL:** <https://meta.discourse.org/t/amazon-link-rewriting-for-affiliate-codes/12174>\
**Category:** Feature\
**Created:** [Janvier 24, 2014, 5:40 UTC](https://meta.discourse.org/t/amazon-link-rewriting-for-affiliate-codes/12174 "2014-01-24T17:40:26Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![dean](https://avatars.discourse-cdn.com/v4/letter/d/3be4f8/32.png) [@dean](https://meta.discourse.org/u/dean)\
**Post date:** [Janvier 27, 2014, 8:43 UTC](https://meta.discourse.org/t/amazon-link-rewriting-for-affiliate-codes/12174/3 "2014-01-27T08:43:38Z")

</div>

I created a script to do exactly this, it’s here: [GitHub - deanbarrow/Affililink: A free way to automate your affiliate scheme. http://affililink.com/ · GitHub](https://github.com/deanbarrow/Affililink)

It’ll add your affiliate tag to any Amazon link, and also rewrite other peoples with tags with your own.  
It works on the client side so it’s just a case of adding a javascript file to your head section and configuring it.

It will do the same for eBay and can be setup to work with any affiliate scheme which uses a [http://domain.com/?CODE=XYZ](http://domain.com/?CODE=XYZ) style linking structure.

I’ll be happy to answer any questions to help you get set up.

---

_[View the full topic](https://meta.discourse.org/t/amazon-link-rewriting-for-affiliate-codes/12174)._
