Package Exports
- affiliate-plugin-amazon
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (affiliate-plugin-amazon) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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.