Skip to main content
ShipBob → GA4Integration guide

Connecting ShipBob to GA4

ShipBob is outsourced fulfilment, which means pick, pack and storage fees sit between the order value and what you keep — and none of them are visible at checkout. GA4 is where the business goes to understand what happened, which makes an unattributed conversion there expensive in decisions rather than in ad spend. The join between them succeeds or fails on one thing: whether the GA4 client_id reaches the ShipBob order before the conversion happens, because GA4 can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

ShipBob to GA4: keeping revenue and fulfillment cost apart

Keep GA4 purchase value as order revenue and record ShipBob fulfilment cost beside it as a custom metric, either on a separate server-side event joined on order ID with the original client_id, or as an estimate on the purchase. Never reuse the purchase event name. Send refunds and return handling fees as separate events.

GA4 is the one destination where you should not replace order value with margin. Finance, merchandising and every ecommerce report in GA4 assume purchase value is revenue, and swapping in contribution margin breaks reconciliation with the store. Keep purchase value as order value and record ShipBob's fulfillment cost alongside it.

There are two ways to do that. Send a separate server-side event after ShipBob reports the shipment, joined on the order ID, carrying pick, pack and shipping cost as a custom metric, with the original client_id. Or, if cost is predictable from your ShipBob rate card, add an estimated fulfillment cost as a custom metric on the purchase itself and skip the late event. Either way, a calculated metric for revenue minus fulfillment cost gives you margin by campaign.

Make sure the ShipBob-triggered event does not reuse the purchase event name; GA4 does not deduplicate Measurement Protocol and every order would count twice. Returns arrive later with a handling fee, so send a refund event for the order and a separate cost event for the fee, rather than netting them into one number nobody can trace.

ShipBob → GA4 · what breaks

Why this join usually fails — ShipBob → GA4

  1. 01

    The GA4 client_id never reaches ShipBob

    Fulfilment happens in a third party's system days after the order.

  2. 02

    Per-item fulfilment costs invisible in order value

    A campaign driving small multi-item baskets can look strong on revenue and be unprofitable once pick fees are counted. The order value never sees it and neither does the ad platform.

  3. 03

    Everything lands under (direct)/(none)

    The classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.

  4. 04

    Nothing reconciles afterwards

    GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.

ShipBob → GA4 · the fix

What working looks like — ShipBob → GA4

  • The GA4 client_id on every shipment

  • Conversions arriving in GA4

    Conversions appear in GA4 attributed to the original session's source and medium, so acquisition reporting reflects what actually drove revenue.

  • Reconciled against the source

ShipBob → GA4 · architecture

How ShipBob and GA4 actually connect

  1. 1

    ShipBob holds the truth

    Third-party logistics costs are per-order and per-item, so a multi-item order and a single-item order of the same value have quite different economics.

  2. 2

    GA4 needs a click to match

    GA4 needs the client_id to attach a server event to the user and session that produced the click. Without it there is no attribution to inherit and the event is orphaned.

  3. 3

    The identifier is the bridge

    The GA4 client_id, captured at the visit and carried into the ShipBob order.

  4. 4

    The event source decides reliability

    Send contribution margin rather than order value where fulfilment cost is available.

  5. 5

    Deduplication at the destination

    GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.

ShipBob → GA4 · normal or broken

Working vs. broken, side by side — ShipBob → GA4

Normal, not a fault

  • The GA4 client_id present on the shipment

  • Sent from your order system, enriched with fulfilment cost

  • Deduplicated correctly

    GA4 has no built-in deduplication for Measurement Protocol. If the browser also sends the event, it counts twice. The only reliable approach is to decide per event which side sends it, and enforce that decision — GA4 will not protect you from your own duplicates.

  • Reconciles with the source

Actually broken

  • The GA4 client_id missing on most records

    Fulfilment happens in a third party's system days after the order.

  • Sent from the browser

    A campaign driving small multi-item baskets can look strong on revenue and be unprofitable once pick fees are counted. The order value never sees it and neither does the ad platform.

  • Counted twice, or not at all

    The classic Measurement Protocol symptom, and it always means the same thing: the client_id was missing or wrong, so GA4 had no session to attach the event to and invented a new user.

  • Nobody has reconciled it

ShipBob → GA4 · diagnose

Diagnostic order — ShipBob → GA4

  1. 01

    Count shipments carrying the GA4 client_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Compute contribution margin per campaign for one month

    It is a join, not a project, and it frequently reorders the campaign ranking.

  4. 04

    Check whether server events carry a session and a source

    In GA4 Realtime or DebugView, find the event and look at its session and traffic source. A brand-new user with no source on every server event is the missing-client_id signature.

  5. 05

    Read the match rate, not the success message

    GA4 DebugView shows events arriving with their parameters, and Realtime confirms the user and session they attached to. Neither tells you whether you are double-counting — for that, compare GA4's conversion count against the source system's record for the same window.

ShipBob → GA4 · prove

How it gets proven — ShipBob → GA4

Source of truth

Orders joined to their fulfilment cost, including pick, pack, storage and shipping.

  • The GA4 client_id confirmed present on a live shipment.
  • Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
  • Orders reconciled at contribution margin against imported conversions.

ShipBob → GA4 · free audit

What we check in the free audit

  • Count shipments carrying the GA4 client_id
  • Follow one real conversion end to end
  • Compute contribution margin per campaign for one month
  • Check whether server events carry a session and a source
  • Read the match rate, not the success message

Checked against

Orders joined to their fulfilment cost, including pick, pack, storage and shipping.

Get my free conversion tracking audit

Free30 minutesNo obligation

ShipBob → GA4 · when not to buy

When you don't need this — ShipBob → GA4

  • Measure identifier coverage yourself first — pull your last hundred shipments and count how many carry the GA4 client_id.
  • If your fulfilment cost is flat per order and small relative to basket value, order value is a fine proxy.
  • GA4 is reporting, not bidding. If your problem is ad platform optimization, fix the ad platform destination first — GA4 will not change what any campaign does.

ShipBob → GA4 · what we deliver

What gets built — ShipBob → GA4

  • Identifier capture into ShipBob

    Join on the order identifier and pull the fulfilment cost back onto the order before valuing the conversion.

  • Event source: your order system, enriched with fulfilment cost

    Send contribution margin rather than order value where fulfilment cost is available.

  • Dispatch to GA4

    Measurement Protocol events with the client_id, session_id and the correct measurement ID and API secret, sent server-side.

  • Reversals where they exist

    Returns reverse, including the return handling fee.

Written guarantee

95%+ tracking accuracy

Measured against Orders joined to their fulfilment cost, including pick, pack, storage and shipping.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

ShipBob → GA4 questions, answered

No. Keep purchase value as revenue, record fulfillment cost as a custom metric, and calculate margin from the two. Changing purchase value breaks reconciliation with your store.

Free · 30 min

Get ShipBob and GA4 joined properly

Free30 minutesNo obligation