Skip to content

Client ID

The Client ID (cid) is a 14-character alphanumeric string that anonymously identifies a visitor. It answers who — as opposed to the Click ID, which answers which action.

It is set as a first-party cookie by the Tracking Tag when a visitor lands, or minted server-side via the collect endpoint when the Tag can’t run (Facebook Lead Ads, offline conversions, headless checkouts, or a contact created directly inside a CRM).

To raise Event Match Quality, AnyTrack sends the Client ID back to each ad platform as its matching identifier — external_id for Facebook Ads and TikTok, user_id for Google Ads. In server-side setups the Client ID also forms the second half of the Click ID: {propertyid}{cid}.

When the Click ID can’t reach a destination (such as a CRM), you alias the visitor with an External ID (refId) — an email, phone, or your own customer ID. The External ID is something you control; the Client ID is the anonymous cookie AnyTrack sets.

Frequently asked questions

FAQ was last reviewed on 2026-06-23

What is the difference between the Client ID and the Click ID?
The Client ID (cid) is a cookie that identifies the visitor. The Click ID identifies an action that visitor performed, and it is the value that travels between platforms. Every event attribute attaches to the Click ID, not the Client ID.