Click ID Test Fixtures

Test click ID extraction from URL parameters, cookies, localStorage, and sessionStorage with real-world formats

How Click ID Extraction Works

Current Browser Storage State

Source Name Raw Value Extracted Value Wire Code

Quick Scenarios

Click a scenario to set up realistic click ID data from that platform. This simulates a user who clicked an ad and has the platform's cookies set.

Google Ads Landing

User clicked a Google Search ad and landed on the site. URL has gclid, browser has _gcl_aw and _ga cookies.
?gclid=... _gcl_aw _gcl_au _ga _gid

Google - Return Visit

User returns to site after initial Google Ads click. No URL params, but cookies persist.
_gcl_aw _gcl_au _ga _gid

TikTok Ads Landing

User clicked a TikTok ad. URL has ttclid, browser has _ttp cookie.
?ttclid=... _ttp

Microsoft Ads Landing

User clicked a Bing/Microsoft ad. URL has msclkid, browser has _uetmsclkid cookie.
?msclkid=... _uetmsclkid

All Platforms (Edge Case)

Simulate a user with cookies from multiple platforms - tests precedence rules.
_gcl_aw _ga _fbp _ttp

Clear All & Direct Visit

Clear all cookies and storage, reload page with no parameters (direct visit).
Clear cookies Clear storage No params

Manual Controls

Manually set individual cookies or storage values with realistic formats.

Google Analytics / Ads

Format: GCL.{timestamp}.{gclid} - Extraction: last segment (gclid)
Format: 1.1.{id}.{timestamp} - Extraction: full value
Format: GA1.2.{client_id}.{timestamp} - Extraction: last 2 segments
Format: GA1.2.{session_id} - Extraction: last segment

Facebook / Meta

Format: fb.1.{timestamp}.{random_id} - Extraction: full value
Format: fb.1.{timestamp}.{fbclid} - Extraction: full value

TikTok

Format: Plain string - Extraction: full value

Microsoft / Bing

Format: Plain string - Extraction: full value

URL Parameters

Web Storage (Future)

Note: localStorage and sessionStorage support for click IDs is planned for future implementation. The SDK currently reads from URL parameters and cookies.

Captured Click IDs (from Pageview Event)

These are the click IDs captured by the SDK in the cids field of the pageview event.

URL Parameters (Priority 1)
Loading...-
Captured in Event (cids)
Loading...-

Raw Pageview Event

Waiting for pageview event...

Cookie Format Reference

Real-world formats used by advertising platforms for click ID cookies.

Cookie Platform Format Extraction Pattern Wire Code
_gcl_aw Google Ads GCL.{timestamp}.{gclid} Last segment (gclid) gc
_gcl_au Google Ads 1.1.{id} Full value gclau
_ga Google Analytics GA1.2.{client_id}.{ts} Last 2 segments _ga
_gid Google Analytics GA1.2.{session_id} Last segment _gid
_fbp Facebook Pixel fb.1.{timestamp}.{id} Full value _fbp
_fbc Facebook Click fb.1.{timestamp}.{fbclid} Full value _fbc
_ttp TikTok Pixel Plain string Full value _ttp
_uetmsclkid Microsoft UET Plain string Full value _uetms