Outbound link decoration
Adding an ID to a link's URL so the next site can read it and link the visit.
In one line
Can add an ID to a link so the next site can recognize your visit
Adding an ID to a link's URL so the next site can read it and link the visit.
Meta adds fbclid to outbound clicks; Google's linker adds _gl with first party cookie IDs valid for a short time (about 2 minutes). The next site turns the ID into its own cookie. Safari caps such cookies at 24 hours, Firefox and Brave strip known params.
What it can and can't do
What the user does: You click a link on a page that adds an ID to the web address
It can
- Add a code to the address of an outbound link
- Let the next site match the visit to the first
- Pass campaign details, such as which ad or email you came from
It cannot
- Follow you without a click on that link
- Be seen if you copy only the clean address
- Work when the browser removes known codes
- Name you; the code is only a label
Browser support
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 1 | 2008-12-11 | Any browser unless params are stripped |
| Edge | Supported | 1 | Not listed | Any browser unless params are stripped |
| Firefox | Supported | 1 | 2004-11-09 | Any browser unless params are stripped |
| Safari | Supported | 1 | 2003-06-23 | Any browser unless params are stripped |
| Safari on iPhone | Supported | 1 | 2007-06-29 | Any browser unless params are stripped |
| Chrome on Android | Supported | 1 | Not listed | Any browser unless params are stripped |
| Samsung Internet | Supported | 1 | 2013-04-27 | Any browser unless params are stripped |
How a site asks for it
| API | Link href with ?_gl=, ?fbclid=, ?gclid= or ?msclkid= |
| How access is granted | none |
| What the user sees | None |
| Needs a secure context (HTTPS) | No |
| Needs a user gesture | No |
| How long it lasts | Parameter valid for the click; resulting cookie 24 h (Safari) to 400 days |
| How to take it back | Clear site data, browser privacy settings |
| Inside an iframe | Not listed |
Data you get
What comes back: Decorated ID
Shape: string
How often: per click
No individual data fields. The signal is the access itself.
Technical limits
- Cannot read the other site's cookies
- Safari 24 h cap on script cookies after tracker decoration
- Firefox Query Parameter Stripping (102+) in ETP Strict and private windows
- Often stripped by privacy tools
The story
What it is
Adding an ID to the end of a link so the next site can recognise you.
For you
You click a link in a post or ad, and a code is added to the address. The next site reads it and starts to track you with its own cookie. Safari caps such cookies at a day.
For makers
Meta adds fbclid to outbound clicks, and Google adds _gl to link its own domains. The next site turns the ID into a cookie it controls. That makes tracking work after third party cookies are blocked.
Where you see it
| Type | Example | Apps |
|---|---|---|
| social | You click a link in a Facebook post. Meta adds fbclid so the news site can tell the click came from Facebook. | Facebook, Instagram |
| ads | A Google ad adds a gclid to the link, so the store can credit a sale to the exact ad. | Google Ads |
| analytics | A company with two domains adds _gl so Analytics sees one visitor and not two. | Google Analytics |
| games | A game portal adds an ID to links to an affiliate store, so a purchase is credited. | None named |
| shopping | An influencer link adds a code that tells a shop which creator brought you. | Amazon Associates |
| security | Firefox and Brave strip known IDs from links, which is how they fight the practice. | Firefox, Brave |
Risks
- Link IDs can leak when shared
- Defeated by some browsers
What the platform says
- Apple: Tracking prevention. WebKit says Safari limits cookies made from decorated links, since they can be used to follow people.
Good uses and abuse
Legitimate uses
- Cross-domain analytics, affiliate attribution
Known abuse
- Passing user IDs through URLs to evade partitioning
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 4 of 5 | How revealing the data is |
| Utility | 4 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | Not rated | Rough identifying entropy, when known |
History
- 2019-02, Safari 12.1: ITP 2.1 and 2.2 capped link decorated cookies
- 2022-06, Firefox 102: Query Parameter Stripping added
Related capabilities
Related
- Navigational tracking. Can pass an ID along when you move between sites by link or redirect
- Click ID and query parameter stripping. Can remove known tracking codes from links before the site sees them, in some modes
- Ad click IDs (gclid, fbclid, msclkid and more). Can tag your ad click so a later purchase links back to that exact ad
Sources
- WebKit Tracking Prevention
- MDN Firefox Query Parameter Stripping
- Google Analytics cross-domain linker
How well checked: Based on official documentation.