# gclid, fbclid, ttclid and msclkid explained: what ad click IDs do and how to use them

> Every ad platform adds its own click ID to your URL. What gclid, fbclid, ttclid and msclkid mean, how long they last, and how to send sales back.

Source: https://hoplytic.com/blog/click-ids-gclid-fbclid-ttclid · Updated 2026-11-28 · Hoplytic Guides

Video version (67 seconds): [https://hoplytic.com/video/click-ids-gclid-fbclid-ttclid.mp4](https://hoplytic.com/video/click-ids-gclid-fbclid-ttclid.mp4)

## Video transcript

What are those long strings on your landing page URL, and what are they for?

The ad platform adds one to your landing URL on each click: gclid for Google, msclkid for Microsoft, fbclid for Meta, ttclid for TikTok.

Each is a receipt for one ad click. Store it with the click, and when the network reports a sale, send it back so the platform's bidding learns which clicks bought.

Google and Microsoft take it through an offline conversion import. Meta takes it through the Conversions API, as an fbc value. TikTok takes it through the Events API.

Platforms limit how late you can report. Google matches a gclid for ninety days. Meta accepts events up to seven days after. If approval is slow, report sales when they're first reported.

Hoplytic stores these IDs with each click automatically. Under Send back, sales go to Meta and TikTok within about twenty seconds, and to Google through a private feed.

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

## Key points

- gclid, fbclid, ttclid and msclkid are added to your landing URL by the ad platform, and each identifies one ad click in that platform's own system.
- They're only useful if you store them with the click and send them back with the sale, which is how the platform learns which clicks bought.
- Each platform limits how old a click can be when you report a conversion for it, so late affiliate sales need prompt reporting.
- Treat click IDs as opaque strings: never shorten, change the case of, or rebuild them.

Click on a Google ad and the landing URL ends in `?gclid=Cj0KCQiA...`. On Facebook it's `fbclid=`, on TikTok `ttclid=`. These strings look like noise, but each one is a receipt: proof, in the platform's own system, of which ad and which click sent the visitor. If you give it back with the sale, the platform's bidding starts working for you.

**Short answer:** gclid (Google), msclkid (Microsoft), fbclid (Meta) and ttclid (TikTok) are click IDs the ad platform appends to your URL on each click. Store them with the click in your tracker, and when the affiliate network reports a sale, send that click ID back to the platform through its conversion import or API, within the platform's time limit.

## The click IDs, platform by platform

| Parameter | Platform | Added when | Sent back through |
| --- | --- | --- | --- |
| `gclid` | Google Ads | Auto-tagging is on | Offline conversion import |
| `gbraid`, `wbraid` | Google Ads | Some iOS traffic, alongside or instead of gclid | Offline conversion import |
| `msclkid` | Microsoft Ads | Auto-tagging is on | Offline conversion import |
| `fbclid` | Facebook, Instagram | Outbound clicks from Meta apps, paid or not | Conversions API (as the `fbc` value) |
| `ttclid` | TikTok Ads | Ad clicks to your website | Events API |
| `epik` | Pinterest | Ad clicks | Pinterest Conversions API |
| `rdt_cid` | Reddit | Ad clicks | Reddit Conversions API |
| `ScCid` | Snapchat | Ad clicks | Snap Conversions API |
| `twclid` | X (Twitter) | Ad clicks | X conversion API |
| `li_fat_id` | LinkedIn | Ad clicks | LinkedIn Conversions API |

Push and native networks work differently: they don't add an ID by themselves, you add their click macro, such as `${SUBID}` on PropellerAds or `{click_id}` on Taboola. How those fit alongside your own tracker's click ID is explained in [click ID tracking](https://hoplytic.com/blog/click-id-tracking).

## What they are for

Each platform's bidding decides who to show your ads to based on who converts. On a merchant's own site, the platform's pixel sees the purchase. As an affiliate, you don't own the checkout page, so the pixel never sees the sale. The click ID is the bridge: your tracker keeps it with the click, the affiliate network reports the sale on that click, and your tracker hands the click ID back to the platform with the commission. Now the platform knows that click, keyword or audience bought.

## Time limits matter for affiliates

Affiliate sales often arrive days after the click, and platforms limit how late you can report:

- **Google Ads** keeps a gclid for 90 days. Conversions for older clicks can't be matched, and the conversion action's own window (1 to 90 days) can be shorter.

- **Meta's Conversions API** accepts events up to 7 days after they happened, so a sale reported by the network on day 9 is too late for Meta.

- **TikTok** matches click IDs within the attribution window set for the ad; check your account's attribution settings.

Practical consequence: report sales back when they are first reported, not only after approval, if the network's approval takes longer than the platform's limit. Background on windows is in [attribution windows](https://hoplytic.com/blog/attribution-windows).

## Sending them back, briefly

- **Google Ads**: create a conversion action for imports from clicks, then upload or schedule a file with Google Click ID, conversion name, time and value. See [Google Ads offline conversions](https://hoplytic.com/blog/google-ads-offline-conversions).

- **Microsoft Ads**: the same idea with an offline conversion goal and Microsoft Click ID. See [Microsoft Ads offline conversions](https://hoplytic.com/blog/microsoft-ads-offline-conversions).

- **Meta**: a server event with `fbc` built from the fbclid in Meta's format, `fb.1.<click time in milliseconds>.<fbclid>`. See [Meta Conversions API for affiliates](https://hoplytic.com/blog/meta-conversions-api-affiliate).

- **TikTok**: a server event carrying the ttclid. See [TikTok Events API for affiliates](https://hoplytic.com/blog/tiktok-events-api-affiliate).

## How click IDs get lost

- **Redirects that rebuild the URL** and drop unknown parameters. Test the full chain with the [redirect checker](https://hoplytic.com/tools/redirect-checker).

- **Landing pages** whose outbound affiliate link doesn't carry the ID from the page URL to the click.

- **Safari's Link Tracking Protection**, which removes known click IDs such as gclid, fbclid and msclkid from URLs in Private Browsing and in links opened from Mail and Messages. UTM parameters survive it.

- **Damaged values**: truncated to fit a database field, lowercased, or URL-decoded twice. A changed click ID is a useless one.

- **Wrong assumptions**: an fbclid on organic traffic, sent back as an ad conversion, won't match anything.

## Storing them properly

- **Keep the raw value** exactly as it arrived, in a text field long enough not to cut it. Click IDs vary in length and can include dashes and underscores.

- **Keep it as long as the upload window**, and longer than your offers' usual sale delay. A click deleted after 30 days can't be reported for a sale on day 45.

- **Store it once per click**, next to your own click ID, so the sale that comes back from the affiliate network can be joined to it.

- **Don't send it to the affiliate network** unless an offer asks for it. Networks only need your tracker's click ID.

## Click IDs and privacy

A click ID identifies a click, not a named person, but the platform can link it to the account that clicked. Don't combine it with email addresses or names in your own reports, and mention ad conversion tracking in your privacy policy. Your affiliate network never needs the platform's click ID; send it your tracker's click ID instead.

## In Hoplytic

gclid, gbraid, wbraid, msclkid, fbclid, ttclid and the other platform IDs are stored with each click automatically, and the site script carries them from your landing page to the affiliate click. Under [Send back](https://hoplytic.com/help/send-sales-to-ad-platforms), each sale is sent to Meta's Conversions API or TikTok's Events API within about 20 seconds of the network reporting it, and added to a private feed that Google Ads fetches on its schedule (gclid) or that you import into Microsoft Ads (msclkid). Every send uses the click ID that click arrived with.

![Setting up Send back in Hoplytic: choose the ad platform, follow the steps shown for it, pick when each sale is sent and what value is reported.](https://hoplytic.com/video/howto-send-back.gif)

*Choose the ad platform, then when to send each sale and its value.*

## Questions people ask

### What does gclid stand for?

Google Click Identifier. Google Ads adds it to your landing page URL when auto-tagging is on, and it ties a later conversion back to the exact ad click, keyword and campaign.

### Does fbclid mean the visitor clicked an ad?

No. Facebook and Instagram add fbclid to many outbound links, including organic posts. It shows the click came from Meta's apps, not that it was paid.

### Can I remove gclid or fbclid from my URLs?

You can, but then the platform can't match conversions to clicks. If you use a tracking link, let it store the ID and pass a clean URL on to the merchant instead.

### Why is gclid missing from some Google Ads clicks?

Auto-tagging may be off, a redirect may drop the parameter, iOS traffic may carry gbraid or wbraid instead, or Safari may have stripped it in Private Browsing or from a link opened in Mail or Messages.
