Skip to main content
Gravity Forms → Microsoft AdsIntegration guide

Connecting Gravity Forms to Microsoft Ads

Gravity Forms stores the entry in your own WordPress database, which makes it one of the easier sources to join correctly. Microsoft Ads reaches an older, higher-income, more desktop-weighted audience than Google, and it is routinely the cheapest qualified traffic a B2B advertiser can buy. The join between them succeeds or fails on one thing: whether the MSCLKID reaches the Gravity Forms entry before the conversion happens, because Microsoft Ads can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Gravity Forms leads as Microsoft Ads offline conversions

UET thank-you goals miss AJAX or text-confirmation forms, so use offline conversions instead. Capture the msclkid in a hidden field with cookie fallback, queue entry ID, msclkid and timestamp from gform_after_submission, skipping spam, and upload on a schedule. Don't count both UET and offline goals in bidding; upload CRM-qualified leads where possible.

Many Microsoft Ads accounts track Gravity Forms with a destination-URL goal on the thank-you page. That breaks the moment the form uses AJAX submission or an on-page text confirmation, because no new URL ever loads and UET never sees the goal. If your form is set that way, the browser goal has probably been under-counting since it was built.

The sturdier route is an offline conversion. Add a hidden field for the msclkid with dynamic population plus a cookie fallback, since Microsoft traffic is desktop-heavy and B2B visitors often browse a few pages first. From gform_after_submission, write the entry ID, msclkid and timestamp to a queue, and upload them on a schedule against an offline goal. Spam-status entries should be skipped before they reach the queue.

Microsoft deduplicates on click, goal and time, so keeping the UET goal and adding an offline goal for the same submission counts twice in bidding. Pick one as the primary conversion. If leads are qualified later in a CRM, the better offline upload is the qualified lead, still carrying the msclkid copied from the Gravity Forms entry, with the raw submission kept as a secondary goal.

Gravity Forms → Microsoft Ads · what breaks

Why this join usually fails — Gravity Forms → Microsoft Ads

  1. 01

    The MSCLKID 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

    Auto-tagging switched off

    Microsoft auto-tagging is frequently disabled in accounts that were set up quickly or imported from Google, and without it no MSCLKID arrives at all — so the entire offline import has nothing to match against and fails silently.

  4. 04

    Nothing reconciles afterwards

    Microsoft Ads reports offline conversion uploads with rows accepted and rejected. A successful upload is not a matched conversion — check that conversions actually appear against campaigns afterwards.

Gravity Forms → Microsoft Ads · the fix

What working looks like — Gravity Forms → Microsoft Ads

  • The MSCLKID on every entry

  • Conversions arriving in Microsoft Ads

    Conversions appear against the campaign, ad group and keyword that produced the click, with the value you sent, and become usable for automated bidding.

  • Reconciled against the source

Gravity Forms → Microsoft Ads · architecture

How Gravity Forms and Microsoft Ads 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

    Microsoft Ads needs a click to match

    Microsoft matches uploaded conversions to clicks using the MSCLKID, and the conversion goal must be created as an offline conversion type. The click has to fall inside Microsoft's import window — verify the current limit in your account rather than assuming it matches Google's.

  3. 3

    The identifier is the bridge

    The MSCLKID, 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

    Microsoft deduplicates on the combination of click identifier, conversion name and conversion time. Uploading the same click against a second conversion goal counts twice, which is the usual cause of inflated numbers here.

Gravity Forms → Microsoft Ads · normal or broken

Working vs. broken, side by side — Gravity Forms → Microsoft Ads

Normal, not a fault

  • The MSCLKID present on the entry

  • Sent from the gform_after_submission hook

  • Deduplicated correctly

    Microsoft deduplicates on the combination of click identifier, conversion name and conversion time. Uploading the same click against a second conversion goal counts twice, which is the usual cause of inflated numbers here.

  • Reconciles with the source

Actually broken

  • The MSCLKID 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

    Microsoft auto-tagging is frequently disabled in accounts that were set up quickly or imported from Google, and without it no MSCLKID arrives at all — so the entire offline import has nothing to match against and fails silently.

  • Nobody has reconciled it

Gravity Forms → Microsoft Ads · diagnose

Diagnostic order — Gravity Forms → Microsoft Ads

  1. 01

    Count entrys carrying the MSCLKID

  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

    Confirm auto-tagging is enabled and check the upload diagnostics

    One account setting decides whether any of this works. Then read the per-row errors on the upload rather than the success count.

  5. 05

    Read the match rate, not the success message

    Microsoft Ads reports offline conversion uploads with rows accepted and rejected. A successful upload is not a matched conversion — check that conversions actually appear against campaigns afterwards.

Gravity Forms → Microsoft Ads · prove

How it gets proven — Gravity Forms → Microsoft Ads

Source of truth

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

  • The MSCLKID confirmed present on a live entry.
  • Auto-tagging confirmed on, and the accepted count reconciled against conversions appearing in campaign reporting.
  • Entry meta confirmed populated on a submission made from a fully cached page as an anonymous visitor.

Gravity Forms → Microsoft Ads · free audit

What we check in the free audit

  • Count entrys carrying the MSCLKID
  • Follow one real conversion end to end
  • Submit a test entry through a cached page
  • Confirm auto-tagging is enabled and check the upload diagnostics
  • 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 → Microsoft Ads · when not to buy

When you don't need this — Gravity Forms → Microsoft Ads

  • Measure identifier coverage yourself first — pull your last hundred entrys and count how many carry the MSCLKID.
  • If your site has no caching layer and one form, a developer can wire this in an afternoon. Worth trying before hiring anyone.
  • If you are not running Microsoft Ads at meaningful spend, skip it — though for B2B the traffic is often cheaper and better qualified than people expect, which is worth testing before dismissing.

Gravity Forms → Microsoft Ads · what we deliver

What gets built — Gravity Forms → Microsoft Ads

  • 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 Microsoft Ads

    Offline conversion import through the Microsoft Advertising API or a scheduled upload.

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

If the form uses AJAX or a text confirmation, no thank-you URL loads, so a destination-URL goal never triggers. Use a UET custom event on confirmation or an offline conversion from the PHP hook.

Free · 30 min

Get Gravity Forms and Microsoft Ads joined properly

Free30 minutesNo obligation