Cherry Seed

How do I protect click IDs like gclid and fbclid?

gclid fbclid click-ids server-side attribution capi safari

Quick Answer

Capture them server-side on the first request, before browsers and privacy tools can strip them. Click IDs such as gclid and fbclid arrive in the landing URL, but Safari strips them on cross-site navigation and cookie caps shorten how long a browser can hold them. The protection is to read the click ID at the very first server hit, persist it against the session or order, and later forward it through Google's and Meta's conversion APIs. Safari 26's always-on link-tracking parameter stripping makes server capture the only reliable option, not a nice-to-have.

Full Answer

Click identifiers are the linchpin of paid attribution: gclid tells Google which click led to a sale, and fbclid does the same for Meta. They arrive as URL parameters when someone clicks an ad, which feels durable but isn't. Safari treats them as cross-site link decoration and strips them on inbound navigation, and even when an ID survives the landing, ITP's short cookie lifetimes mean a browser often can't hold it across a multi-day purchase journey. So a browser-only setup loses exactly the clicks that converted slowly.

The defence is to grab the identifier the instant it arrives. An early server-side hook reads gclid, fbclid, and equivalents like ttclid from the request, then stores them server-side, tied to the session and copied onto the order at checkout. From that point the browser's behaviour is irrelevant, the ID is already on your infrastructure, beyond the reach of stripping or cookie expiry.

The payoff comes at conversion time. You send the stored click ID back to each platform through its server-side conversion API, Google's Data Manager/Ads API path and Meta's Conversions API, so the platform can credit the original click without depending on a third-party cookie. With Safari 26 enabling link-tracking parameter stripping for every user by default, this server capture is no longer an edge-case hardening step; it's the baseline for keeping paid attribution intact.

Sources

Programmatic Access

GET https://seresa.io/wp-json/cherry-tree-by-seresa/v1/seeds/769

Cite This Answer

Cherry Tree by Seresa - https://seresa.io/seed/utm-attribution/protect-utm-s6