Skip to main content
Medusa → SnapchatIntegration guide

Connecting Medusa to Snapchat

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. Snapchat's audience is young, almost entirely mobile and inside an in-app browser, which is the least forgiving environment for browser-based tracking anywhere in paid media. The join between them succeeds or fails on one thing: whether the ScCid click identifier reaches the Medusa order before the conversion happens, because Snapchat can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

Medusa to Snapchat CAPI: keep the ScCid alive until a cart exists

Snapchat visitors often create carts after the in-app browser has lost URL data, so capture the ScCid server-side on first request and copy it into Medusa cart metadata later. Send PURCHASE from the payment-captured subscriber with total, currency, catalog item IDs, hashed email and phone, checkout IP and user agent, sharing the order ID.

The usual Medusa advice is to write click identifiers into cart metadata, but Snapchat traffic exposes a timing gap: the cart often does not exist when the visitor lands. They arrive in Snapchat's in-app browser, browse, and only create a cart on add-to-cart, by which time the webview may have lost what was in the URL or local storage. Capture the ScCid server-side on the first request, keyed to a first-party ID, and copy it into cart metadata when the cart is created.

Snapchat matching on this traffic leans on more than the click ID. Record the visitor's IP address and user agent on the cart at checkout, because a subscriber running on your server only sees the server's own. Then send PURCHASE from the payment-captured subscriber with the paid total, currency, item IDs that match your Snapchat catalog if you run one, hashed email and hashed phone. Use the Medusa order ID as the shared event identifier with the Snap Pixel on the confirmation page.

Many Snapchat buyers close the webview the moment payment succeeds, so the confirmation page and its pixel event often never load. That is precisely why the server event from Medusa matters on this channel: it is the only record of those purchases Snapchat will receive.

Medusa → Snapchat · what breaks

Why this join usually fails — Medusa → Snapchat

  1. 01

    The ScCid click identifier 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 in-app browser loses the identifier

    Snapchat traffic arrives through a webview with inconsistent storage. Anything relying on the identifier still being in the browser at conversion time will lose a large share, and the loss is invisible unless you measure capture on Snapchat traffic specifically.

  4. 04

    Nothing reconciles afterwards

    Snapchat Ads Manager shows received and matched events. Arriving is not the test — deduplicated and matched is. Reconcile against your own records for the same window.

Medusa → Snapchat · the fix

What working looks like — Medusa → Snapchat

  • The ScCid click identifier on every order

  • Conversions arriving in Snapchat

    Events appear in Snapchat Ads Manager, deduplicated against the pixel, and become usable for optimization.

  • Reconciled against the source

Medusa → Snapchat · architecture

How Medusa and Snapchat 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

    Snapchat needs a click to match

    Snapchat matches server events on the click identifier and hashed customer information. Send both — on this traffic the fallback carries a meaningful share of the events.

  3. 3

    The identifier is the bridge

    The ScCid click identifier, 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

    Snapchat deduplicates on a client-supplied event identifier shared between the pixel and the Conversions API, the same pattern as Meta. Mismatched identifiers mean double counting.

Medusa → Snapchat · normal or broken

Working vs. broken, side by side — Medusa → Snapchat

Normal, not a fault

  • The ScCid click identifier present on the order

  • Sent from a Medusa subscriber on order payment capture

  • Deduplicated correctly

    Snapchat deduplicates on a client-supplied event identifier shared between the pixel and the Conversions API, the same pattern as Meta. Mismatched identifiers mean double counting.

  • Reconciles with the source

Actually broken

  • The ScCid click identifier 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

    Snapchat traffic arrives through a webview with inconsistent storage. Anything relying on the identifier still being in the browser at conversion time will lose a large share, and the loss is invisible unless you measure capture on Snapchat traffic specifically.

  • Nobody has reconciled it

Medusa → Snapchat · diagnose

Diagnostic order — Medusa → Snapchat

  1. 01

    Count orders carrying the ScCid click identifier

  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

    Measure capture rate on Snapchat traffic alone

    The in-app browser is the failure case, so a healthy overall rate can hide a poor one on precisely the traffic you are paying for.

  5. 05

    Read the match rate, not the success message

    Snapchat Ads Manager shows received and matched events. Arriving is not the test — deduplicated and matched is. Reconcile against your own records for the same window.

Medusa → Snapchat · prove

How it gets proven — Medusa → Snapchat

Source of truth

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

  • The ScCid click identifier confirmed present on a live order.
  • Capture rate measured on Snapchat traffic specifically, and deduplication confirmed on a real conversion.
  • Payment-captured orders reconciled against imported conversions.

Medusa → Snapchat · free audit

What we check in the free audit

  • Count orders carrying the ScCid click identifier
  • Follow one real conversion end to end
  • Check which event your subscriber listens to
  • Measure capture rate on Snapchat traffic alone
  • 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 → Snapchat · when not to buy

When you don't need this — Medusa → Snapchat

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the ScCid click identifier.
  • If every payment method you accept is instant, the two events nearly coincide and the distinction costs more than it returns.
  • If your customers are not in Snapchat's age profile, the channel is the wrong question and no measurement work fixes that.

Medusa → Snapchat · what we deliver

What gets built — Medusa → Snapchat

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

    Server events to the Snapchat Conversions API with the click identifier, hashed customer data and a matched event identifier.

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

Usually the buyer closed Snapchat's in-app browser before the confirmation page loaded. Send PURCHASE server-side from the payment-captured subscriber.

Free · 30 min

Get Medusa and Snapchat joined properly

Free30 minutesNo obligation