Skip to Content
Platform.Ontology

Outbound link decoration

Adding an ID to a link's URL so the next site can read it and link the visit.

Used to track youTracking across apps and sitesAfter leavingWeb browsersAfter you leave the siteBefore you 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

BrowserStatusFirst versionReleasedNote
ChromeSupported12008-12-11Any browser unless params are stripped
EdgeSupported1Not listedAny browser unless params are stripped
FirefoxSupported12004-11-09Any browser unless params are stripped
SafariSupported12003-06-23Any browser unless params are stripped
Safari on iPhoneSupported12007-06-29Any browser unless params are stripped
Chrome on AndroidSupported1Not listedAny browser unless params are stripped
Samsung InternetSupported12013-04-27Any browser unless params are stripped

How a site asks for it

APILink href with ?_gl=, ?fbclid=, ?gclid= or ?msclkid=
How access is grantednone
What the user seesNone
Needs a secure context (HTTPS)No
Needs a user gestureNo
How long it lastsParameter valid for the click; resulting cookie 24 h (Safari) to 400 days
How to take it backClear site data, browser privacy settings
Inside an iframeNot 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

TypeExampleApps
socialYou click a link in a Facebook post. Meta adds fbclid so the news site can tell the click came from Facebook.Facebook, Instagram
adsA Google ad adds a gclid to the link, so the store can credit a sale to the exact ad.Google Ads
analyticsA company with two domains adds _gl so Analytics sees one visitor and not two.Google Analytics
gamesA game portal adds an ID to links to an affiliate store, so a purchase is credited.None named
shoppingAn influencer link adds a code that tells a shop which creator brought you.Amazon Associates
securityFirefox 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

ScoreValueMeaning
Sensitivity4 of 5How revealing the data is
Utility4 of 5How useful it is to honest apps
Friction0 of 5How much the user has to do
Fingerprint bitsNot ratedRough 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

Sources

How well checked: Based on official documentation.

On this page