> For the complete documentation index, see [llms.txt](https://wilcode-net.gitbook.io/wilcode-apps/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wilcode-net.gitbook.io/wilcode-apps/amazon-importer-app/how-to/set-up-the-amazon-affiliate-button.md).

# Set up the Amazon affiliate button

In affiliate mode, you add a **Buy on Amazon** button to your products. Customers buy on Amazon, and you earn a commission through Amazon Associates — no fulfillment required.

### 1. Add your Amazon Affiliate ID

Go to **Settings → Affiliate Settings** and enter your **Amazon Affiliate ID** (your Associates tracking tag, e.g. `amz-10000`).

<figure><img src="/files/OJEWAzwm1AKjGvUe9eO1" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Don't have a tag yet? Sign up at [affiliate-program.amazon.com](https://affiliate-program.amazon.com). New accounts must make at least **3 qualifying sales within 180 days** to stay active.
{% endhint %}

### 2. Customize the button

Still in **Affiliate Settings**, set up the **Referral Button**:

* **Button text** (default: *Buy on Amazon*)
* **Style** — background color, text color, border color, and border radius, with a **live preview**.

<figure><img src="/files/M2J660TmhS4vV0NrxMVN" alt=""><figcaption></figcaption></figure>

### 3. Enable the "Buy on Amazon" button.

Click **Activate** in the app to open the **Theme Editor**, then turn on the app embed so the button can appear on your product pages.

<figure><img src="/files/Yx4q2hTr5EXsOR0Oc6CG" alt=""><figcaption><p>Enable the <strong>Buy on Amazon</strong> button</p></figcaption></figure>

{% hint style="warning" %}
THEME CHANGED

When you switch to a different Shopify theme, Shopify disables app embeds for the new theme by default. As a result, the **Buy on Amazon** button is hidden until you enable the **Amazon Affiliate Button** for that theme again.
{% endhint %}

<figure><img src="/files/GBdsqj9YzE1MaiEoHB0T" alt=""><figcaption><p>The <strong>Add to Cart</strong> button is replaced with a <strong>Buy on Amazon</strong> button.</p></figcaption></figure>

{% hint style="success" %}
By default the button shows on **all** imported products. To control it per product, see [Control Amazon button visibility](/wilcode-apps/amazon-importer-app/how-to/control-amazon-button-visibility.md).
{% endhint %}

***

{% hint style="info" icon="comments-question" %}
**Need help?** Open the **Support** menu in the top-right corner of any app page and choose [Live Chat](https://tawk.to/chat/6a328f3217693e1d43ea90f9/1jranuncv) or **Email support**.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://wilcode-net.gitbook.io/wilcode-apps/amazon-importer-app/how-to/set-up-the-amazon-affiliate-button.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
