Connecting Contact Form 7 to Salesforce Marketing Cloud
Contact Form 7 is free, everywhere, and stores nothing by default — which is the whole problem. Marketing Cloud is a different product from Salesforce CRM with a different identity model, which catches out almost everyone who assumes a contact in one is a contact in the other. The join between them succeeds or fails on one thing: whether the Subscriber Key reaches the Contact Form 7 submission before the conversion happens, because Marketing Cloud can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
Contact Form 7 into Marketing Cloud: pick the Subscriber Key first
Before sending Contact Form 7 leads to Salesforce Marketing Cloud, check what Subscriber Key your org uses. If it is the CRM ID, create a Sales Cloud Lead from the wpcf7_mail_sent hook and let the connector sync it into the journey's data extension. Insert directly only when the key is email, and map a separate acceptance checkbox to subscriber status.
A Contact Form 7 lead has an email and nothing else that identifies it. If your Marketing Cloud org uses the CRM Contact or Lead ID as Subscriber Key, a lead inserted straight from WordPress has no valid key, and keying it on email creates a subscriber who will never line up with the CRM record created later. Check what Subscriber Key is in your org before choosing a route, because the right route depends on it.
Where the key is the CRM ID, send the submission to Sales Cloud as a Lead first, from the wpcf7_mail_sent hook or a CF7-to-Salesforce plugin, and let the Marketing Cloud connector bring it into a synchronized data extension that the journey listens to. Only insert directly into a data extension from WordPress when Subscriber Key is email and you accept that the CRM link comes later.
CF7 adds a consent problem that Marketing Cloud's own forms handle for you. A contact form reply is transactional; adding the person to a commercial journey needs a separate [acceptance] checkbox, and its value has to set the subscriber's status, not just sit in a column. Map the checkbox to that status explicitly and test in a non-production business unit, because a journey that enters on every new row will email anyone who asked a question.
Contact Form 7 → Marketing Cloud · what breaks
Why this join usually fails — Contact Form 7 → Marketing Cloud
- 01
The Subscriber Key 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
Two identity models treated as one
Marketing Cloud's Subscriber Key and CRM's Contact ID are separate concepts, and Contact Builder's configuration decides whether they relate at all. Getting this wrong does not produce an error — it produces a customer who exists twice, receives everything twice, and appears in reporting as two people.
- 04
Nothing reconciles afterwards
Check the subscriber record and the journey history, not the API response. A successful insert into an unwatched data extension looks identical to a successful one into the right extension.
Contact Form 7 → Marketing Cloud · the fix
What working looks like — Contact Form 7 → Marketing Cloud
The Subscriber Key on every submission
Conversions arriving in Marketing Cloud
The record lands in the data extension, the journey's entry criteria evaluate on its schedule, and sends follow.
Reconciled against the source
Contact Form 7 → Marketing Cloud · architecture
How Contact Form 7 and Marketing Cloud 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
Salesforce Marketing Cloud needs a click to match
The Subscriber Key, the data extension the journey listens to, and the fields its decision splits reference. An event landing in the wrong data extension will be stored correctly and trigger nothing.
- 3
The identifier is the bridge
The Subscriber Key, 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
Marketing Cloud does not deduplicate journey entries for you. A record inserted twice can enter a journey twice, and because journeys span email, SMS and push the duplicate reaches the customer more than once.
Contact Form 7 → Marketing Cloud · normal or broken
Working vs. broken, side by side — Contact Form 7 → Marketing Cloud
Normal, not a fault
The Subscriber Key present on the submission
Sent from the wpcf7_mail_sent hook
Deduplicated correctly
Marketing Cloud does not deduplicate journey entries for you. A record inserted twice can enter a journey twice, and because journeys span email, SMS and push the duplicate reaches the customer more than once.
Reconciles with the source
Actually broken
The Subscriber Key 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
Marketing Cloud's Subscriber Key and CRM's Contact ID are separate concepts, and Contact Builder's configuration decides whether they relate at all. Getting this wrong does not produce an error — it produces a customer who exists twice, receives everything twice, and appears in reporting as two people.
Nobody has reconciled it
Contact Form 7 → Marketing Cloud · diagnose
Diagnostic order — Contact Form 7 → Marketing Cloud
- 01
Count submissions carrying the Subscriber Key
- 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 what Subscriber Key is actually set to in this org
Before sending anything. It is a configuration decision made once, often years ago, and every integration built afterwards inherits it.
- 05
Read the match rate, not the success message
Check the subscriber record and the journey history, not the API response. A successful insert into an unwatched data extension looks identical to a successful one into the right extension.
Contact Form 7 → Marketing Cloud · prove
How it gets proven — Contact Form 7 → Marketing Cloud
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 Key confirmed present on a live submission.
- Records confirmed on single subscriber records in the correct data extension, with the triggered journey verified in a non-production business unit first.
- Stored submissions confirmed to match the email record for the same period, before any attribution claim is made.
Contact Form 7 → Marketing Cloud · free audit
What we check in the free audit
- Count submissions carrying the Subscriber Key
- Follow one real conversion end to end
- Confirm submissions are being stored at all
- Confirm what Subscriber Key is actually set to in this org
- 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 → Marketing Cloud · when not to buy
When you don't need this — Contact Form 7 → Marketing Cloud
- Measure identifier coverage yourself first — pull your last hundred submissions and count how many carry the Subscriber Key.
- 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 are on Salesforce CRM but sending email through a simpler platform, adding Marketing Cloud brings an identity model to reconcile that you currently do not have to think about.
Contact Form 7 → Marketing Cloud · what we deliver
What gets built — Contact Form 7 → Marketing Cloud
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 Marketing Cloud
A server-side insert into the data extension the journey is configured against, keyed on Subscriber Key.
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 → Marketing Cloud questions, answered
If Subscriber Key is the CRM ID, create a Sales Cloud lead from the form and let the connector sync it. Insert straight into a data extension only when Subscriber Key is email.
The form inserted them keyed on email while the CRM sync created them keyed on the CRM ID, so one person has two Subscriber Keys.
Almost always because the Subscriber Key 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.
Marketing Cloud identifies people by Subscriber Key, which you define. It is not the CRM Contact ID unless somebody deliberately made it so, and in many orgs the two are unrelated. Sending an event keyed on the wrong one creates a second subscriber rather than updating the first, which splits the person across two journeys.
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.
Check the subscriber record and the journey history, not the API response. A successful insert into an unwatched data extension looks identical to a successful one into the right extension.
More on Contact Form 7 → Marketing Cloud
- Contact Form 7 → SalesforceConnecting Contact Form 7 to Salesforce
- Stripe → Marketing CloudConnecting Stripe to Salesforce Marketing Cloud
- PayPal → Marketing CloudConnecting PayPal to Salesforce Marketing Cloud
RELATED GUIDES
Where Contact Form 7 → Marketing Cloud fits in the rest of your tracking
- Ninja Forms → Marketing CloudConnecting Ninja Forms to Salesforce Marketing Cloud
- Formidable Forms → Marketing CloudConnecting Formidable Forms to Salesforce Marketing Cloud
- Tally → Marketing CloudConnecting Tally to Salesforce Marketing Cloud
- Contact Form 7 → AttentiveConnecting Contact Form 7 to Attentive
- Contact Form 7 → Customer.ioConnecting Contact Form 7 to Customer.io
- Home servicesConversion tracking for home service businesses, measured in completed jobs
- Formstack → Marketing CloudConnecting Formstack to Salesforce Marketing Cloud
- Jotform → Marketing CloudConnecting Jotform to Salesforce Marketing Cloud
Free · 30 min
Get Contact Form 7 and Marketing Cloud joined properly
Free30 minutesNo obligation
