Google Ads: gclid vs gbraid vs wbraid and dclid
Google can issue different click identifiers depending on the ad environment and privacy constraints. Capture whichever eligible identifier arrives instead of making gclid a required field.
The main implementation trap is storage format. Three identifiers use containers whose final dot-separated segment is extracted, while gbraid uses a different wrapper. Google documents the cookie names but does not publish which identifier each cookie contains, so validate the stored value before uploading Google Ads offline conversions.
gclidClick IDgbraidClick IDwbraidClick IDdclidClick ID_gcl_auBrowser IDgbraid— The one identifier whose browser cookie uses the server-side format. Parsing _gcl_ag the way you parse _gcl_aw returns a mangled value, not an empty one, which is why this tends to ship unnoticed.dclid— Belongs to Campaign Manager 360 and DV360, not Google Ads. The Google Ads API will not accept it — ClickConversion takes gclid, gbraid or wbraid only._gcl_au— Written by the Google tag for every visitor, not just ad clicks. It is not a click ID and carries no campaign information.
Sources: Google Ads — GCLID definition · Google Tag Manager — Conversion Linker · Google Ads API — upload offline conversions