fbclid, gclid, ttclid and other click IDs explained

Updated · 6 min read

Short answer

A click ID is a unique token an ad platform appends to your URL when someone clicks an ad, such as gclid for Google, fbclid for Meta, ttclid for TikTok and msclkid for Microsoft. It lets the platform tie a later conversion back to that exact click. Capture it on landing, store it with a timestamp on the lead record, and send it back before the platform's upload window closes.

Open a URL from an ad and you will often see a long string tacked on the end: ?gclid=Cj0KCQ... or ?fbclid=IwAR.... Most people delete it when sharing a link and never think about it again. For anyone selling on calls or closing deals weeks after the click, that string is the most valuable piece of tracking data you receive. This post explains what each major click ID is, how long it remains useful, and how to keep it attached to the person who clicked.

What a click ID is, and what it is not

A click ID is a token generated by the ad platform for one click on one ad. The platform keeps a record of which campaign, ad, keyword and time that token belongs to. When you later send the token back with a conversion, the platform can credit that exact click without needing cookies or a matching email.

A click ID is not a user ID. Two clicks by the same person produce two different tokens. It also says nothing readable about the campaign to you; a gclid is opaque. That is why UTM parameters still matter. UTMs tell your own systems where the visit came from, and the click ID tells the platform which click to credit. You want both.

The common click IDs

Parameter Platform Main use Notes
gclid Google Ads Conversion tags and offline conversion import Added automatically when auto-tagging is on
gbraid / wbraid Google Ads Measuring some iOS app and web traffic in privacy-restricted contexts Can appear instead of gclid; store them too
fbclid Meta (Facebook, Instagram) Feeds the _fbc cookie used for matching pixel and Conversions API events Also added to some organic link clicks, not only ads
ttclid TikTok Pixel and Events API matching Added to ad clicks when the platform setting is enabled
msclkid Microsoft Advertising UET conversion tracking and offline import Requires auto-tagging in the account
li_fat_id LinkedIn Matching for LinkedIn conversion tracking Appears on some ad clicks; check current LinkedIn docs
twclid, ScCid, epik X, Snapchat, Pinterest Conversion matching on each platform Naming and use change more often; confirm before relying on them

Platforms add, rename and retire these from time to time, and some appear only when a setting is switched on. Check each account's current tracking settings before assuming a token will arrive.

One trap with fbclid: Meta adds it to many outbound link clicks, including organic posts. Its presence alone does not prove a paid click. Your UTMs or the platform's own reporting answer that question.

How long a click ID stays useful

The token itself does not expire in your database. What expires is the platform's willingness to accept it. Each platform has a limit on how long after the click a conversion can be attributed or uploaded. For Google Ads offline conversion imports, that limit has commonly been 90 days from the click, and Meta's pixel has typically stored the _fbc cookie for a similar period. Treat both as figures to verify in current documentation, since they have changed before and may differ by conversion type.

Browsers add a second clock. A click ID kept only in a browser cookie can be deleted much sooner than the platform limit, because some browsers cap the lifetime of cookies set by scripts. That is a strong argument for writing the click ID to your own database the moment a lead is created, rather than relying on the cookie still being there when the sale closes.

Storing click IDs with every lead

The pattern is the same whatever your stack:

  1. Read on landing. On the first page load, read every known click ID and UTM from the URL.
  2. Persist locally. Save them to a first-party cookie or local storage with the time of capture, so a visitor who browses three pages before converting still has them.
  3. Pass with the form. Copy them into hidden fields on every lead form and booking embed.
  4. Store on the record. Give each click ID its own field in the CRM, plus a capture timestamp. One field per platform is easier to export than a single combined text field.
  5. Do not overwrite blindly. Decide whether a new click replaces the stored one or is kept alongside it. For upload purposes, the most recent click before conversion is what most platforms expect.

If the IDs never reach the landing page in the first place, the cause is usually a redirect, covered in how redirects and link shorteners strip UTMs and click IDs.

Worked example: an executive career coach in Glasgow

Say a coach who works with senior managers runs Google, Meta and a small Microsoft campaign. Prospects book a free discovery call, and a few go on to a £3,200 coaching package, often weeks later after a second conversation.

Last quarter there were 64 discovery calls. After adding hidden fields and CRM properties, the coach can see which records carry a click ID:

That is 39 of 64 calls, or 61%, linked to a specific ad click.

Of the 22 Google-sourced calls, 7 became clients. Their signing dates fell between 12 and 104 days after the original click. Six of the seven were within a 90-day upload window and could be imported as conversions with their £3,200 value, giving Google £19,200 of closed revenue to learn from. The seventh, at 104 days, would be outside that window. That one sale still counts in the coach's own revenue report; it just cannot be sent back to the platform.

Before the change, none of these seven could be uploaded. Google only knew about discovery call bookings, so it optimized toward people who book calls, not people who buy. The sending side is covered in Google Ads offline conversion import, and the Google-specific causes of missing IDs are in what is GCLID and why does it go missing.

When a lead has no click ID

A quarter to half of leads may arrive without one, and that is normal. Organic visits, referrals and returning visitors never had one. For those, platforms can still match on hashed email or phone where you send them with consent, and you can still join the lead to a campaign through UTMs. The join logic for leads that match nothing is covered in matching CRM contacts to ads.

FAQ

Is it safe to store click IDs in my CRM?

Click IDs are generally treated as online identifiers tied to a person once stored on their record, so handle them under the same privacy rules as other personal data. Check with a privacy lawyer on what your consent notice must cover.

Why does my lead have both a gclid and an fbclid?

The person clicked a Google ad and a Meta ad at different times, and both were captured. Keep both with timestamps; each platform should only receive its own ID.

Can I remove fbclid from URLs to keep them clean?

You can strip it from the visible address after your script has read and stored it. Removing it before capture means Meta matching loses that click.

Do click IDs work if the visitor converts on another device?

Only if the click ID was stored on a record you can link to the later conversion, such as a lead record found by email. The browser cookie on the first device does not travel.

See your own numbers with the source attached

Adtrix connects Meta and Google Ads read-only, shows each ad next to its spend and reported results, and keeps CRM leads and booked calls in their own lane.

Start a 14-day trial See pricing