In short
- Examples: gclid, gbraid and wbraid (Google Ads), fbclid (Meta), ttclid (TikTok), msclkid (Microsoft Advertising), li_fat_id (LinkedIn)
- Lives in the landing page URL, then in a first-party cookie the pixel or your tracking writes. Safari caps cookies written by scripts at 7 days, on 24% of web traffic
- Counts within the platform's window: Google Ads and Microsoft Advertising take conversions up to 90 days after the click, TikTok up to 28, Meta's ads reporting up to 7
- Gets stripped by Safari's Link Tracking Protection in Private Browsing, Mail and Messages (gclid, fbclid, msclkid among others) and by uBlock Origin's default privacy list (gclid, gbraid, wbraid, fbclid, msclkid, ttclid)
- Is not a UTM parameter: a click ID identifies one click for the platform, UTMs describe the campaign for your own analytics
What a click ID is
When someone clicks an ad, the platform sends them to your landing page with a parameter appended to the URL, for example https://shop.example.com/serum?gclid=Cj0KCQiA…. The value is unique to that click. The platform’s pixel, or your own tracking, reads it from the URL and keeps it, usually in a first-party cookie. When the visitor converts, the click ID goes back to the platform with the conversion: through the pixel, through a server-side API or in an upload. The platform then knows which click, ad and campaign led to the sale.
A click ID identifies one click, not a person or a campaign. It means nothing outside the platform that issued it and helps only while it is stored where the conversion can reach it.
The click IDs, platform by platform
| Parameter | Platform | Counts for |
|---|---|---|
gclid | Google Ads | 1 to 90 days, 30 by default |
gbraid, wbraid | Google Ads, iOS traffic | As the gclid |
fbclid | Meta | 1 or 7 days after the click |
ttclid | TikTok | 1, 7, 14 or 28 days |
msclkid | Microsoft Advertising | Up to 90 days |
li_fat_id | Up to 90 days, cookie 30 days |
gclid (Google Ads)
The Google Click Identifier is what auto-tagging appends to the landing page URL. The Google tag keeps it in the first-party _gcl_aw cookie for 90 days and reports it with the conversion. Google counts conversions within the conversion action’s click-through window and imports uploaded ones up to 90 days after the click, 63 for enhanced conversions for leads.
gbraid and wbraid (Google Ads on iOS)
Google added both in 2021, when Apple’s App Tracking Transparency took effect and Google stopped sending the gclid for iOS 14 traffic from ads in some of its apps. wbraid marks clicks tied to web conversions, such as an ad in an iOS app that opens your website, and gbraid clicks tied to app conversions (Google Ads API). Uploads take them like a gclid, with one catch: when a conversion carries a braid without a gclid, Google ignores its hashed email address and phone number (upload guide).
fbclid (Meta)
Meta passes fbclid with the URL of your website when someone clicks an ad on Facebook or Instagram (Meta). The Meta Pixel stores it in the _fbc cookie as fb.1.<creation time>.<fbclid>, and server events send that value as fbc. Ads Manager credits a conversion to the click within the ad set’s attribution setting, 1 or 7 days after the click, and the Conversions API accepts events up to 7 days old.
ttclid (TikTok)
ttclid is TikTok’s click ID: a tracking parameter TikTok appends to your landing page URL when someone clicks a TikTok ad (TikTok). TikTok adds it automatically. The TikTok Pixel stores it in a first-party cookie also named ttclid, and the Events API sends it as user.ttclid, so TikTok can match a conversion to the click. Each click ID counts within the click-through window of your attribution settings, 1, 7, 14 or 28 days, and TikTok recommends keeping it at least 28 days (TikTok for developers).
msclkid (Microsoft Advertising)
msclkid is the Microsoft Click ID that auto-tagging, on by default, adds to the landing page URL (Microsoft Advertising). The UET tag keeps it in the first-party _uetmsclkid cookie for 90 days, and offline conversions can be imported up to 90 days after the last click.
li_fat_id (LinkedIn)
li_fat_id, the LinkedIn First-Party Ad Tracking ID, is the click ID LinkedIn appends to landing page URLs when enhanced conversion tracking is on, the default for new Insight Tags (LinkedIn). The Insight Tag keeps it in a first-party cookie for 30 days after the latest ad click, LinkedIn’s Conversions API takes it as a match key, and Campaign Manager’s default conversion window is 90 days after a click and 90 after a view.
Click IDs vs UTM parameters
A paid link often carries a click ID, UTM parameters and, with adtribute, matching parameters. Each answers a different question:
| Click ID | UTM parameters | adtribute’s matching parameters | |
|---|---|---|---|
| Example | gclid=Cj0KCQiA… | utm_source=google&utm_campaign=autumn-sale | adb_ad_source=google&adb_campaign_id={campaignid} |
| Set by | The platform, per click | You, per link | The platform, from placeholders you add once |
| Identifies | One click | The campaign, in words you choose | The exact campaign and ad, by their IDs |
| Read by | The platform that issued it | Your analytics | adtribute |
When an ID shows up in a UTM field, a link template has mixed these jobs; the UTM parameter entry’s section on why IDs end up in the wrong field shows where to fix it. Names in UTMs break when a campaign is renamed; IDs don’t, which is why adtribute matches clicks by ID and reads the names from the platform’s data.
What Safari and ad blockers do to click IDs
Safari’s Link Tracking Protection removes them from the URL in Private Browsing and in links opened from Mail and Messages since Safari 17 in 2023 (Apple), and everywhere for users who turn on Advanced Tracking and Fingerprinting Protection for all browsing. Apple publishes no list. In tests, Safari removed gclid, fbclid, msclkid and twclid and kept ttclid, li_fat_id and the UTM parameters (ctrldigital, August 2025). In normal browsing it removed none by default (PrivacyTests.org, Safari 26.6, October 2026).
Safari’s ITP limits the cookie that keeps them. A cookie written by a script, which is how pixels store click IDs, expires after 7 days at most, in every browser on iPhone and iPad and in Safari on Mac: 24% of web traffic. After a click from a domain Safari classifies as a cross-site tracker, it is 24 hours (ITP 2.2).
uBlock Origin removes them before the page loads. When we checked its default lists on 9 November 2026, its own privacy list stripped gclid, gbraid, wbraid, fbclid, msclkid and ttclid from URLs, while LinkedIn’s li_fat_id and the click IDs of Taboola, Outbrain and affiliate networks stayed.
What that does to attribution, in one example. A visitor clicks a Google ad on an iPhone on Monday and comes back eleven days later to buy for €100 net. The Google tag stored the gclid in a cookie written by script, which Safari kept seven days at most, so at the purchase no click ID is left in the browser. Google has to rely on other signals, such as the hashed email address of enhanced conversions, and your own attribution loses the click too, unless your tracking kept it on its own server.
How adtribute uses click IDs
The marketing attribution platform adtribute matches a click to its campaign and ad with its own URL parameters, which the ad platforms fill with IDs: adb_ad_source names the platform, adb_campaign_id and adb_ad_id carry the IDs of the campaign and the ad. According to the docs:
- Google Ads gets a tracking template with these parameters plus
adb_click_id={gclid}, which backs up thegclidfor the conversion upload. Clicks from before the template carry only thegclidand show under “Wrong adtribute Matching Parameters”, because they can’t be tied to a campaign and ad. - Microsoft Ads, TikTok, Taboola and Outbrain templates also pass the platform’s click ID in
adb_click_id. Taboola’s conversion upload needs nothing but Taboola’s click ID,tblci. - The Google Ads conversion upload sends a conversion with the Google click ID only if the customer’s last Google Ads click is from roughly the last week. Without one, Google can tie the conversion to an ad only by the hashed email addresses and phone numbers that go with every conversion. That match needs enhanced conversions, which the enhanced conversions entry’s section on adtribute covers.
FAQ about Click IDs
What is a click ID?
A click ID is a unique value an ad platform appends to your landing page URL when someone clicks an ad, such as gclid for Google Ads or fbclid for Meta. Sent back with the conversion, it ties the conversion to that exact click, ad and campaign.
What is ttclid?
ttclid is TikTok’s click ID, a parameter TikTok appends to your landing page URL when someone clicks a TikTok ad. The TikTok Pixel stores it in a first-party cookie named ttclid, and the Events API sends it back with conversions, so TikTok can tie each conversion to its click within your click-through window of up to 28 days.
What is the difference between gclid, gbraid and wbraid?
All three are Google Ads click IDs. Auto-tagging adds gclid. Google introduced wbraid and gbraid in 2021 for iOS traffic, after Apple’s App Tracking Transparency: wbraid for clicks tied to web conversions, gbraid for clicks tied to app conversions.
Why are IDs in the wrong UTM field?
Because a link template put an ID placeholder into a field meant for names; where to fix it is in the UTM parameter entry’s section on why IDs end up in the wrong field. Click IDs never belong in UTMs at all, since the platform adds them to the link itself.
Does Safari remove click IDs?
In Private Browsing, in links from Mail and Messages, and for users who turn on Advanced Tracking and Fingerprinting Protection everywhere, yes: since Safari 17 it removes known tracking parameters such as gclid, fbclid and msclkid. In normal browsing it leaves them by default, but the cookies that store them last 7 days at most.
How long is a gclid valid?
Up to 90 days. Google counts conversions within the conversion action’s click-through window of 1 to 90 days, 30 by default, and imports uploads up to 90 days after the click. The _gcl_aw cookie that stores it lasts 90 days, in Safari 7 at most.