Connecting Contact Form 7 to Customer.io
Contact Form 7 is free, everywhere, and stores nothing by default — which is the whole problem. Customer.io triggers messages from behaviour, which means an event you send is not recorded — it is acted on, usually within seconds, by sending something to a real person. The join between them succeeds or fails on one thing: whether the person identifier you assign reaches the Contact Form 7 submission before the conversion happens, because Customer.io 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 Customer.io: map fields before the first send
Map Contact Form 7 fields explicitly in the hook: identify the person by email, split your-name into a first_name, and send an event with form ID and subject. Choose either browser identify on wpcf7mailsent, which merges earlier page views, or server-only from wpcf7_mail_sent. Switch credentials on wp_get_environment_type() so staging writes to a test workspace.
Contact Form 7's default form posts your-name, your-email, your-subject and your-message. Customer.io campaigns usually greet people by first_name, so a single full-name field either lands as nothing or as Hi Jane Smith, and Customer.io will send it either way the moment the event arrives. Map fields explicitly in the hook: identify the person by email, split or rename the name, and send an event with the form ID and subject so campaigns can tell a sales inquiry from a support request.
A server call from wpcf7_mail_sent does not know what the visitor did on the site before submitting. If you also run Customer.io's JavaScript snippet, identifying the person in the browser on the wpcf7mailsent event lets earlier anonymous page views merge onto the profile; a server-only setup starts the profile at the form. Pick one route for the identify call and keep it, or the browser and server create competing profiles.
The WordPress-specific trap is staging. Staging and local copies of the site carry the same hook and API keys, so a developer testing the form on staging writes to the live workspace and a real person receives the follow-up. Switch credentials on wp_get_environment_type() so anything that is not production writes to a separate test workspace.
Contact Form 7 → Customer.io · what breaks
Why this join usually fails — Contact Form 7 → Customer.io
- 01
The person identifier you assign 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.
- 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.
- 03
A test event sending a real email
Because campaigns evaluate on arrival, there is no safe place to test in production. A malformed purchase event fired during development against a live workspace will send a real order confirmation to a real person, and that cannot be recalled.
- 04
Nothing reconciles afterwards
Customer.io shows the event and the resulting campaign activity on the person's timeline. Check what the event triggered, not just that it arrived.
Contact Form 7 → Customer.io · the fix
What working looks like — Contact Form 7 → Customer.io
The person identifier you assign on every submission
Conversions arriving in Customer.io
The event lands on the person, evaluates against every campaign trigger and segment condition, and may send immediately.
Reconciled against the source
Contact Form 7 → Customer.io · architecture
How Contact Form 7 and Customer.io actually connect
- 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
Customer.io needs a click to match
Customer.io needs the person identifier, the event name and any attributes the campaign conditions reference. An event whose attributes are missing will still trigger a campaign, which may then send a message with an empty placeholder in it.
- 3
The identifier is the bridge
The person identifier you assign, captured at the visit and carried into the Contact Form 7 submission.
- 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
Deduplication at the destination
Customer.io does not deduplicate events. A purchase sent twice can enter a workflow twice and send two emails, and unlike a reporting duplicate the customer sees this one.
Contact Form 7 → Customer.io · normal or broken
Working vs. broken, side by side — Contact Form 7 → Customer.io
Normal, not a fault
The person identifier you assign present on the submission
Sent from the wpcf7_mail_sent hook
Deduplicated correctly
Customer.io does not deduplicate events. A purchase sent twice can enter a workflow twice and send two emails, and unlike a reporting duplicate the customer sees this one.
Reconciles with the source
Actually broken
The person identifier you assign 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
Because campaigns evaluate on arrival, there is no safe place to test in production. A malformed purchase event fired during development against a live workspace will send a real order confirmation to a real person, and that cannot be recalled.
Nobody has reconciled it
Contact Form 7 → Customer.io · diagnose
Diagnostic order — Contact Form 7 → Customer.io
- 01
Count submissions carrying the person identifier you assign
- 02
Follow one real conversion end to end
- 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.
- 04
Confirm which workspace you are writing to before sending anything
Environment separation is the whole safety mechanism in behaviour-triggered tools, and it is the thing most often skipped.
- 05
Read the match rate, not the success message
Customer.io shows the event and the resulting campaign activity on the person's timeline. Check what the event triggered, not just that it arrived.
Contact Form 7 → Customer.io · prove
How it gets proven — Contact Form 7 → Customer.io
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 person identifier you assign confirmed present on a live submission.
- Events confirmed on person profiles with the triggered campaign activity verified, in a test workspace before production.
- Stored submissions confirmed to match the email record for the same period, before any attribution claim is made.
Contact Form 7 → Customer.io · free audit
What we check in the free audit
- Count submissions carrying the person identifier you assign
- Follow one real conversion end to end
- Confirm submissions are being stored at all
- Confirm which workspace you are writing to before sending anything
- 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.
Free30 minutesNo obligation
Contact Form 7 → Customer.io · when not to buy
When you don't need this — Contact Form 7 → Customer.io
- Measure identifier coverage yourself first — pull your last hundred submissions and count how many carry the person identifier you assign.
- 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 your messaging is scheduled rather than behavioural, a simpler email platform does the job and removes the whole class of accidental-send risk.
Contact Form 7 → Customer.io · what we deliver
What gets built — Contact Form 7 → Customer.io
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 Customer.io
The Customer.io Track API, posted server-side from your order or product system with the person identifier and event attributes.
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.
From $400 · See packages
FAQ
Contact Form 7 → Customer.io questions, answered
Use the wpcf7_mail_sent hook to identify the person by email and send an event with fields mapped to the attribute names your campaigns use. Bridge plugins exist; check exactly what they map before relying on one.
Staging copies carry the same hook and API key. Switch credentials based on the WordPress environment type so non-production sites write to a test workspace.
Almost always because the person identifier you assign never reached the Contact Form 7 submission. 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. Measure coverage before debugging the dispatch.
Customer.io identifies people by an ID you control, with email as a common choice. Anonymous events can be sent and later merged, but a mismatch creates a second profile — and a second profile means a second copy of every campaign that person is enrolled in.
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.
Customer.io shows the event and the resulting campaign activity on the person's timeline. Check what the event triggered, not just that it arrived.
More on Contact Form 7 → Customer.io
- Contact Form 7 → GA4Connecting Contact Form 7 to GA4
- Contact Form 7 → Google AdsConnecting Contact Form 7 to Google Ads
- Contact Form 7 → MetaConnecting Contact Form 7 to Meta Conversions API
RELATED GUIDES
Where Contact Form 7 → Customer.io fits in the rest of your tracking
- WPForms → Customer.ioConnecting WPForms to Customer.io
- Jotform → Customer.ioConnecting Jotform to Customer.io
- Fluent Forms → Customer.ioConnecting Fluent Forms to Customer.io
- Contact Form 7 → AttentiveConnecting Contact Form 7 to Attentive
- Contact Form 7 → BrazeConnecting Contact Form 7 to Braze
- Law firmsConversion tracking for law firms, without sending case details anywhere
- Formstack → Customer.ioConnecting Formstack to Customer.io
- Paperform → Customer.ioConnecting Paperform to Customer.io
Free · 30 min
Get Contact Form 7 and Customer.io joined properly
Free30 minutesNo obligation
