# Creating affiliate links

{% hint style="success" %}
**AI Helper: Generate Your Deeplink Automatically**

You can now  our **specialized GPT assistant** to generate correct Deeplink templates.

👉 [Open Deeplink Setup GPT](https://chatgpt.com/g/g-6911df85b340819188ccf04452586c6e-deeplink-setup-for-content-egg)

Simply:

1. Paste your sample affiliate link(s) from your network dashboard.
2. The assistant will detect your format and build a proper Deeplink template for External Importer.
3. Copy the suggested template into your **Deeplink Settings**.
   {% endhint %}

### 1. Start with Clean, Direct URLs

Import products **without** any affiliate parameters. External Importer will handle the tracking bits later.

> **Tip**: You don’t have to join affiliate programs up front. Your site will work fine with direct links; you can add monetization once you’re approved by an advertiser or network.

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

### 2. Add New Domains

1. **Automatic** – Every time you import a product from a new domain, that domain is added to\
   **External Importer → Settings → Deeplinks**.
2. **Manual** – To add merchant domains manually, go to the same page and enter them yourself.

![](/files/-MJMBbnQ3SmM7hiv5IRM)

### 3. Choose a Link-Building Method

Affiliate programs fall into two broad categories. Configure each domain accordingly:

| Method                        | Used by                                                         | How It Works                                                                                               | What You Configure                                              |
| ----------------------------- | --------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
| **A. Deeplink (redirect)**    | Most affiliate networks (Admitad, AWIN, Impact, etc.)           | Visitor hits the network’s tracking URL → network records the click → visitor is redirected to the product | A single **Deeplink template**                                  |
| **B. Affiliate-ID parameter** | Direct programs (Amazon Associates, eBay Partner Network, etc.) | Your unique ID is appended to the product URL; no extra redirect                                           | The **parameter name** (e.g., `tag=`) and your **affiliate ID** |

### 4. Set Up Deeplinks (Redirect Method)

1. Generate a valid affiliate link for any non-homepage product in your network panel.&#x20;

   ![](/files/-MJMCZFMrAJAq21IwJft)

   Example:

   ```
   https://ad.admitad.com/g/383ee6455773fd57830a7d95a12660/?ulp=https%3A%2F%2Fwww.lightinthebox.com%2Fen%2Fp%2Fkids-girls-rainbow-dress-purple_p7923807.html
   ```
2. Replace the encoded product part with the template token:

   ```
   https://ad.admitad.com/g/383ee6455773fd57830a7d95a12660/?ulp={{url_encoded}}
   ```
3. Paste this template into **Deeplink** for the corresponding domain.&#x20;

   ![](/files/-MJMCoxuiXHoRcM4fBW-)

**Template tokens you can use**

| Token                                              | Replaced with                      |
| -------------------------------------------------- | ---------------------------------- |
| `{{url_encoded}}`                                  | Percent-encoded product URL        |
| `{{url}}`                                          | Plain (unencoded) product URL      |
| `{{post_id}}`, `{{author_id}}`, `{{author_login}}` | Useful sub-IDs for tracking clicks |

> **Verify**: Refresh a product page on your site, click its button, and confirm the redirect lands on the correct product page.

### 5. Set Up Affiliate-ID Parameters (Direct Method)

Some affiliate programs—like **Amazon Associates**—don’t use redirects. Instead, they rely on a tracking **parameter** directly in the product URL.

#### Correct Setup (Example: Amazon)

Affiliate link example:

```
https://www.amazon.com/dp/B07XKF5RM3/?tag=yourtag-20
```

Breakdown:

* **Parameter name:** `tag=`
* **Affiliate ID:** `yourtag-20`

![](/files/-MJMajTyq4t7OjF5ZEUi)

In **Deeplinks settings** for Amazon (or any similar domain):

**Enter the full parameter:**

```
tag=yourtag-20
```

This includes both:

* The **parameter name** (`tag=`)
* Your **unique ID** (`yourtag-20`)

External Importer will automatically insert it into the correct place in all product URLs from that domain.

![](/files/-MJMayR01F1X83vSEQ0I)

#### Common Mistakes (Don't Do This)

The following inputs are incorrect or discouraged:

| Incorrect Input   | Why it’s wrong                                                  |
| ----------------- | --------------------------------------------------------------- |
| `yourtag-20`      | ❌ Missing parameter name                                        |
| `?tag=yourtag-20` | ❌ Do not include `?` — it will be added automatically if needed |
| `&tag=yourtag-20` | ❌ Do not include `&` — External Importer handles it             |

> Even though External Importer may try to correct these, always use the clean `param=value` format for best results.

### 6. Edit Anytime, Track Instantly

External Importer rewrites links on the fly. Change your Deeplink or ID settings whenever you:

* Switch affiliate networks
* Update to a new tracking ID

After each change, check your network’s reporting panel to ensure clicks are being registered.


---

# Agent Instructions: 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:

```
GET https://ei-docs.keywordrush.com/monetization/creating-affiliate-links.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
