# Click ID tracking: how one ID ties a sale to the exact ad, zone and keyword

> What a click ID is, how your tracker's ID differs from gclid, fbclid, ttclid or ${SUBID}, where each one goes, and how to debug a broken chain.

Source: https://hoplytic.com/blog/click-id-tracking · Updated 2026-11-19 · Hoplytic Guides

Video version (65 seconds): [https://hoplytic.com/video/click-id-tracking.mp4](https://hoplytic.com/video/click-id-tracking.mp4)

## Video transcript

What is a click ID, and where does it go? There are actually two of them.

Your tracker creates an ID for every click. The ad platform creates its own, like the GCLID. Yours goes to the network. The platform's stays stored until a sale. Yours matches the sale to the click. The platform's lets you report that sale back to it.

Your click ID goes in the network's first sub-ID slot. The postback needs the matching token. A mismatch is the most common reason sales arrive without a click.

The slot name depends on the network: sub one on Everflow, S one on CAKE, clickref on Awin, SID on CJ.

To debug, open your link in a private window and check the network's link has your click ID. Then fire a test conversion and check it lands on that click.

Every click gets a Hoplytic click ID, and the link maker puts it in the right sub-ID slot. Duplicate postbacks update the sale instead of counting it twice.

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

## Key points

- There are two click IDs in play: your tracker's (sent to the affiliate network) and the ad platform's (sent back to the ad platform).
- Your tracker's click ID goes in the network's first sub-ID slot and comes back in the postback.
- The ad platform's click ID is stored with the click and only used when reporting the sale back to that platform.
- A click ID should be unique, short, URL-safe and contain no personal data.

A click ID is the thread that runs through the whole tracking chain. Get it into the right place and every sale tells you which ad earned it. Lose it at any hop and the sale arrives as an orphan.

**Short answer:** your tracker creates a unique ID for each click and passes it to the affiliate network in a sub-ID (for example `aff_sub=c7f3a9e1`). The network returns it with the sale. Separately, the ad platform's own click ID (gclid, fbclid, ttclid or a push network's `${SUBID}`) is stored with the click so the sale can be reported back to that platform.

## The two click IDs

| | Your tracker's click ID | The ad platform's click ID |
| --- | --- | --- |
| Created by | Your tracker, on each click | The ad platform, on each ad click |
| Arrives | Generated during the redirect | In the URL: added automatically (gclid, fbclid, ttclid) or through a macro you add (`${SUBID}`, `{cid}`, `{click_id}`) |
| Sent to | The affiliate network, in a sub-ID | Nowhere, until a sale |
| Comes back | In the network's postback, API or report | You send it back to the platform with the sale |
| Used for | Matching the sale to the click and everything about it | Telling the platform which of its clicks bought, for reporting and bidding |

## Where your click ID goes

In the network's first sub-ID slot. The parameter name depends on the network: `aff_sub` on TUNE, `sub1` on Everflow and Affise, `s1` on CAKE, `subId1` on Impact, `clickref` on Awin, `sid` on CJ, `tid` on ClickBank. The full list is in [sub-ID parameters by network](https://hoplytic.com/blog/affiliate-network-sub-ids).

The postback then needs the matching token, so the network fills in the same value: `click_id={aff_sub}` on TUNE, `click_id={sub1}` on Everflow, `click_id=#s1#` on CAKE. A mismatch between the slot and the token is the most common reason sales arrive without a click.

## What a good click ID looks like

- **Unique** per click, never reused.

- **Short and URL-safe**: letters and digits only. Some networks cap sub-IDs (ClickBank's tid allows letters and numbers up to 100 characters) or strip symbols.

- **Meaningless on its own**: no email, name or IP address inside. Networks and merchants see it.

- **Stored long enough**: sales can arrive weeks later, so the tracker must keep clicks for at least the attribution window.

## Following one click: a debugging recipe

- Open your tracking link in a private window, as a visitor would (use the ad platform's preview if you can, so macros get filled).

- Look at the final URL on the merchant site or check the chain in the [redirect checker](https://hoplytic.com/tools/redirect-checker): does the network's link contain your click ID in the expected slot?

- Find the click in your tracker: are the ad platform's values filled in, not literal macros?

- Fire a test conversion from the network (or ask your affiliate manager) and check it lands on that click.

- If you send sales back, check the ad platform received it with its own click ID.

## Edge cases

- **Multiple clicks, one buyer:** the network credits the last click inside its window; the click ID it returns tells you which one.

- **Sales with no click ID:** sales from links made outside your tracker, or from networks that drop sub-IDs on some flows (app installs, coupon codes). Count them as unattributed rather than guessing.

- **Duplicate postbacks:** networks retry. Use the transaction ID to recognise the same sale, and update the status when it changes from pending to approved.

- **Missing ad-platform click ID:** organic clicks, ad clicks through a shortener, or auto-tagging turned off. Those sales can't be sent back to the platform.

## On Hoplytic

Every click gets a Hoplytic click ID, placed in the network's right sub-ID slot by the link maker. The ad platform's click ID (gclid, fbclid, ttclid, msclkid, or the push network's macro) is stored with the click, and **Send back** uses it to report each sale. Duplicate postbacks for the same transaction update the sale instead of counting it twice.

![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

### Is a click ID the same as a transaction ID?

No. The click ID identifies the click and is created by your tracker (or the network). The transaction ID identifies the sale and is created by the network or merchant. Postbacks often include both, so a tracker can recognise the same sale if it's reported twice.

### Can I use the ad platform's click ID as the sub-ID?

You can, but it limits you to one platform's format and loses everything the tracker knows about the click. Most trackers pass their own ID to the network and keep the platform's ID alongside it.

### Why is my click ID showing as {clickid} at the network?

The tracker's placeholder wasn't replaced, usually because the affiliate link was pasted into the tracker with a macro the tracker doesn't recognise. Use the tracker's own token for its click ID.
