What is ttclid? The TikTok click ID in your URLs, explained
ttclid is TikTok's ad click ID. It lands in your URL, becomes a ttclid cookie on your domain, and only reaches TikTok again through user.ttclid.
ttclid (TikTok Click ID) is the parameter TikTok appends to your landing page URL when someone clicks an ad, as in https://www.example.com/landing?ttclid=E.C.P.v3fQ2R... (TikTok API for Business, accessed November 29, 2026). The TikTok Pixel stores it in a first-party cookie named ttclid. Events API 2.0 takes it back in the user.ttclid field. When the sale closes somewhere other than that page, someone has to store the value with the order.
ttclid (TikTok Click ID): “a tracking parameter appended to a landing page URL when you click on an ad on TikTok, helping TikTok to improve ad attribution and performance by associating your Click ID with a campaign” (TikTok Business Help Center, last updated September 2025, accessed November 29, 2026).
I wrote this entry with TikTok’s developer docs open next to it, read on November 29, 2026. Two details in them change how you store ttclid. The ID can run up to 1,000 characters. And in Events API 2.0, the ttclid field only applies to website events, so a sale you report as an offline or CRM event goes back to TikTok without the click.
Where does ttclid come from?
From the click. TikTok generates a unique ttclid when someone taps the ad and adds it to the end of the destination URL. The Help Center says this “auto-attachment does not impact other custom tracking parameters you may have enabled,” so your UTMs still arrive alongside it (see the UTM naming convention piece).
Three details in the docs change how you capture it:
- The page opens inside TikTok. The Events API 1.0 guide notes that the click-through URL “is loaded in TikTok webview” and that you need to capture
ttclidfrom the URL programmatically (TikTok API for Business). The first session happens in the app’s in-app browser, not in Safari or Chrome. - There’s a macro for hand-built URLs. TikTok’s Help Center guide for the Elevar integration says to add
&ttclid=__CLICKID__and that the macro “should be left exactly as it’s shown” (TikTok Business Help Center). - It’s long. “
ttclidcan be up to 1,000 characters long, so you need to ensure that you don’t truncate it on your server” (TikTok API for Business). A 255-character field, common in CRMs, either truncates the value or rejects the record, depending on the system; either way the click is lost.
TikTok doesn’t document what the E.C.P. prefix in every official example means, or how the ID is structured. Treat the value as opaque: store all of it, unchanged.
Where is ttclid stored after the click?
In up to three places, according to the “Send TikTok Click ID” page for Events API 2.0:
- In the URL itself. If your site keeps
ttclidin the URL from page to page and sends the full URL inpage.url, “the API backend will parse the Click ID if it detects the presence of attclidparameter.” - In the
ttclidcookie, set by the Pixel. With the Pixel installed, it parses the parameter from the landing page and stores the value “as a first-party cookie under your website domain. The cookie’s name is alsottclid.” - Wherever you put it. Without the Pixel, TikTok recommends parsing the parameter yourself and keeping it in a cookie or local storage with a “storage TTL (time-to-live) of 28 days or more,” refreshing it whenever a newer
ttclidshows up.
The same page says “it’s highly recommended to implement at least one of the above three options” (TikTok API for Business, accessed November 29, 2026).
The Help Center’s cookie table lists ttclid as a first-party cookie on your domain lasting “13 months from the last date it was used,” next to _ttp, the browser identifier the Pixel sets on every visit (TikTok Business Help Center, last updated July 2025). The cookie lifetime is not the click lifetime, which follows the attribution window.
How long is a ttclid valid?
As long as your account’s click-through attribution window. TikTok’s Events API 2.0 parameter reference says “the ttclid valid period is the same as your CTA window setting in Attribution Manager” (TikTok API for Business, accessed November 29, 2026). CTA here means click-through attribution, not a call-to-action button.
The click-through windows TikTok offers at the ad group level are 1, 7, 14 or 28 days (TikTok Business Help Center, last updated November 2026). That’s why the storage advice is 28 days or more: TikTok handles expiration on its side.
Segment’s TikTok Conversions destination docs say “the ttclid is valid for 7 days” (Twilio Segment, accessed November 29, 2026). TikTok publishes no fixed period and ties validity to the configured window.
How is ttclid different from gclid and fbclid?
All three are click IDs, one per ad platform, and they behave the same way: they land in the URL, become a cookie on your domain, and only get back to the platform if you send them.
ttclid | gclid | fbclid | |
|---|---|---|---|
| Platform | TikTok | Google Ads | Meta (Facebook and Instagram) |
| Added by | TikTok, on every click | Google Ads auto-tagging | Meta, on every click |
| Cookie on your domain | ttclid (TikTok Pixel) | _gcl_aw (Google tag) | _fbc (Meta Pixel) |
| Field you send it back in | user.ttclid, Events API 2.0 | gclid, conversion import | fbc, Conversions API |
| Documented format | Opaque, up to 1,000 characters | Opaque | fb.1.<ms>.<fbclid> |
| Documented restriction | Web events only (event_source = web) | No restriction by event type: also used in offline imports | Meta recommends it on every event |
Sources, all accessed November 29, 2026: TikTok API for Business, Google Ads Help on auto-tagging and Meta for Developers. The entries on what gclid is, what fbclid is and what gbraid is cover the Google and Meta columns in depth.
Where does ttclid get lost before the sale?
In five places. None of them shows up as an error in TikTok Ads Manager.
1. In a redirect. TikTok asks you to “hold on to the ttclid query parameter as the website redirects to different pages” (TikTok API for Business). Any redirect that drops the query string (a URL shortener, a misconfigured language or geo rule) wipes the value before the Pixel runs.
2. When the shopper switches browsers. Someone taps the ad, your Shopify store opens in TikTok’s in-app browser, they close the app and finish the purchase in Safari later. The ttclid cookie stayed behind in the in-app browser. For this case TikTok describes “cross-browser or device storage”: keep ttclid in your database until you can identify the person by account, email or phone, in a table such as ttclid<>email or ttclid<>external_id (TikTok API for Business).
3. When checkout finishes on another domain. The cookie lives on your domain. With a hosted payment page or a buy-now-pay-later redirect, the confirmation page that would fire the event may never load if the shopper doesn’t come back. That’s the redirect payment problem behind missing GA4 purchases, seen from TikTok’s side.
4. When the deal closes by phone or in the CRM. In Events API 2.0, the ttclid field is marked “For web events only.” Offline events (physical store) and CRM events accept SHA-256-hashed email and phone, and CRM events require the lead_id from TikTok’s own lead forms (TikTok API for Business). A sale that starts with a TikTok click, goes through your site and closes over the phone reaches TikTok without the click if you report it as an offline event.
5. On your own site. TikTok publishes the code to strip ttclid from the URL with history.replaceState and says to “add this before pixel tag” (TikTok API for Business). A “clean URL” script another team installed, running before capture, does the same damage silently.
On browsers: the strip list Mozilla ships to Firefox includes gclid, gbraid, wbraid and fbclid, and did not include ttclid when I checked it (Mozilla Remote Settings, November 29, 2026). I found no primary source from Safari or Brave on ttclid specifically.
How does ttclid get back to TikTok through the Events API?
Through user.ttclid, in an event sent to the /event/track/ endpoint with event_source set to web (TikTok API for Business, accessed November 29, 2026). The routine, in the order TikTok describes it:
- Capture
ttclidon the landing page, from the URL or from thettclidcookie the Pixel set. - Store the full value in a column that holds 1,000 characters, and overwrite it with the newest one on every new click.
- Send it with every event in the session, along with
ttp(the_ttpcookie value),ipanduser_agent, which TikTok recommends sending together. - Deduplicate. If the same event goes out through both the Pixel and the Events API,
event_idis required: TikTok usesevent_source_id,event_idandeventto drop the duplicate (TikTok API for Business).
If you’re still on Events API 1.0, the same value goes in context.ad.callback on the /pixel/track/ and /pixel/batch/ endpoints (TikTok API for Business).
TikTok’s Help Center lists the full set of match keys the Events API takes: Click ID, hashed email and phone, hashed external_id, IP address, user agent and the ttp first-party cookie (TikTok Business Help Center, last updated February 2025).
What is ttclid not?
It isn’t a person identifier. It identifies a click, and the same person generates a new ttclid on every click.
It isn’t a UTM. It carries no readable campaign name; TikTok resolves the click on its side.
It isn’t _ttp. _ttp identifies the browser on any visit, ad or no ad.
It isn’t attribution. It’s the key that lets TikTok attribute under its own model. Google and Meta may be claiming the same order at the same time, which is how reported ROAS ends up exceeding actual revenue.
When does this start to matter for a store?
When TikTok becomes a real line in the media budget and a meaningful share of revenue closes away from the order confirmation page: hosted payment redirects, phone orders, sales-assisted deals, invoices. In those cases the Pixel sees the click and never sees the sale, and TikTok’s reporting undercounts the campaign that brought the customer in.
The fix is a data-modeling one. ttclid needs to be a column on the order record, stored whole, captured on the landing page and carried through to the order system or CRM. Precisian collects TikTok data automatically into each client’s data lake, isolated per client on our infrastructure, and the rule for which click gets the sale when ttclid, gclid and fbc all arrive on the same order becomes a versioned definition in the semantic layer instead of logic buried in an automation.
What does this article not cover?
It doesn’t explain the E.C.P. prefix or how ttclid is structured, because TikTok doesn’t document either.
It doesn’t confirm whether Safari or Brave strip ttclid. Testing takes two minutes: click your own ad, open the page in the browser and check whether the parameter arrived.
It doesn’t cover app events, which are allowlist-only in Events API 2.0, or attribution window settings in Ads Manager.
If you buy TikTok ads and a share of your sales closes through a hosted checkout, a phone call or an invoice, the first step is to check whether ttclid reaches the order record intact or dies in the in-app browser’s cookie. What changed, what broke and what Precisian’s research measured lands every two weeks, on Thursdays, in Precisian’s newsletter.