# How to add a sub-ID to an affiliate link, step by step

> Add a sub-ID to any affiliate link without breaking it: find the parameter, choose ? or &, place it before the destination, encode values, and test the result.

Source: https://hoplytic.com/blog/add-sub-id-to-affiliate-link · Updated 2026-11-28 · Hoplytic Guides

Video version (61 seconds): [https://hoplytic.com/video/add-sub-id-to-affiliate-link.mp4](https://hoplytic.com/video/add-sub-id-to-affiliate-link.mp4)

## Video transcript

How do you add a sub-ID to an affiliate link without breaking it? Four things to get right.

First, find your network's exact parameter name. A near miss is silently ignored, so the link works and the value vanishes.

If the link has no query string yet, start with a question mark. If it already has one, use an ampersand. Never add a second question mark. It's the most common mistake.

Deep links often end with an encoded destination. Add your sub-ID before it. Put it after, and some systems read it as part of the merchant's address.

Keep the value to letters, numbers, dashes and underscores, and never put personal data in it. Then paste the finished link into the redirect checker and confirm the value is still there.

In Hoplytic, paste the link and the network is recognized. The click ID goes into the first sub-ID by itself. A live preview shows exactly where a click will land.

The full guide is right below. Hoplytic: ad tracking made simple.

## Key points

- Use the network's exact parameter name; a near miss like subid1 instead of subId1 is silently ignored.
- Start the sub-ID with ? if the link has no query string yet, and with & if it already does.
- When the link carries an encoded destination URL, put the sub-ID before that destination, not inside it.
- Keep values to letters, numbers, dashes and underscores, and test the finished link before you publish it.

You know what a sub-ID is and why you want one. Now you have an affiliate link in front of you and need to add one without breaking it. This is the hands-on part.

**Short answer:** find your network's sub-ID parameter (for example `clickref` on Awin, `subId1` on Impact, `sid` on CJ, `tid` on ClickBank), add it to the end of the link with `?` if there's no query string yet or `&` if there is, put it before any encoded destination URL, keep the value to letters, numbers, underscores and dashes, and test the link before you publish.

## Step 1: find the parameter name

Each network has its own name, and spelling matters: networks usually ignore a parameter they don't recognize, so the link still works and the value quietly disappears. The common ones:

| Network | Parameter | Guide |
| --- | --- | --- |
| Awin | `clickref`, `clickref2` to `clickref6` | [Awin clickref](https://hoplytic.com/blog/awin-clickref) |
| Impact | `subId1` to `subId3`, `sharedid` | [Impact sub-IDs](https://hoplytic.com/blog/impact-sub-id) |
| CJ | `sid` | [CJ SID](https://hoplytic.com/blog/cj-sid-parameter) |
| ClickBank | `tid` and newer tracking parameters | [ClickBank TID](https://hoplytic.com/blog/clickbank-tracking-id) |
| TUNE / HasOffers networks | `aff_sub` to `aff_sub5` | |
| Everflow, Affise | `sub1` to `sub5` | |
| CAKE, MaxBounty | `s1` to `s5` | |

The full list is on [sub-ID parameters by network](https://hoplytic.com/blog/affiliate-network-sub-ids). If your network isn't there, look in its help center for "sub-ID", "click reference" or "tracking parameter", or ask your affiliate manager.

## Step 2: choose ? or &

A URL has one `?`, which starts the query string. Every parameter after the first is joined with `&`.

`No query string yet:
https://brand.sjv.io/c/123/456/789
→ https://brand.sjv.io/c/123/456/789?subId1=review-page

Query string already there:
https://track.revoffers.com/aff_c?offer_id=101&aff_id=2045
→ https://track.revoffers.com/aff_c?offer_id=101&aff_id=2045&aff_sub=review-page`
A second `?` is the most common mistake. The server reads everything after the first `?` as parameters, so `?a=1?sid=x` becomes one parameter named `a` with the value `1?sid=x`.

## Step 3: put it before the destination

Deep links often carry the merchant page as a parameter, for example Awin's `ued=`. That value is an encoded URL and often sits at the end. If you add your sub-ID after it, some systems read it as part of the destination instead of as your parameter.

`Risky:
https://www.awin1.com/cread.php?awinmid=1234&awinaffid=5678&ued=https%3A%2F%2Fwww.merchant.com%2Fmattress&clickref=review-page

Safer:
https://www.awin1.com/cread.php?awinmid=1234&awinaffid=5678&clickref=review-page&ued=https%3A%2F%2Fwww.merchant.com%2Fmattress`
Awin's own guidance is to add click references before the destination URL. The same habit is safe on every network.

Two networks put sub-IDs in the path instead of the query string:

- **Partnerize:** `https://prf.hn/click/camref:1011abc/pubref:review-page`. If the link already has `adref:` or `ar:`, keep only one; Partnerize uses the last.

- **Digistore24:** besides `sid1` to `sid5` in the query string, you can add a campaign key at the end of the path: `/redir/PRODUCT/AFFILIATE/CAMPAIGN`.

## Step 4: choose a clean value

- Use letters, numbers, dashes and underscores: `review-page`, `yt_aug_video`, `c7f3a9e1`.

- Avoid spaces, `#`, `&`, `+`, quotes and accents. A `#` ends the part of the URL the server sees, and `&` starts a new parameter.

- ClickBank's legacy `tid` is the strictest: stick to letters and numbers there.

- Keep it short. Networks have limits (Impact allows 255 characters per sub-ID; Awin's click reference report shows only the first 50).

- Never put personal data in a sub-ID: no emails, names or phone numbers. Many networks forbid it, and the value is visible in URLs and reports.

## Step 5: fixed labels or a click ID?

A fixed label such as `review-page` tells you which link earned. A unique click ID per click tells you which click earned, with its time, country, device and ad. You can use both in different slots:

`&aff_sub=c7f3a9e1&aff_sub2=review-page&aff_sub3=sidebar`
A unique ID per click needs something to create it, which is what a tracker does. If you direct link from an ad network instead, you can put its macros straight into the sub-IDs, for example from PropellerAds: `&aff_sub=${SUBID}&aff_sub2={zoneid}`. Then the network report shows the ad network's click ID and zone next to each sale. Macro names per platform are on [ad platform macros](https://hoplytic.com/blog/ad-platform-macros). For a plan of what goes in which slot, see [sub-ID tracking](https://hoplytic.com/blog/sub-id-tracking).

## Step 6: test it

- Paste the finished link into the [redirect checker](https://hoplytic.com/tools/redirect-checker) and confirm the value is still in the URL at the network's hop.

- Click it once yourself and check the browser lands on the right merchant page, not the home page.

- A few hours later, check the network's click or sub-ID report for your value. Some networks only show sub-IDs next to sales, not clicks.

## Common mistakes and what they do

| Mistake | Example | Result |
| --- | --- | --- |
| Wrong spelling | `subid1=` on an Everflow link (it expects `sub1`) | Link works, value ignored |
| Second question mark | `?offer=1?sid=x` | Value glued onto another parameter |
| After the destination | `...&ued=...&clickref=x` | Value may be read as part of the merchant URL |
| After a `#` | `...page#reviews&sid=x` | Never sent to the server at all |
| Unfilled placeholder | `aff_sub={clickid}` | The literal text is stored, so nothing can match |
| Same parameter twice | `&sid=a&sid=b` | Network keeps one, and which one varies |

The unfilled placeholder happens when you copy a tracking template with macros into a place that doesn't replace them, such as a blog post. Macros only work inside the ad platform that fills them.

## Doing it without editing URLs

By hand, this is fine for a few links. For dozens, it's where typos creep in. In Hoplytic you paste the affiliate link, the network is recognized, and Hoplytic's click ID goes into the first sub-ID by itself; you choose what goes into the others. For networks it doesn't know, you type the parameter names once. The live preview shows exactly where a click will land before you use the link.

![Making a tracking link in Hoplytic: paste an Awin affiliate link, the network is detected and the click ID goes into its sub-ID, name the link, create it and copy the short link.](https://hoplytic.com/video/howto-link-create.gif)

*Paste your affiliate link, name it, create it, copy it.*

## Questions people ask

### Where do I put the sub-ID in an affiliate link?

Usually at the end, as ?param=value or &param=value. If the link ends with a destination URL parameter such as ued= or url=, add the sub-ID before it, so it isn't read as part of the destination.

### Can I use spaces or special characters in a sub-ID?

Avoid them. Some networks drop or cut values with spaces, #, &, + or quotes. Letters, numbers, underscores and dashes are safe on the major networks; if a network drops dashes, switch to underscores.

### How do I know the sub-ID worked?

Click the link, or run it through a redirect checker, and confirm the value is still in the URL at the network. Then check the network's report a few hours later: the value should appear next to the click or sale.

### Will adding a sub-ID break my affiliate link?

Not if the parameter name is right and the value is clean. The usual breakages are a second ? in the URL, a value placed inside an encoded destination, or a # placed before the parameter.
