> For the complete documentation index, see [llms.txt](https://ae-docs.keywordrush.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ae-docs.keywordrush.com/affiliate-links/deeplink.md).

# Deeplink settings

Deeplinks turn the plain product URLs in your storefronts into **trackable affiliate links** — so your affiliate network records the clicks and pays your commissions. This is exactly why you add clean product URLs to a storefront rather than your affiliate links: the affiliate part is applied here, in one place, per shop.

## The Deeplink tab

The **Deeplink** tab is a list of **domain → affiliate link** pairs. When you save a storefront, every shop domain it contains is added here automatically, with an empty deeplink. You fill in your affiliate link (or ID) for each domain once, and it applies to every product from that domain — across all your storefronts. You can also add a domain manually at any time.

So the flow is simple: add clean product URLs → the shop domains appear in the Deeplink tab → set your affiliate link for each.

![The Deeplink tab](/files/uEHR65lw9NT70ahiO0s4)

{% hint style="success" %}
**AI Helper: generate your Deeplink automatically**

You can use our specialized GPT assistant to build a correct Deeplink template.

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

1. Paste a sample affiliate link from your network dashboard.
2. The assistant detects the format and builds a Deeplink template for Affiliate Egg.
3. Copy the suggested template into your Deeplink settings.
   {% endhint %}

Affiliate networks build links in one of two ways, and Affiliate Egg supports both.

## 1. Deeplink-based affiliate links

Many networks (AWIN, ShareASale, CJ, Admitad…) use **deeplink redirects** — the link routes the visitor through the network's servers for tracking, then on to the product page.

A deeplink has two parts: the network's tracking script, and the **encoded product URL**:

```
https://ad.admitad.com/g/383ee6455773fd57830a7d95a12660/?ulp=https%3A%2F%2Fwww.lightinthebox.com%2Fen%2Fp%2Fkids-girls-rainbow-dress-purple_p7923807.html
```

To set it up:

1. Generate a sample affiliate link for any **product page** (not the homepage) from your network.
2. Find the product-URL part inside it.
3. Replace that part with the placeholder `{{url_encoded}}`.
4. Paste the result into the domain's Deeplink field.

**Template:**

```
https://ad.admitad.com/g/383ee6455773fd57830a7d95a12660/?ulp={{url_encoded}}
```

Affiliate Egg substitutes `{{url_encoded}}` with each product's encoded URL when it builds links.

{% hint style="info" %}
Use `{{url}}` instead if the network does **not** require URL encoding.
{% endhint %}

## 2. Direct affiliate links with an ID parameter

Some programs (like Amazon) don't redirect — they just append your affiliate ID to the product URL:

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

Here `tag` is the parameter name and `yourtag-20` is your tracking ID (both vary by network).

To set it up, enter just the **parameter and value** in the domain's field:

**✅ Correct**

* `tag=yourtag-20`
* `aff_id=abc123`

**❌ Incorrect**

* `?tag=yourtag-20`
* `&tag=yourtag-20`
* `yourtag-20`
* `tag` with no value

{% hint style="warning" %}
Don't include `?`, `&`, or any prefix — Affiliate Egg formats the final URL for you.
{% endhint %}

## Test your links

After setting a deeplink or affiliate ID, open a few product links from your storefront and confirm they redirect correctly and that the clicks show up in your affiliate dashboard. If tracking isn't working, re-check the template and the encoding format.
