Skip to main content
Contact Form 7 → BranchIntegration guide

Connecting Contact Form 7 to Branch

Contact Form 7 is free, everywhere, and stores nothing by default — which is the whole problem. Branch's real job is the web-to-app seam — a person clicks a link in a browser, installs the app, and something has to carry the context across an install that destroys every cookie involved. The join between them succeeds or fails on one thing: whether the Branch link click identifier and the deferred deep link payload reaches the Contact Form 7 submission before the conversion happens, because Branch can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Contact Form 7 and Branch: put the deep link in the reply email

Sending Contact Form 7 leads to Branch adds nothing, since no install is involved. If you have an app, put a Branch link in CF7's Mail (2) autoresponder carrying a reference to the stored submission, so the deferred deep link ties the new app account to the inquiry. Encode mail tags, and judge by installs, since scanners inflate clicks.

Branch carries campaign context across an app install. A Contact Form 7 lead is a web conversion with no install involved, so sending it to Branch as an event adds nothing that your web ad platforms do not already cover. The useful connection runs the other way: the form's reply email is a place to hand the lead a Branch link.

CF7's Mail (2) template is commonly used as an autoresponder. If you have an app, include a Branch link in it with the campaign set to that autoresponder and a reference to the stored submission in the link data. When the lead installs and opens the app, the deferred deep link returns that reference, the app can tie the new account to the original inquiry, and Branch reports installs from that channel instead of showing them as organic. Mail tags in a URL must be encoded, and Mail (2) is switched off by default, so check both.

Expect inflated click counts. Corporate email security scanners open links before the recipient does, so autoresponder links collect automated clicks that never install. Judge the channel by installs and in-app events against your stored submissions, not by clicks. If you have no app, there is no seam for Branch to bridge and the CF7 lead belongs only in your web ad platforms.

Contact Form 7 → Branch · what breaks

Why this join usually fails — Contact Form 7 → Branch

  1. 01

    The Branch link click identifier and the deferred deep link payload never reaches Contact Form 7

    There is no entries table to write to, so the identifier has to be captured into a hidden field and persisted by whatever you add for storage. Contact Form 7 submits over AJAX, so the page does not reload and anything expecting a navigation event never fires.

  2. 02

    AJAX submission means no page load to hook

    Setups that fire a conversion on thank-you-page load simply never fire. Setups that listen for the DOM event miss anyone whose script execution was blocked or deferred.

  3. 03

    The install that erases the campaign

    Someone clicks a paid ad on the mobile web, hits the app store, installs, and opens the app as a brand new anonymous user. Without deferred deep linking that campaign produced an organic install, and the ad account shows nothing for a conversion it genuinely caused.

  4. 04

    Nothing reconciles afterwards

    Branch shows the attributed link and campaign on the event in its dashboard. Check that the install carries a link click rather than showing as organic, which is the failure this product exists to prevent.

Contact Form 7 → Branch · the fix

What working looks like — Contact Form 7 → Branch

  • The Branch link click identifier and the deferred deep link payload on every submission

  • Conversions arriving in Branch

    The event is attributed to the originating link and campaign, and forwarded to any configured downstream partners.

  • Reconciled against the source

Contact Form 7 → Branch · architecture

How Contact Form 7 and Branch actually connect

  1. 1

    Contact Form 7 holds the truth

    Out of the box Contact Form 7 emails the submission and keeps no record. Before any attribution work is meaningful, submissions have to be stored somewhere queryable. That is step one and it is not optional.

  2. 2

    Branch needs a click to match

    Branch needs the link click context matched to the app open, plus the event and its revenue. Without the deferred deep link payload there is nothing to join the install to.

  3. 3

    The identifier is the bridge

    The Branch link click identifier and the deferred deep link payload, captured at the visit and carried into the Contact Form 7 submission.

  4. 4

    The event source decides reliability

    Fire server-side from PHP. The browser-side wpcf7mailsent DOM event exists and is commonly used, but it depends on the visitor's browser executing correctly and on the AJAX response arriving — the server hook does not.

  5. 5

    Deduplication at the destination

    Branch deduplicates on the event identifier you supply. Firing a purchase from both the SDK and your server without a shared identifier double-counts, and Branch forwards to downstream partners, so the duplicate propagates.

Contact Form 7 → Branch · normal or broken

Working vs. broken, side by side — Contact Form 7 → Branch

Normal, not a fault

  • The Branch link click identifier and the deferred deep link payload present on the submission

  • Sent from the wpcf7_mail_sent hook

  • Deduplicated correctly

    Branch deduplicates on the event identifier you supply. Firing a purchase from both the SDK and your server without a shared identifier double-counts, and Branch forwards to downstream partners, so the duplicate propagates.

  • Reconciles with the source

Actually broken

  • The Branch link click identifier and the deferred deep link payload missing on most records

    There is no entries table to write to, so the identifier has to be captured into a hidden field and persisted by whatever you add for storage. Contact Form 7 submits over AJAX, so the page does not reload and anything expecting a navigation event never fires.

  • Sent from the browser

    Setups that fire a conversion on thank-you-page load simply never fire. Setups that listen for the DOM event miss anyone whose script execution was blocked or deferred.

  • Counted twice, or not at all

    Someone clicks a paid ad on the mobile web, hits the app store, installs, and opens the app as a brand new anonymous user. Without deferred deep linking that campaign produced an organic install, and the ad account shows nothing for a conversion it genuinely caused.

  • Nobody has reconciled it

Contact Form 7 → Branch · diagnose

Diagnostic order — Contact Form 7 → Branch

  1. 01

    Count submissions carrying the Branch link click identifier and the deferred deep link payload

  2. 02

    Follow one real conversion end to end

  3. 03

    Confirm submissions are being stored at all

    If the only record is an email inbox, there is nothing to reconcile and no way to prove any number. Fix storage before touching attribution.

  4. 04

    Measure your organic install share and ask whether it is plausible

    An implausibly large organic share is usually broken attribution rather than genuine word of mouth.

  5. 05

    Read the match rate, not the success message

    Branch shows the attributed link and campaign on the event in its dashboard. Check that the install carries a link click rather than showing as organic, which is the failure this product exists to prevent.

Contact Form 7 → Branch · prove

How it gets proven — Contact Form 7 → Branch

Source of truth

Whatever you configure to persist submissions — an entries plugin, or your own database table. By default there is nothing to reconcile against.

  • The Branch link click identifier and the deferred deep link payload confirmed present on a live submission.
  • Attributed installs and in-app purchases reconciled against your own user records, with the unattributed share stated.
  • Stored submissions confirmed to match the email record for the same period, before any attribution claim is made.

Contact Form 7 → Branch · free audit

What we check in the free audit

  • Count submissions carrying the Branch link click identifier and the deferred deep link payload
  • Follow one real conversion end to end
  • Confirm submissions are being stored at all
  • Measure your organic install share and ask whether it is plausible
  • Read the match rate, not the success message

Checked against

Whatever you configure to persist submissions — an entries plugin, or your own database table. By default there is nothing to reconcile against.

Get my free conversion tracking audit

Free30 minutesNo obligation

Contact Form 7 → Branch · when not to buy

When you don't need this — Contact Form 7 → Branch

  • Measure identifier coverage yourself first — pull your last hundred submissions and count how many carry the Branch link click identifier and the deferred deep link payload.
  • If you are on Contact Form 7 and serious about attribution, moving to a form plugin that stores entries is often cheaper than working around the one that does not. We will say so rather than bill for the workaround.
  • If you have no app, or no web surface driving app installs, there is no seam here to bridge and the integration solves nothing.

Contact Form 7 → Branch · what we deliver

What gets built — Contact Form 7 → Branch

  • Identifier capture into Contact Form 7

    Hidden field populated from a first-party cookie, plus a storage layer so the submission and its identifier survive past the email. The wpcf7_before_send_mail hook is where both happen.

  • Event source: the wpcf7_mail_sent hook

    Fire server-side from PHP. The browser-side wpcf7mailsent DOM event exists and is commonly used, but it depends on the visitor's browser executing correctly and on the AJAX response arriving — the server hook does not.

  • Dispatch to Branch

    The Branch server-to-server events API, posted from your backend with the user identity and event data.

  • Reversals where they exist

    Nothing to reverse. Spam filtering before the send is the equivalent concern.

Written guarantee

95%+ tracking accuracy

Measured against Whatever you configure to persist submissions — an entries plugin, or your own database table. By default there is nothing to reconcile against.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Contact Form 7 → Branch questions, answered

Usually not as events. The useful link is a Branch link in the form's autoresponder, so leads who install your app keep the context of their inquiry.

Free · 30 min

Get Contact Form 7 and Branch joined properly

Free30 minutesNo obligation