Connecting Gravity Forms to TikTok Events API
Gravity Forms stores the entry in your own WordPress database, which makes it one of the easier sources to join correctly. TikTok's audience skews to exactly the browsers and app contexts where browser-side tracking performs worst. The join between them succeeds or fails on one thing: whether the ttclid reaches the Gravity Forms entry before the conversion happens, because TikTok can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Gravity Forms to TikTok: save the ttclid on landing, not on submit
Copy ttclid into a long-lived first-party cookie on landing and read it, plus _ttp, from the request in gform_after_submission instead of relying on cached hidden fields. Send SubmitForm with hashed email and phone and an event_id generated in the browser at form load, reused by the pixel on confirmation. Don't fire on multi-page form page changes.
TikTok ad clicks land with ttclid on the URL, and a cached page means the dynamic-population hidden field will usually be empty. Do not try to make dynamic population work here. A small script on landing should copy the ttclid into a first-party cookie with a long expiry, and gform_after_submission reads that cookie from the request when the entry is saved. TikTok's own _ttp cookie arrives the same way and should be sent too.
The bigger loss is the gap between landing and submitting. TikTok users often open a site in the in-app browser, leave, and come back later through a search or a typed URL in their regular browser, and the cookies from the in-app browser are not there. That is why the form's email and phone fields matter more for TikTok than for most destinations: hash them and send them with every SubmitForm event so the fallback match exists.
Send SubmitForm with event_id from a hidden field generated in the browser when the form loads, and fire the pixel event with the same value on confirmation. Multi-page Gravity Forms only submit on the last page, so do not fire the pixel on page changes; partial entries are not leads, and TikTok's optimization should not see them.
Gravity Forms → TikTok · what breaks
Why this join usually fails — Gravity Forms → TikTok
- 01
The ttclid never reaches Gravity Forms
The identifier must be written into a hidden field with dynamic population enabled, and that only works if the parameter is on the URL when the page renders. Page caching serves a cached render to the visitor, so the dynamic population never runs — the same caching problem that breaks WooCommerce.
- 02
Dynamic population fails silently under page caching
The field is configured correctly and still arrives empty, because the visitor was served a cached page rendered for someone else. This is the most common Gravity Forms failure and it looks like nothing is wrong.
- 03
The ttclid is lost in the in-app browser
TikTok traffic arrives through an in-app webview whose storage behavior is inconsistent. An identifier captured but not immediately persisted server-side often is not there by the time the conversion happens.
- 04
Nothing reconciles afterwards
TikTok Events Manager shows received events and their match status. As with Meta, arriving is not the test — deduplicated and matched is. Reconcile TikTok's reported conversions against the source system for the same window.
Gravity Forms → TikTok · the fix
What working looks like — Gravity Forms → TikTok
The ttclid on every entry
Conversions arriving in TikTok
Events appear in TikTok Events Manager, deduplicated against the pixel, and become usable for optimization.
Reconciled against the source
Gravity Forms → TikTok · architecture
How Gravity Forms and TikTok actually connect
- 1
Gravity Forms holds the truth
The entry lives in your database with every field value attached. You can query it, back it up and reconcile against it without depending on any third party, which is a real advantage over hosted form tools.
- 2
TikTok Events API needs a click to match
TikTok matches server events using ttclid where available, falling back to hashed contact information. Both should be sent — the fallback is what carries the events where the click ID did not survive.
- 3
The identifier is the bridge
The ttclid, captured at the visit and carried into the Gravity Forms entry.
- 4
The event source decides reliability
Fire server-side from the PHP hook. This runs regardless of caching, AJAX submission, or what the confirmation page does.
- 5
Deduplication at the destination
TikTok deduplicates on event_id, the same pattern as Meta: the pixel and the Events API must send the same event_id for the same conversion. Mismatched IDs mean double counting.
Gravity Forms → TikTok · normal or broken
Working vs. broken, side by side — Gravity Forms → TikTok
Normal, not a fault
The ttclid present on the entry
Sent from the gform_after_submission hook
Deduplicated correctly
TikTok deduplicates on event_id, the same pattern as Meta: the pixel and the Events API must send the same event_id for the same conversion. Mismatched IDs mean double counting.
Reconciles with the source
Actually broken
The ttclid missing on most records
The identifier must be written into a hidden field with dynamic population enabled, and that only works if the parameter is on the URL when the page renders. Page caching serves a cached render to the visitor, so the dynamic population never runs — the same caching problem that breaks WooCommerce.
Sent from the browser
The field is configured correctly and still arrives empty, because the visitor was served a cached page rendered for someone else. This is the most common Gravity Forms failure and it looks like nothing is wrong.
Counted twice, or not at all
TikTok traffic arrives through an in-app webview whose storage behavior is inconsistent. An identifier captured but not immediately persisted server-side often is not there by the time the conversion happens.
Nobody has reconciled it
Gravity Forms → TikTok · diagnose
Diagnostic order — Gravity Forms → TikTok
- 01
Count entrys carrying the ttclid
- 02
Follow one real conversion end to end
- 03
Submit a test entry through a cached page
Not through a logged-in admin session, which bypasses the cache. If the hidden field is empty on the cached path and populated on the admin path, caching is your cause.
- 04
Measure ttclid capture rate on TikTok traffic specifically
Not on all traffic. TikTok's in-app browser is the failure case, so a healthy overall capture rate can hide a poor one on exactly the traffic that matters.
- 05
Read the match rate, not the success message
TikTok Events Manager shows received events and their match status. As with Meta, arriving is not the test — deduplicated and matched is. Reconcile TikTok's reported conversions against the source system for the same window.
Gravity Forms → TikTok · prove
How it gets proven — Gravity Forms → TikTok
Source of truth
The Gravity Forms entries list for the same window, or the wp_gf_entry table directly.
- The ttclid confirmed present on a live entry.
- Deduplication confirmed in Events Manager, and ttclid capture rate measured on TikTok traffic specifically.
- Entry meta confirmed populated on a submission made from a fully cached page as an anonymous visitor.
Gravity Forms → TikTok · free audit
What we check in the free audit
- Count entrys carrying the ttclid
- Follow one real conversion end to end
- Submit a test entry through a cached page
- Measure ttclid capture rate on TikTok traffic specifically
- Read the match rate, not the success message
Checked against
The Gravity Forms entries list for the same window, or the wp_gf_entry table directly.
Free30 minutesNo obligation
Gravity Forms → TikTok · when not to buy
When you don't need this — Gravity Forms → TikTok
- Measure identifier coverage yourself first — pull your last hundred entrys and count how many carry the ttclid.
- If your site has no caching layer and one form, a developer can wire this in an afternoon. Worth trying before hiring anyone.
- If TikTok is a small share of spend, the effort is hard to justify. It pays when TikTok is a channel you are actively scaling.
Gravity Forms → TikTok · what we deliver
What gets built — Gravity Forms → TikTok
Identifier capture into Gravity Forms
Hidden field with 'allow field to be populated dynamically' enabled and a parameter name set, plus a cookie fallback via a gform filter so the identifier survives a visitor who browsed several pages before converting.
Event source: the gform_after_submission hook
Fire server-side from the PHP hook. This runs regardless of caching, AJAX submission, or what the confirmation page does.
Dispatch to TikTok
Server events to the TikTok Events API with the ttclid, hashed contact information and a matching event_id.
Reversals where they exist
Nothing to reverse, though entries marked spam should be excluded from the send.
Written guarantee
95%+ tracking accuracy
Measured against The Gravity Forms entries list for the same window, or the wp_gf_entry table directly.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Gravity Forms → TikTok questions, answered
Page caching serves a pre-rendered page, so dynamic population never reads the URL. Store ttclid in a first-party cookie on landing and read it in gform_after_submission instead.
SubmitForm, with a shared event_id on the pixel and Events API, plus hashed email and phone so leads that switched browsers still match.
Almost always because the ttclid never reached the Gravity Forms entry. The identifier must be written into a hidden field with dynamic population enabled, and that only works if the parameter is on the URL when the page renders. Page caching serves a cached render to the visitor, so the dynamic population never runs — the same caching problem that breaks WooCommerce. Measure coverage before debugging the dispatch.
The ttclid — TikTok's click identifier, appended to your landing page URL and also stored in the _ttp cookie. TikTok additionally matches on hashed email and phone. In-app browser behavior makes ttclid capture more fragile than the equivalents on other platforms, so persisting it server-side as soon as it is seen matters more here than elsewhere.
The gform_after_submission hook. Fire server-side from the PHP hook. This runs regardless of caching, AJAX submission, or what the confirmation page does.
TikTok Events Manager shows received events and their match status. As with Meta, arriving is not the test — deduplicated and matched is. Reconcile TikTok's reported conversions against the source system for the same window.
More on Gravity Forms → TikTok
- Gravity Forms → Google AdsConnecting Gravity Forms to Google Ads
- Gravity Forms → MetaConnecting Gravity Forms to Meta Conversions API
- Gravity Forms → GA4Connecting Gravity Forms to GA4
RELATED GUIDES
Where Gravity Forms → TikTok fits in the rest of your tracking
- TikTok · Law firmsTikTok Ads conversion tracking for law firms
- TikTok · Local servicesTikTok Ads conversion tracking for local service businesses
- TikTok × CRM DealsHow to reconcile TikTok Ads against your CRM's closed-won deals
- TikTok · Lead magnet → saleHow to track lead magnet to sale for TikTok Ads
- Formstack → TikTokConnecting Formstack to TikTok Events API
- Gravity Forms → Microsoft AdsConnecting Gravity Forms to Microsoft Ads
- Home servicesConversion tracking for home service businesses, measured in completed jobs
- Paperform → TikTokConnecting Paperform to TikTok Events API
Free · 30 min
Get Gravity Forms and TikTok joined properly
Free30 minutesNo obligation
