Connecting Divi to TikTok Events API
Divi is a theme and builder combined, which means the site's structure and its forms are the same product — and a theme update can change both at once. 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 Divi form submission 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
Divi form leads to TikTok with the ttclid saved on submit
TikTok traffic opens Divi pages in the in-app browser, so read the ttclid on landing and write it straight into a form field. Bind the pixel's SubmitForm to the module's successful submission or redirect, tested inside TikTok. Send CRM-qualified leads to the Events API with ttclid, hashed email and phone, and an event_id distinct from SubmitForm's.
TikTok traffic to a Divi site arrives in the in-app browser, which is where the AJAX-only Divi contact module behaves most like a black box: the submit succeeds, the visitor sees an inline message, and if the TikTok pixel was tied to a thank-you page nothing fires. Bind SubmitForm to the module's successful submission, or enable its redirect option, and test it inside the TikTok app rather than desktop Chrome.
The ttclid needs to be read from the landing URL and written into a field on the Divi form at once, because the in-app browser may not keep the cookie until the visitor scrolls down to the form. Send it through to the CRM with the hashed email from the same submission. When the lead is qualified, send it to the Events API with the ttclid, hashed email and phone, and an event_id distinct from the SubmitForm's so the two events are not merged.
Install the TikTok pixel through Divi's Integration tab or Tag Manager, never the parent theme's header file. If ttclid capture on TikTok sessions drops to zero right after a theme update, that is the cause. Compare SubmitForm counts in Events Manager with Divi notification emails over the same week to see how many in-app submissions are missing.
Divi → TikTok · what breaks
Why this join usually fails — Divi → TikTok
- 01
The ttclid never reaches Divi
Custom code added to theme templates is vulnerable to updates, and Divi's contact module submits over AJAX.
- 02
Tracking removed by a theme update
Code placed directly into theme files disappears when the theme updates. The site keeps working, the forms keep submitting, and the conversions stop arriving with no error anywhere.
- 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.
Divi → TikTok · the fix
What working looks like — Divi → TikTok
The ttclid on every submission
Conversions arriving in TikTok
Events appear in TikTok Events Manager, deduplicated against the pixel, and become usable for optimization.
Reconciled against the source
Divi → TikTok · architecture
How Divi and TikTok actually connect
- 1
Divi holds the truth
Because the builder is the theme, tracking added into templates can be lost or duplicated by a theme update in ways a plugin-based setup would not experience.
- 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 Divi form submission.
- 4
The event source decides reliability
Send qualified outcomes per form, with the identifier passed through a hidden field.
- 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.
Divi → TikTok · normal or broken
Working vs. broken, side by side — Divi → TikTok
Normal, not a fault
The ttclid present on the submission
Sent from your CRM record
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
Custom code added to theme templates is vulnerable to updates, and Divi's contact module submits over AJAX.
Sent from the browser
Code placed directly into theme files disappears when the theme updates. The site keeps working, the forms keep submitting, and the conversions stop arriving with no error anywhere.
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
Divi → TikTok · diagnose
Diagnostic order — Divi → TikTok
- 01
Count submissions carrying the ttclid
- 02
Follow one real conversion end to end
- 03
Check whether tracking code sits in theme files or in a child theme
If it is in the parent theme, it is one update away from vanishing.
- 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.
Divi → TikTok · prove
How it gets proven — Divi → TikTok
Source of truth
Your CRM record, joined to the submission.
- The ttclid confirmed present on a live submission.
- Deduplication confirmed in Events Manager, and ttclid capture rate measured on TikTok traffic specifically.
- Qualified outcomes reconciled per form against imported conversions, with code placement verified update-safe.
Divi → TikTok · free audit
What we check in the free audit
- Count submissions carrying the ttclid
- Follow one real conversion end to end
- Check whether tracking code sits in theme files or in a child theme
- Measure ttclid capture rate on TikTok traffic specifically
- Read the match rate, not the success message
Checked against
Your CRM record, joined to the submission.
Free30 minutesNo obligation
Divi → TikTok · when not to buy
When you don't need this — Divi → TikTok
- Measure identifier coverage yourself first — pull your last hundred submissions and count how many carry the ttclid.
- Sites using a separate form plugin and a tag manager are insulated from the theme-update risk.
- 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.
Divi → TikTok · what we deliver
What gets built — Divi → TikTok
Identifier capture into Divi
Use a child theme or the builder's supported code integration areas rather than editing templates directly, and bind to the AJAX submission.
Event source: your CRM record
Send qualified outcomes per form, with the identifier passed through a hidden field.
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
Disqualified submissions reverse.
Written guarantee
95%+ tracking accuracy
Measured against Your CRM record, joined to the submission.. Miss it and we keep working at no cost.
From $400 · See packages
FAQ
Divi → TikTok questions, answered
Divi's contact module submits without a page change, so a pixel set to fire on a thank-you URL never runs. Fire SubmitForm on the successful submit or enable the module's redirect.
In Divi's Integration tab, a child theme or Tag Manager. Code in the parent theme files is removed by Divi updates.
Almost always because the ttclid never reached the Divi form submission. Custom code added to theme templates is vulnerable to updates, and Divi's contact module submits over AJAX. 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.
Your CRM record. Send qualified outcomes per form, with the identifier passed through a hidden field.
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 Divi → TikTok
- TikTok · Lead → booked callHow to track lead to booked call for TikTok Ads
- TikTok · Booked call → closed wonHow to track booked call to closed won for TikTok Ads
- TikTok · Free trial → paidHow to track free trial to paid for TikTok Ads
RELATED GUIDES
Where Divi → TikTok fits in the rest of your tracking
- TikTok · Marketing agenciesTikTok Ads conversion tracking for marketing agencies
- TikTok · Web and dev agenciesTikTok Ads conversion tracking for web design and development agencies
- 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
- Elementor → TikTokConnecting Elementor to TikTok Events API
- Divi → SnapchatConnecting Divi to Snapchat
- Web and dev agenciesConversion tracking for web agencies, measured in signed contracts
- Bricks → TikTokConnecting Bricks Builder to TikTok Events API
Free · 30 min
Get Divi and TikTok joined properly
Free30 minutesNo obligation
