Skip to main content
Square → GA4Integration guide

Connecting Square to GA4

Square holds the transaction, and for most Square businesses the majority of those transactions are a card tapped at a counter with no browser anywhere near them. 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 Square payment or 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

Square in GA4: online orders in, counter payments kept out

Send Square Online orders to GA4 and keep counter payments out. Use Square Online's measurement ID setting, or carry the client_id into the order and send purchase from the payment webhook with the Square order ID as transaction_id, disabling the built-in purchase. Appointment payments can be sent within 72 hours; refunds use the same transaction_id.

GA4 is a web and app analytics tool, and for Square that means one clear rule: send Square Online orders and keep counter payments out. Pushing in-person payments into GA4 through Measurement Protocol without a client_id creates a stream of sourceless new users and drowns the online report, which is the Square version of the (direct)/(none) problem.

Square Online has a setting for a Google Analytics measurement ID; check which ecommerce events it sends in your version, since the hosted checkout runs on Square's side and you cannot edit it. If you need more control, check whether your setup lets you carry the client_id into the order, then send purchase from the payment webhook when the payment completes, with the Square order ID as transaction_id and items from the order line items. Turn off the built-in purchase event if you do, or GA4 counts both.

For services, the bridge is Square Appointments. A booking made online can carry the client_id, and the payment at the visit can be sent as purchase if it is linked to the same customer. Send it at payment time, because Measurement Protocol backdates only 72 hours. Square refunds map cleanly to GA4's refund event with the same transaction_id.

Square → GA4 · what breaks

Why this join usually fails — Square → GA4

  1. 01

    The GA4 client_id never reaches Square

    Square Online checkout is hosted, so the identifier must be carried deliberately rather than by cookie. For in-person payments there is no identifier at all unless the customer booked an appointment or is in the customer directory — a walk-in who taps a card cannot be joined to an ad click by anyone.

  2. 02

    Most of the revenue has no browser

    A card at a terminal has no click, no session and no identifier. That is a boundary to measure rather than a bug to fix, and the honest deliverable includes how much of your revenue sits outside it.

  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.

Square → GA4 · the fix

What working looks like — Square → GA4

  • The GA4 client_id on every transaction

  • 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

Square → GA4 · architecture

How Square and GA4 actually connect

  1. 1

    Square holds the truth

    Square records every payment with its amount, channel and, where the customer is identified, a link to the customer directory. That directory is the only bridge between a counter payment and anything that happened online.

  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 Square payment or order.

  4. 4

    The event source decides reliability

    Subscribe to payment and order events and send from your server. This covers online orders cleanly, and covers in-person payments only for the share you can join to an identity.

  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.

Square → GA4 · normal or broken

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

Normal, not a fault

  • The GA4 client_id present on the transaction

  • Sent from the Square payment webhook

  • 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

    Square Online checkout is hosted, so the identifier must be carried deliberately rather than by cookie. For in-person payments there is no identifier at all unless the customer booked an appointment or is in the customer directory — a walk-in who taps a card cannot be joined to an ad click by anyone.

  • Sent from the browser

    A card at a terminal has no click, no session and no identifier. That is a boundary to measure rather than a bug to fix, and the honest deliverable includes how much of your revenue sits outside it.

  • 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

Square → GA4 · diagnose

Diagnostic order — Square → GA4

  1. 01

    Count transactions carrying the GA4 client_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Split Square revenue by channel before anything else

    Online versus in-person. Every subsequent number depends on that split, and blending them makes both unreadable.

  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.

Square → GA4 · prove

How it gets proven — Square → GA4

Source of truth

Square's transaction list, split by channel — online and in-person are different questions.

  • The GA4 client_id confirmed present on a live transaction.
  • Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
  • The in-person join rate measured and stated as a number before any coverage claim is made.

Square → GA4 · free audit

What we check in the free audit

  • Count transactions carrying the GA4 client_id
  • Follow one real conversion end to end
  • Split Square revenue by channel before anything else
  • Check whether server events carry a session and a source
  • Read the match rate, not the success message

Checked against

Square's transaction list, split by channel — online and in-person are different questions.

Get my free conversion tracking audit

Free30 minutesNo obligation

Square → GA4 · when not to buy

When you don't need this — Square → GA4

  • Measure identifier coverage yourself first — pull your last hundred transactions and count how many carry the GA4 client_id.
  • If nearly all your revenue is in person with no appointments and no identified customers, there is very little here to attribute and we will say so rather than build a bridge to nothing.
  • 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.

Square → GA4 · what we deliver

What gets built — Square → GA4

  • Identifier capture into Square

    Capture the click identifier and carry it into Square Online checkout, and for in-person work use an appointment booking as the bridge so the eventual payment can be joined through the customer record.

  • Event source: the Square payment webhook

    Subscribe to payment and order events and send from your server. This covers online orders cleanly, and covers in-person payments only for the share you can join to an identity.

  • 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

    Square exposes refunds clearly, and in hospitality and services voids and comps are frequent enough that wiring the reversal matters.

Written guarantee

95%+ tracking accuracy

Measured against Square's transaction list, split by channel — online and in-person are different questions.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

Square → GA4 questions, answered

Square Online lets you add a Google Analytics measurement ID in its integrations settings. Check which ecommerce events it sends in your version before adding your own purchase tracking.

Free · 30 min

Get Square and GA4 joined properly

Free30 minutesNo obligation