affiliate-plugin-amazon

A plugin for the "affiliate" package that works with Amazon links


Keywords
affiliate, amazon, purchases, link, affiliation, refer, referral, marketing, shopping, ads, advertisement, affiliates, amazon-url
License
MIT
Install
npm install affiliate-plugin-amazon@3.0.0

Documentation

AffiliatePluginAmazon

This plugin for the open source Affiliate package automatically affiliates Amazon URLs based upon locality.

Installation

$ npm i -S affiliate affiliate-plugin-amazon
$ yarn add affiliate affiliate-plugin-amazon

What It Can Do

Affiliate can modify the following link into any of the others.

<a href="https://www.amazon.co.jp/dp/B01MRZFBBH">Japan</a>
<a href="https://www.amazon.com/dp/B01MRZFBBH">USA</a>
<a href="https://www.amazon.de/dp/B01MRZFBBH">Germany</a>
<a href="https://www.amazon.co.uk/dp/B01MRZFBBH">UK</a>

If the user's primary language is Italian, all links would become:

<a href="https://www.amazon.it/dp/B01MRZFBBH?tag=italian-tag">My Locality</a>

Or url modification can be disabled:

<a href="https://www.amazon.co.jp/dp/B01MRZFBBH?tag=jp-tag">Japan</a>
<a href="https://www.amazon.com/dp/B01MRZFBBH?tag=us-tag">USA</a>
<a href="https://www.amazon.de/dp/B01MRZFBBH?tag=de-tag">Germany</a>
<a href="https://www.amazon.co.uk/dp/B01MRZFBBH?tag=gb-tag">UK</a>

Documentation

Plugin documentation available here: affiliate.js.org/plugins/amazon.

Affiliate is simple and quick to set up, even for more complex usage. Read the docs at: affiliate.js.org.

License

MIT (C) Russell Steadman. Learn more in the LICENSE file.