What a click ID is
When someone clicks an ad, the network appends a parameter to the URL. Google Ads calls this auto-tagging: a click on an ad for example.com lands on a URL like example.com/?gclid=123xyz. The value identifies one click (Google sometimes creates it at the impression). When a conversion is reported back, the network uses the ID to find the click, campaign and keyword behind it.
Unlike UTM parameters, you don't write click IDs. The network adds them, and the value means nothing to your analytics on its own. What it does tell you is which network the visit came from, even when the referrer is missing.
Common click IDs
| Parameter | Network |
|---|---|
gclid | Google Ads |
gbraid, wbraid | Google Ads, sent instead of gclid on some clicks |
fbclid | Meta (Facebook and Instagram), on ads and on many ordinary outbound links |
msclkid | Microsoft Advertising |
li_fat_id | |
ttclid | TikTok |
twclid | X (Twitter) |
fbclid needs care. Facebook adds it to links people click in organic posts too, so a visit with fbclid is not proof that you paid for it.
How to use click IDs
- Keep auto-tagging on in your ad accounts. It costs nothing and feeds the network's own conversion tracking.
- Add UTM tags as well. A click ID tells you the network; UTM tags tell you the campaign, ad group and ad in words your own reports can read.
- Make sure redirects keep the query string, or the click ID and tags are lost before your page loads.
- Treat click-ID-only visits as a separate bucket when you report paid traffic, and check how many are organic shares.
Common mistakes
- Counting every
fbclidvisit as paid. Organic Facebook shares carry it too. - Relying on click IDs instead of UTM tags. Without the network's API, the ID can't tell you which campaign the click belonged to.
- Storing raw click IDs in places they don't need to be. They identify a single click, so treat them like personal data.
- Stripping query strings in a CDN, redirect or link shortener, which silently breaks both click IDs and UTM tags.
How MetricRaven handles click IDs
The MetricRaven script checks the landing URL for gclid, gbraid, wbraid, fbclid, msclkid, li_fat_id, ttclid and twclid. It sends only the network the ID belongs to, never the ID itself.
- Any visit with a click ID goes into the Paid channel, the first channel rule MetricRaven applies.
- A visit with a click ID and no referrer or UTM source shows as
google ads,meta adsand so on in the Source column. - Traffic → Acquisition → Campaign → Ad click IDs lists visits and revenue by ad network, which catches ad clicks that arrived without UTM tags.
- With Meta Ads or Google Ads connected, click-ID visits that match no synced campaign appear on their own unattributed line, outside spend, revenue and ROAS totals, because they may include organic shares.
See Campaign & referral links for the full channel rules.
Questions
- What is gclid?
- gclid is the Google Click Identifier. Google Ads adds it to your landing URL when auto-tagging is on, so Google can tie a later conversion back to the click, campaign and keyword.
- What is fbclid in a URL?
- fbclid is a click ID Meta adds to links clicked on Facebook and Instagram. It appears on ad clicks and on many organic link clicks, so it shows the visit came from Meta but not that it was paid.
- Can I remove click IDs from my URLs?
- You can strip them after the page has loaded, but your ad network uses them to match conversions. Keep them on the landing URL and let your analytics read what it needs first.
- Do I still need UTM tags if I have click IDs?
- Yes. A click ID only names the network in your own analytics. UTM tags carry the campaign, ad group and ad, which you need to compare campaigns by revenue.