Skip to main content
Contact Form 7 → AttentiveIntegration guide

Connecting Contact Form 7 to Attentive

Contact Form 7 is free, everywhere, and stores nothing by default — which is the whole problem. Attentive is SMS, where the identifier is a phone number, the consent rules are legal rather than advisory, and a mistake reaches the customer's pocket within seconds. The join between them succeeds or fails on one thing: whether the subscriber's phone number reaches the Contact Form 7 submission before the conversion happens, because Attentive can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Contact Form 7 to Attentive: a phone field is not SMS consent

A callback phone number on Contact Form 7 isn't SMS consent. Add an optional acceptance checkbox with your disclosure, subscribe only ticked numbers to Attentive, and normalize the free-text tel field to international format in wpcf7_before_send_mail. Store consent state, timestamp, form ID, page URL and disclosure version, since CF7 keeps nothing by default.

The only thing a Contact Form 7 form gives Attentive is a phone number, and a contact form that asks for a phone so someone can call back has not collected SMS marketing consent. Passing that number to Attentive and letting a journey text it is the TCPA exposure the whole channel is built around. If CF7 is going to capture SMS subscribers, it needs a separate [acceptance] checkbox carrying your disclosure text, set as optional so people can still contact you without subscribing, and the hook must only subscribe numbers where that box was ticked.

CF7's [tel] field accepts whatever people type, with spaces, dashes and parentheses. Attentive keys on the phone number, so normalize to a full international format with the US country code in the wpcf7_before_send_mail hook before anything is sent. A number stored one way in Attentive and sent another way creates a second subscriber who never confirmed anything.

Store the submission with the consent checkbox state, the timestamp, the form ID, the page URL and the version of the disclosure text shown. Contact Form 7 keeps nothing by default, and an email in a shared inbox is a weak record if a complaint arrives. Many brands conclude that Attentive's own sign-up units are the better capture point, because they run the confirmation step for you, and keep CF7 for contact requests that never touch SMS.

Contact Form 7 → Attentive · what breaks

Why this join usually fails — Contact Form 7 → Attentive

  1. 01

    The subscriber's phone number 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

    Consent state treated as a tracking detail rather than a legal one

    Sending an event is not the same as being allowed to message the person it describes. US SMS marketing is governed by express written consent requirements with statutory damages per message, and "the integration sent it" is not a defence. Consent state has to be checked at send time, in Attentive, not inferred from the fact that an event arrived.

  4. 04

    Nothing reconciles afterwards

    Attentive shows the event on the subscriber record and the journey it triggered. Check the subscriber's consent status alongside, because that is the field that decides whether anything should have happened.

Contact Form 7 → Attentive · the fix

What working looks like — Contact Form 7 → Attentive

  • The subscriber's phone number on every submission

  • Conversions arriving in Attentive

    The event lands on the subscriber, triggers the journeys that depend on it, and becomes available for segmentation.

  • Reconciled against the source

Contact Form 7 → Attentive · architecture

How Contact Form 7 and Attentive 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

    Attentive needs a click to match

    Attentive needs the subscriber's phone number, the event name and its properties. It also needs the subscriber to have consented — an event about someone who never opted in cannot legally be messaged, whatever the event says.

  3. 3

    The identifier is the bridge

    The subscriber's phone number, 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

    Attentive does not deduplicate for you. A purchase sent twice can trigger a journey twice, and the customer receives two texts. Unlike an email, a duplicate SMS costs you money per send and irritates the recipient measurably more.

Contact Form 7 → Attentive · normal or broken

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

Normal, not a fault

  • The subscriber's phone number present on the submission

  • Sent from the wpcf7_mail_sent hook

  • Deduplicated correctly

    Attentive does not deduplicate for you. A purchase sent twice can trigger a journey twice, and the customer receives two texts. Unlike an email, a duplicate SMS costs you money per send and irritates the recipient measurably more.

  • Reconciles with the source

Actually broken

  • The subscriber's phone number 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

    Sending an event is not the same as being allowed to message the person it describes. US SMS marketing is governed by express written consent requirements with statutory damages per message, and "the integration sent it" is not a defence. Consent state has to be checked at send time, in Attentive, not inferred from the fact that an event arrived.

  • Nobody has reconciled it

Contact Form 7 → Attentive · diagnose

Diagnostic order — Contact Form 7 → Attentive

  1. 01

    Count submissions carrying the subscriber's phone number

  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

    Verify that events for non-consented customers cannot trigger a send

    Check the journey's entry conditions, not the event pipeline. The pipeline will happily deliver an event about someone who never opted in; the journey is what must refuse to act on it.

  5. 05

    Read the match rate, not the success message

    Attentive shows the event on the subscriber record and the journey it triggered. Check the subscriber's consent status alongside, because that is the field that decides whether anything should have happened.

Contact Form 7 → Attentive · prove

How it gets proven — Contact Form 7 → Attentive

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 subscriber's phone number confirmed present on a live submission.
  • Events confirmed on subscriber records with consent state verified, and a test proving a non-consented profile does not trigger a send.
  • Stored submissions confirmed to match the email record for the same period, before any attribution claim is made.

Contact Form 7 → Attentive · free audit

What we check in the free audit

  • Count submissions carrying the subscriber's phone number
  • Follow one real conversion end to end
  • Confirm submissions are being stored at all
  • Verify that events for non-consented customers cannot trigger a send
  • 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 → Attentive · when not to buy

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

  • Measure identifier coverage yourself first — pull your last hundred submissions and count how many carry the subscriber's phone number.
  • 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 do not have a consented SMS list, the integration is the least of the work. Building the list compliantly comes first, and no event pipeline substitutes for it.

Contact Form 7 → Attentive · what we deliver

What gets built — Contact Form 7 → Attentive

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

    The Attentive events API, posted server-side from your order system with the subscriber's phone number and the event properties.

  • 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 → Attentive questions, answered

You can, with a separate optional consent checkbox and a server hook that only subscribes people who ticked it. Check whether your API route triggers the same opt-in confirmation as Attentive's sign-up units.

Free · 30 min

Get Contact Form 7 and Attentive joined properly

Free30 minutesNo obligation