Skip to main content
Medusa → Google AdsIntegration guide

Connecting Medusa to Google Ads

Medusa is a Node commerce engine you extend in your own codebase, which makes the conversion event a piece of application code — and therefore something that can be tested rather than hoped for. Google Ads knows what you spent and which click it came from, and nothing at all about what happened afterwards. The join between them succeeds or fails on one thing: whether the GCLID reaches the Medusa order before the conversion happens, because Google Ads can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Medusa to Google Ads: uploads from captured payments

Capture gclid, gbraid or wbraid into Medusa cart metadata, then upload from the payment-captured subscriber to an import conversion action using capture time, with hashed order email for enhanced conversions. Make the import action primary and the storefront tag secondary or removed. Send refunds as adjustments, and test with a real click and test payment.

A Medusa backend can upload conversions to Google Ads directly from the payment-captured subscriber, or queue them for a scheduled upload, against an import-type conversion action. The storefront has to capture gclid, gbraid and wbraid on landing and write whichever is present into cart metadata, so the order carries it when it is created. Store the shopper's email from the order too, hashed at upload time, for enhanced conversions when no click ID exists.

Keep this action separate from any Google tag purchase conversion on the storefront. Google deduplicates uploads on the click, conversion action and time, but the same order counted once by a website tag action and once by an import action is two conversions. Set the import action as primary and either remove the tag action or mark it secondary, so bidding sees each paid order once.

The conversion time should be the capture time Medusa records, not the moment the upload job runs. If you authorize at checkout and capture at shipment, the gap counts toward Google's 90-day window from the click, which matters for pre-orders and backorders. When Medusa emits a refund, send a conversion adjustment to retract or restate the order value, and test the whole path with a real ad click and a test payment before trusting the numbers in bidding.

Medusa → Google Ads · what breaks

Why this join usually fails — Medusa → Google Ads

  1. 01

    The GCLID never reaches Medusa

    The storefront is separate from the backend, and the identifier must be attached to the cart before the order is created.

  2. 02

    Firing on order placed rather than payment captured

    They are different events and the gap between them contains every failed and pending payment. Order-placed is the easier hook and the wrong one.

  3. 03

    The conversion action is the wrong type

    Uploads against a standard website conversion action fail. The action has to be created as 'Import' — and existing actions cannot be converted, so this is discovered late and requires starting a new action with no history.

  4. 04

    Nothing reconciles afterwards

    Google Ads reports uploads in Goals → Conversions → Uploads, with rows accepted and rows failed. A green result means the file parsed, not that the clicks matched. The number to watch is how many conversions actually appear against campaigns afterwards.

Medusa → Google Ads · the fix

What working looks like — Medusa → Google Ads

  • The GCLID on every order

  • Conversions arriving in Google Ads

    Conversions appear against the campaign, ad group and keyword that produced the click, with the value you sent — which is what lets Smart Bidding optimize toward revenue instead of toward form fills.

  • Reconciled against the source

Medusa → Google Ads · architecture

How Medusa and Google Ads actually connect

  1. 1

    Medusa holds the truth

    Because you own the event handlers, the conversion can fire from the payment-captured event specifically rather than from whatever the frontend happened to render.

  2. 2

    Google Ads needs a click to match

    Google Ads matches an uploaded conversion back to a click using the GCLID. The conversion action must be created as an import type — an upload against a website-tag conversion action is rejected. Uploads must also land inside Google's window: the click has to be within the last 90 days.

  3. 3

    The identifier is the bridge

    The GCLID, captured at the visit and carried into the Medusa order.

  4. 4

    The event source decides reliability

    Send orders at payment capture, at the paid total.

  5. 5

    Deduplication at the destination

    Google deduplicates on the combination of GCLID, conversion action and conversion time. Uploading the same click twice against the same action at the same timestamp is rejected rather than double-counted, but uploading it against a second conversion action counts twice — which is how most double-counting here actually happens.

Medusa → Google Ads · normal or broken

Working vs. broken, side by side — Medusa → Google Ads

Normal, not a fault

  • The GCLID present on the order

  • Sent from a Medusa subscriber on order payment capture

  • Deduplicated correctly

    Google deduplicates on the combination of GCLID, conversion action and conversion time. Uploading the same click twice against the same action at the same timestamp is rejected rather than double-counted, but uploading it against a second conversion action counts twice — which is how most double-counting here actually happens.

  • Reconciles with the source

Actually broken

  • The GCLID missing on most records

    The storefront is separate from the backend, and the identifier must be attached to the cart before the order is created.

  • Sent from the browser

    They are different events and the gap between them contains every failed and pending payment. Order-placed is the easier hook and the wrong one.

  • Counted twice, or not at all

    Uploads against a standard website conversion action fail. The action has to be created as 'Import' — and existing actions cannot be converted, so this is discovered late and requires starting a new action with no history.

  • Nobody has reconciled it

Medusa → Google Ads · diagnose

Diagnostic order — Medusa → Google Ads

  1. 01

    Count orders carrying the GCLID

  2. 02

    Follow one real conversion end to end

  3. 03

    Check which event your subscriber listens to

    One line of code, and it decides whether you are counting orders or counting money.

  4. 04

    Check the conversion action type and the upload diagnostics

    In Google Ads, Goals → Conversions → Uploads shows every upload with its error rows. Read the errors rather than the success count; a file can import successfully with most rows rejected.

  5. 05

    Read the match rate, not the success message

    Google Ads reports uploads in Goals → Conversions → Uploads, with rows accepted and rows failed. A green result means the file parsed, not that the clicks matched. The number to watch is how many conversions actually appear against campaigns afterwards.

Medusa → Google Ads · prove

How it gets proven — Medusa → Google Ads

Source of truth

Medusa orders by payment status, emitted from your own subscriber code.

  • The GCLID confirmed present on a live order.
  • The Uploads diagnostics read row by row, with the accepted count reconciled against conversions appearing in campaign reporting.
  • Payment-captured orders reconciled against imported conversions.

Medusa → Google Ads · free audit

What we check in the free audit

  • Count orders carrying the GCLID
  • Follow one real conversion end to end
  • Check which event your subscriber listens to
  • Check the conversion action type and the upload diagnostics
  • Read the match rate, not the success message

Checked against

Medusa orders by payment status, emitted from your own subscriber code.

Get my free conversion tracking audit

Free30 minutesNo obligation

Medusa → Google Ads · when not to buy

When you don't need this — Medusa → Google Ads

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the GCLID.
  • If every payment method you accept is instant, the two events nearly coincide and the distinction costs more than it returns.
  • If your sales close inside a few days and your website tag already reports accurately, you may not need offline import at all. It exists to solve the delay between click and revenue.

Medusa → Google Ads · what we deliver

What gets built — Medusa → Google Ads

  • Identifier capture into Medusa

    Write the identifier into cart metadata at first touch so it is carried onto the order automatically at completion.

  • Event source: a Medusa subscriber on order payment capture

    Send orders at payment capture, at the paid total.

  • Dispatch to Google Ads

    Offline Conversion Import through the Google Ads API, or a scheduled upload. Enhanced conversions for leads where GCLID coverage is poor and you have consented email addresses.

  • Reversals where they exist

    Refunds emit their own event and should reverse.

Written guarantee

95%+ tracking accuracy

Measured against Medusa orders by payment status, emitted from your own subscriber code.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Medusa → Google Ads questions, answered

Yes. A subscriber on payment capture can upload to an import-type conversion action with the gclid from cart metadata and hashed email for enhanced conversions. Do not leave a tag action counting the same orders as primary.

Free · 30 min

Get Medusa and Google Ads joined properly

Free30 minutesNo obligation