https://github.com/threenine/gridsome-plugin-amazon-onelink
Gridsome Plugin to enable adding the Amazon Onelink scripts to your Gridsome based website
https://github.com/threenine/gridsome-plugin-amazon-onelink
gridsome-plugin
Last synced: 2 months ago
JSON representation
Gridsome Plugin to enable adding the Amazon Onelink scripts to your Gridsome based website
- Host: GitHub
- URL: https://github.com/threenine/gridsome-plugin-amazon-onelink
- Owner: threenine
- Created: 2020-09-11T20:19:17.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-15T19:41:06.000Z (almost 6 years ago)
- Last Synced: 2025-08-31T14:56:01.313Z (10 months ago)
- Topics: gridsome-plugin
- Language: JavaScript
- Homepage: https://threenine.co.uk
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gridsome plugin for Amazon Onelink Configuration
A plugin to enable adding the Amazon Onelink to your Gridsome based website.
### What is Amazon OneLink
Amazon OneLink enables you to monetize traffic on your site from a number of different locales including
United Kingdom (UK), Canada and Germany via Amazon's text links.
It will require you to register for a [US based Amazon Associates](https://affiliate-program.amazon.com/).
Once you have registered your accounts for Amazon Onelink it will require you to place an additional script on your
website. This is what this the Gridsome will enable you to do quickly as easily.
### How to Install
Open your terminal window in the root directory of your Gridsome project
```shell script
npm i gridsome-plugin-amazon-onelink
```
## How to get your Get your Amazon One Link Id
Typically the Amazon Onelink script will look like as follows
```html
```
All you will need to do is extract the UUID i.e 12345baa-12b1-123e-b123-a123c3b0b1e2
and add it to your [Environment variables](https://gridsome.org/docs/environment-variables/) using the name AMAZON_ONELINK
### Configure
```javascript
{
use: 'gridsome-plugin-amazon-onelink',
options: {
id: process.env.AMAZON_ONELINK
}
}
```
### Support This Project
If you have found this project helpful, either as a library that you use or as a learning tool, please consider buying the team a coffee:
### Developed, Sponsored and Supported
[](https://threenine.co.uk/)
