Skip to main content
Contact Form 7 → MarketoIntegration guide

Connecting Contact Form 7 to Marketo

Contact Form 7 is free, everywhere, and stores nothing by default — which is the whole problem. Marketo scores leads rather than counting conversions, which means what you send it does not report a number — it changes who your sales team calls tomorrow. The join between them succeeds or fails on one thing: whether the lead record, keyed on email reaches the Contact Form 7 submission before the conversion happens, because Marketo 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 Marketo: the Munchkin cookie gets left behind

Contact Form 7 leads reach Marketo without Munchkin history, so capture the _mkto_trk cookie into a hidden field and call the REST API's associate endpoint after creating or updating the lead by email. Split your-name into firstName and lastName, map UTM fields deliberately, and use the form-submission call for a native Fill Out Form activity if available.

Marketo forms automatically tie a submission to the visitor's Munchkin cookie, which is how anonymous page visits become part of the lead's history. A Contact Form 7 form does none of that. The lead arrives in Marketo with no web activity behind it, and any scoring rule that depends on pages visited never fires. Capture the _mkto_trk cookie into a [hidden] field and, after creating or updating the lead, use the REST API's associate call with that cookie value.

Map fields deliberately. CF7's default your-name is one field and Marketo scores and personalizes on firstName and lastName. UTM values captured with [hidden utm_source default:get] fields only help if they land in the Marketo fields your attribution and scoring actually read. Create or update with email as the lookup field so a returning contact updates their lead rather than spawning a duplicate.

Decide what activity the submission becomes. Marketo has a form-submission call in its REST API that records a native Fill Out Form activity; check whether it is available in your instance, because scoring rules and smart lists built around Marketo forms only see that activity type. Otherwise use a custom activity and rewrite the rules that should react to it, or the lead lands correctly and nothing moves.

Contact Form 7 → Marketo · what breaks

Why this join usually fails — Contact Form 7 → Marketo

  1. 01

    The lead record, keyed on email 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

    A scoring threshold crossed by a duplicate

    Unlike an ad platform, a duplicate here has an operational consequence: a lead is marked sales-ready, routed, and called by a person. Doing that on the strength of an event counted twice wastes the most expensive resource in the funnel.

  4. 04

    Nothing reconciles afterwards

    Marketo shows the activity log on the lead record with the resulting score change. Read the lead, not the API response, and verify no duplicate lead was created.

Contact Form 7 → Marketo · the fix

What working looks like — Contact Form 7 → Marketo

  • The lead record, keyed on email on every submission

  • Conversions arriving in Marketo

    The activity lands on the lead, scoring rules evaluate, and the lead may move into a nurture programme or into the sales queue.

  • Reconciled against the source

Contact Form 7 → Marketo · architecture

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

    Marketo needs a click to match

    Marketo needs the lead's email and the activity or custom object you are recording, with the fields the scoring rules actually reference. An activity that no scoring rule looks at changes nothing.

  3. 3

    The identifier is the bridge

    The lead record, keyed on email, 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

    Marketo deduplicates leads on email by default, but activities are not deduplicated. A purchase pushed twice can trigger a scoring rule twice and push a lead over a threshold it should not have crossed.

Contact Form 7 → Marketo · normal or broken

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

Normal, not a fault

  • The lead record, keyed on email present on the submission

  • Sent from the wpcf7_mail_sent hook

  • Deduplicated correctly

    Marketo deduplicates leads on email by default, but activities are not deduplicated. A purchase pushed twice can trigger a scoring rule twice and push a lead over a threshold it should not have crossed.

  • Reconciles with the source

Actually broken

  • The lead record, keyed on email 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

    Unlike an ad platform, a duplicate here has an operational consequence: a lead is marked sales-ready, routed, and called by a person. Doing that on the strength of an event counted twice wastes the most expensive resource in the funnel.

  • Nobody has reconciled it

Contact Form 7 → Marketo · diagnose

Diagnostic order — Contact Form 7 → Marketo

  1. 01

    Count submissions carrying the lead record, keyed on email

  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

    Check the lead's activity log after a test conversion

    One activity or two, and did the score move by the amount the rule specifies? That is the whole test.

  5. 05

    Read the match rate, not the success message

    Marketo shows the activity log on the lead record with the resulting score change. Read the lead, not the API response, and verify no duplicate lead was created.

Contact Form 7 → Marketo · prove

How it gets proven — Contact Form 7 → Marketo

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 lead record, keyed on email confirmed present on a live submission.
  • Activities confirmed on single lead records with score changes matching the configured rules, and no duplicate leads created.
  • Stored submissions confirmed to match the email record for the same period, before any attribution claim is made.

Contact Form 7 → Marketo · free audit

What we check in the free audit

  • Count submissions carrying the lead record, keyed on email
  • Follow one real conversion end to end
  • Confirm submissions are being stored at all
  • Check the lead's activity log after a test conversion
  • 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 → Marketo · when not to buy

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

  • Measure identifier coverage yourself first — pull your last hundred submissions and count how many carry the lead record, keyed on email.
  • 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 sales team does not act on lead scores, pushing conversions into Marketo produces a tidier database and changes nothing about revenue.

Contact Form 7 → Marketo · what we deliver

What gets built — Contact Form 7 → Marketo

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

    The Marketo REST API, posted server-side to create or update the lead and record the activity.

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

From the wpcf7_mail_sent hook, create or update the lead by email through the REST API, then associate the Munchkin cookie captured in a hidden field so earlier web activity joins the lead.

Free · 30 min

Get Contact Form 7 and Marketo joined properly

Free30 minutesNo obligation