Skip to main content
Divi → X AdsIntegration guide

Connecting Divi to X Ads

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. X is a conversation platform where a large share of engagement is discussion rather than intent, which makes the gap between engagement metrics and conversions unusually wide. The join between them succeeds or fails on one thing: whether the twclid click identifier reaches the Divi form submission before the conversion happens, because X Ads can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Divi lead forms to X Ads: twclid through an in-app browser

X clicks open Divi pages in X's in-app browser, so read twclid from the landing URL immediately, store it server-side or in a first-party cookie, and attach it to the contact submission. Send the conversion from your server on success, sharing one conversion ID with any pixel, plus hashed email. Add a qualifying field or send a second CRM-qualified conversion.

Most X ad clicks open the Divi page inside X's in-app browser, where storage is short-lived and the visitor may leave and come back in Safari before filling in the form. Read twclid from the landing URL immediately, store it server-side or in a first-party cookie, and attach it to the contact module submission so it travels with the lead. A visitor who returns later in a different browser arrives without it, and only the hashed email from the form can match that conversion.

Send the conversion from your server once the Divi submission succeeds, and if you also run the X pixel, give both the same conversion ID generated at submit. Divi's inline success message means a pixel event tied to a thank-you URL never fires unless the module is set to redirect; the server event avoids that dependency. Check in X's events manager that the event shows as matched, not only received.

X lead campaigns attract engagement-driven clicks, and a Divi form with only name, email and message collects a lot of low-intent submissions. Add one qualifying field, such as budget, timeline or company size, and either send only submissions that pass it or send a second conversion when the CRM qualifies the lead. Judging X on raw Divi form fills tends to reward the campaigns with the most argument in the replies.

Divi → X Ads · what breaks

Why this join usually fails — Divi → X Ads

  1. 01

    The twclid click identifier never reaches Divi

    Custom code added to theme templates is vulnerable to updates, and Divi's contact module submits over AJAX.

  2. 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.

  3. 03

    Engagement mistaken for intent

    A post can be quoted, argued with and shared widely by people with no interest in buying anything. Optimising toward engagement on this platform reliably finds an audience that will never convert, and the engagement numbers look excellent throughout.

  4. 04

    Nothing reconciles afterwards

    Read the delivered and matched counts in X's reporting rather than assuming a 200 response means the event was usable.

Divi → X Ads · the fix

What working looks like — Divi → X Ads

  • The twclid click identifier on every submission

  • Conversions arriving in X Ads

    The conversion is matched to a click or an engagement and becomes available for optimisation and reporting.

  • Reconciled against the source

Divi → X Ads · architecture

How Divi and X Ads actually connect

  1. 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. 2

    X Ads needs a click to match

    An event X recognises, a conversion identifier for deduplication, hashed customer information, and the click identifier where you have it.

  3. 3

    The identifier is the bridge

    The twclid click identifier, captured at the visit and carried into the Divi form submission.

  4. 4

    The event source decides reliability

    Send qualified outcomes per form, with the identifier passed through a hidden field.

  5. 5

    Deduplication at the destination

    X deduplicates browser and server events on a shared conversion ID. Send both without pairing them and every conversion counts twice — worth testing deliberately, because X volumes are often small enough that a doubling reads as a good week.

Divi → X Ads · normal or broken

Working vs. broken, side by side — Divi → X Ads

Normal, not a fault

  • The twclid click identifier present on the submission

  • Sent from your CRM record

  • Deduplicated correctly

    X deduplicates browser and server events on a shared conversion ID. Send both without pairing them and every conversion counts twice — worth testing deliberately, because X volumes are often small enough that a doubling reads as a good week.

  • Reconciles with the source

Actually broken

  • The twclid click identifier 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

    A post can be quoted, argued with and shared widely by people with no interest in buying anything. Optimising toward engagement on this platform reliably finds an audience that will never convert, and the engagement numbers look excellent throughout.

  • Nobody has reconciled it

Divi → X Ads · diagnose

Diagnostic order — Divi → X Ads

  1. 01

    Count submissions carrying the twclid click identifier

  2. 02

    Follow one real conversion end to end

  3. 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.

  4. 04

    Compare engagement rate against conversion rate by campaign

    On X the two frequently move in opposite directions, and that divergence is the finding rather than a measurement fault.

  5. 05

    Read the match rate, not the success message

    Read the delivered and matched counts in X's reporting rather than assuming a 200 response means the event was usable.

Divi → X Ads · prove

How it gets proven — Divi → X Ads

Source of truth

Your CRM record, joined to the submission.

  • The twclid click identifier confirmed present on a live submission.
  • Conversions reconciled per order against imported figures, with deduplication verified on a live test.
  • Qualified outcomes reconciled per form against imported conversions, with code placement verified update-safe.

Divi → X Ads · free audit

What we check in the free audit

  • Count submissions carrying the twclid click identifier
  • Follow one real conversion end to end
  • Check whether tracking code sits in theme files or in a child theme
  • Compare engagement rate against conversion rate by campaign
  • Read the match rate, not the success message

Checked against

Your CRM record, joined to the submission.

Get my free conversion tracking audit

Free30 minutesNo obligation

Divi → X Ads · when not to buy

When you don't need this — Divi → X Ads

  • Measure identifier coverage yourself first — pull your last hundred submissions and count how many carry the twclid click identifier.
  • Sites using a separate form plugin and a tag manager are insulated from the theme-update risk.
  • If X is a brand and community channel for you rather than a performance one, measure it that way and do not force a conversion pipeline onto it.

Divi → X Ads · what we deliver

What gets built — Divi → X Ads

  • 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 X Ads

    The X Conversions API, posted server-side with the click identifier and hashed customer data.

  • 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.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Divi → X Ads questions, answered

Usually twclid was lost in X's in-app browser before the visitor submitted, or the event was tied to a thank-you page Divi never loads. Capture twclid on landing, attach it to the submission, and send the conversion server-side with hashed email.

Free · 30 min

Get Divi and X Ads joined properly

Free30 minutesNo obligation