Skip to main content
Gravity Forms → MarketoIntegration guide

Connecting Gravity Forms to Marketo

Gravity Forms stores the entry in your own WordPress database, which makes it one of the easier sources to join correctly. 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 Gravity Forms entry 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

Gravity Forms leads into Marketo, tied to their web history

Capture the Munchkin tracking cookie into a Gravity Forms hidden field, create or update the lead through Marketo's REST API, then call associate-lead so earlier web activity joins the lead. Map form ID or program name to fields scoring reads. Send only from the after-submission hook, and confirm one entry produces one activity, whichever add-on you use.

Teams use Gravity Forms instead of embedded Marketo forms for styling and spam control, and pay for it in lost history: a lead created through the REST API has no link to the anonymous Munchkin activity the person built up before submitting. Capture the Munchkin tracking cookie into a hidden field at submit, and after creating or updating the lead, call Marketo's associate-lead operation with it. Without that step the lead score starts at whatever the form alone is worth.

Map Gravity Forms fields to the Marketo fields your scoring and routing rules actually read, including the form ID or a program name, so a webinar signup and a demo request do not score identically. Check whether you are using a third-party Gravity Forms Marketo add-on; several exist, and their handling of the Munchkin cookie and duplicate leads varies. Confirm what yours does on a test lead rather than trusting the settings screen.

Duplicates usually come from Gravity Forms side effects: an entry resubmitted after a validation error, or a webhook firing again when someone edits the entry in the WordPress admin. Each push can log another form-fill activity and bump the score again. Send only from the after-submission hook and check the lead's activity log for one entry, one activity.

Gravity Forms → Marketo · what breaks

Why this join usually fails — Gravity Forms → Marketo

  1. 01

    The lead record, keyed on email never reaches Gravity Forms

    The identifier must be written into a hidden field with dynamic population enabled, and that only works if the parameter is on the URL when the page renders. Page caching serves a cached render to the visitor, so the dynamic population never runs — the same caching problem that breaks WooCommerce.

  2. 02

    Dynamic population fails silently under page caching

    The field is configured correctly and still arrives empty, because the visitor was served a cached page rendered for someone else. This is the most common Gravity Forms failure and it looks like nothing is wrong.

  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.

Gravity Forms → Marketo · the fix

What working looks like — Gravity Forms → Marketo

  • The lead record, keyed on email on every entry

  • 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

Gravity Forms → Marketo · architecture

How Gravity Forms and Marketo actually connect

  1. 1

    Gravity Forms holds the truth

    The entry lives in your database with every field value attached. You can query it, back it up and reconcile against it without depending on any third party, which is a real advantage over hosted form tools.

  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 Gravity Forms entry.

  4. 4

    The event source decides reliability

    Fire server-side from the PHP hook. This runs regardless of caching, AJAX submission, or what the confirmation page does.

  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.

Gravity Forms → Marketo · normal or broken

Working vs. broken, side by side — Gravity Forms → Marketo

Normal, not a fault

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

  • Sent from the gform_after_submission 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

    The identifier must be written into a hidden field with dynamic population enabled, and that only works if the parameter is on the URL when the page renders. Page caching serves a cached render to the visitor, so the dynamic population never runs — the same caching problem that breaks WooCommerce.

  • Sent from the browser

    The field is configured correctly and still arrives empty, because the visitor was served a cached page rendered for someone else. This is the most common Gravity Forms failure and it looks like nothing is wrong.

  • 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

Gravity Forms → Marketo · diagnose

Diagnostic order — Gravity Forms → Marketo

  1. 01

    Count entrys carrying the lead record, keyed on email

  2. 02

    Follow one real conversion end to end

  3. 03

    Submit a test entry through a cached page

    Not through a logged-in admin session, which bypasses the cache. If the hidden field is empty on the cached path and populated on the admin path, caching is your cause.

  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.

Gravity Forms → Marketo · prove

How it gets proven — Gravity Forms → Marketo

Source of truth

The Gravity Forms entries list for the same window, or the wp_gf_entry table directly.

  • The lead record, keyed on email confirmed present on a live entry.
  • Activities confirmed on single lead records with score changes matching the configured rules, and no duplicate leads created.
  • Entry meta confirmed populated on a submission made from a fully cached page as an anonymous visitor.

Gravity Forms → Marketo · free audit

What we check in the free audit

  • Count entrys carrying the lead record, keyed on email
  • Follow one real conversion end to end
  • Submit a test entry through a cached page
  • Check the lead's activity log after a test conversion
  • Read the match rate, not the success message

Checked against

The Gravity Forms entries list for the same window, or the wp_gf_entry table directly.

Get my free conversion tracking audit

Free30 minutesNo obligation

Gravity Forms → Marketo · when not to buy

When you don't need this — Gravity Forms → Marketo

  • Measure identifier coverage yourself first — pull your last hundred entrys and count how many carry the lead record, keyed on email.
  • If your site has no caching layer and one form, a developer can wire this in an afternoon. Worth trying before hiring anyone.
  • If your sales team does not act on lead scores, pushing conversions into Marketo produces a tidier database and changes nothing about revenue.

Gravity Forms → Marketo · what we deliver

What gets built — Gravity Forms → Marketo

  • Identifier capture into Gravity Forms

    Hidden field with 'allow field to be populated dynamically' enabled and a parameter name set, plus a cookie fallback via a gform filter so the identifier survives a visitor who browsed several pages before converting.

  • Event source: the gform_after_submission hook

    Fire server-side from the PHP hook. This runs regardless of caching, AJAX submission, or what the confirmation page does.

  • 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, though entries marked spam should be excluded from the send.

Written guarantee

95%+ tracking accuracy

Measured against The Gravity Forms entries list for the same window, or the wp_gf_entry table directly.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Gravity Forms → Marketo questions, answered

Only if you pass the Munchkin cookie value with the submission and associate it with the lead after creating it. Otherwise prior page visits stay on an anonymous record.

Free · 30 min

Get Gravity Forms and Marketo joined properly

Free30 minutesNo obligation