Skip to content

ttclid

ttclid is the TikTok Click ID, a parameter TikTok adds to the landing page URL when someone clicks a TikTok ad. TikTok lists a first-party cookie named ttclid on your website's domain, on by default with the TikTok Pixel. Events sent through the Pixel or Events API with the click ID let TikTok match the conversion to that click.

By TagALead. Last checked 1 December 2026.

Facts

Platform
TikTok Ads [1]
URL parameter
ttclid [1]
Cookie the TagALead template reads
ttclid (TagALead template)
Cookie written by
A first-party cookie on your website's domain, on by default with the TikTok Pixel [2]
Cookie lifetime
13 months from the last time it was used [2]
Where it travels in the conversion request
Events API: context.ad.callback (TikTok’s mParticle guide). Pixel request: Not documented by TikTok. Seen as context.ad.callback: "<click ID>.<time in ms>" in the JSON POST body to analytics.tiktok.com/api/v2/pixel in a request captured 1 December 2026. [5]
When ad_storage is denied
Not documented by TikTok. [3]
Common ways it gets lost
First-party cookies turned off in pixel settings, cookies disabled after a visitor declines consent [3]

How ttclid gets onto the page

When someone clicks a TikTok ad, TikTok appends a ttclid parameter to the landing page URL, as in demo.mywebsite.com?a=b&ttclid=_CLICKID_ (About TikTok Click ID). Each click ID is unique.

The parameter is in the landing page URL only, so a later page does not have it unless something stores it. TikTok lists a first-party cookie named ttclid on your website's domain, and its first-party cookies are on by default with the TikTok Pixel.

TikTok gives the ttclid cookie a lifetime of 13 months from the last time it was used. Each click ID follows the CTA window set in Attribution Manager. That page gives no length for the window.

When an event sent through the Pixel or the Events API carries a click ID, TikTok matches it to your actions on TikTok and uses the match for attribution, ad delivery and measurement.

TikTok's mParticle guide maps the click ID to the Events API field context.ad.callback, marked not required. None of the TikTok pages cited here names the field that carries it in the Pixel's own request.

In a Pixel request we captured on 1 December 2026, it travelled in the POST body to analytics.tiktok.com/api/v2/pixel, as context.ad.callback. The value was the click ID, a period and a time stamp in milliseconds.

Where ttclid goes missing

Each cause below comes with a way to spot it.

First-party cookies turned off

A pixel can run with third-party cookies only. Once first-party cookies are off, no new ones are set, so no new ttclid cookie is written. Existing ones keep working until they expire.

TikTok warns that this setting will not get the pixel's full matching and attribution.

To spot it, open the pixel's settings in Events Manager and check the first-party cookie toggle. Web Diagnostics also flags a pixel whose first-party cookie is not enabled.

Code or a redirect that strips the parameter

TikTok notes that you can remove the click ID from landing page URLs in code, the way you manage other query parameters. A redirect that drops the query string also removes it from the landing page URL.

To spot it, open the ad's final URL with ?ttclid=E.C.P.TEST123 added and read the address bar once the page has loaded. If the parameter is gone, so is the click.

A form on another domain

The ttclid cookie lives on your website's domain. A form or booking page on a vendor's domain, linked or in an iframe, cannot read it, so a conversion that fires there has no click ID.

To spot it, check which domain the thank-you event fires on. If it is the vendor's, the ttclid on yours never reaches it.

Where consent is required, TikTok asks sites to disable the setting and usage of cookies when a person declines. It names three tools for this: a tag manager, a third-party consent management platform and TikTok's Pixel Consent Mode.

TikTok does not document how its pixel responds to Google's ad_storage signal. Its cookie guide points GTM users to Google's Consent Mode, which shapes how Google tags behave.

When a site uses TikTok's Pixel Consent Mode and a visitor revokes consent, TikTok says it stops future data collection and deletes the historical website data it holds for that person.

To spot it, read the consent state of the conversion event in GTM Preview, and check whether the TikTok Pixel tag fired.

How to check ttclid by hand

Follow one test click ID from the URL to the cookie and the request. TikTok's mParticle guide says a correctly formatted click ID starts with E.C.P and asks you not to send dummy values.

Where you can, follow a real TikTok ad click through these steps. A made-up value such as E.C.P.TEST123 is still a dummy value. In our capture, the Pixel sent the made-up value to TikTok on page load, inside the page address in the request body.

  1. Open the landing page with ?ttclid=E.C.P.TEST123 at the end of the URL, or &ttclid=E.C.P.TEST123 when it already has a query string. Check that the parameter is still in the address bar after the page loads.
  2. In Chrome DevTools, open Application, then Cookies, and pick your domain. Find ttclid. If it is missing, causes include a pixel that did not run, first-party cookies turned off or declined consent.
  3. Read the cookie's value. TikTok does not document its format, so check that TEST123 appears in it. In our capture, opened with ttclid=TEST123, it read TEST123.1796132087677: the click ID, a period and a time in milliseconds.
  4. Open DevTools, Network, and submit the test conversion. Filter for tiktok to list the pixel's requests.
  5. Open each request and search its URL and payload for TEST123. TikTok does not document the field name in the Pixel's request. In our capture it was context.ad.callback, in the POST body.

In TagALead

The template reads ttclid from the page URL and records the time it read it there, or else from the ttclid cookie, with no time, sending the cookie value as stored, click ID plus a millisecond suffix. A lead with no click ID is flagged as one that cannot be matched to an ad click. When ad_storage is denied, the template drops the click ID and still sends the lead ID.

See one lead matched to its ad conversion

Sources

  1. TikTok Ads Manager Help: About TikTok Click ID. Checked 1 December 2026.
  2. TikTok For Business: Use cookies with TikTok Pixel. Checked 1 December 2026.
  3. TikTok Ads Manager Help: How to use cookies with TikTok Pixel. Checked 1 December 2026.
  4. TikTok Ads Manager Help: How to manage Web Diagnostics in TikTok Events Manager. Checked 1 December 2026.
  5. TikTok Ads Manager Help: How to set up a secure data connection with TikTok through mParticle. Checked 1 December 2026.