Skip to main content
NexHealth → GA4Integration guide

Connecting NexHealth to GA4

NexHealth sits between a practice website and the practice management system, syncing appointments both ways for healthcare providers. 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 NexHealth appointment 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

NexHealth to GA4: booking measurement without sending PHI

Google signs no business associate agreement for GA4, so send only a generic generate_lead when the NexHealth widget confirms a booking, with no appointment reason, specialty, procedure, identifying field or revealing page path. Check what the widget exposes and whether enhanced measurement captures form fields. Don't send attended appointments through Measurement Protocol without a written compliance view.

Google does not sign a business associate agreement for GA4, so nothing that counts as protected health information can go into it. With NexHealth that rules out the obvious approach of sending appointment details: no appointment reason, provider specialty, procedure or patient-identifying field, and no page path or title that reveals them, such as a booking URL that names the treatment.

What GA4 can safely hold is an aggregate signal: a generic generate_lead when the NexHealth widget confirms a booking, with no parameters beyond a non-identifying value. Check what events the embedded widget exposes to the page, and whether GA4's enhanced measurement form interactions are picking up widget fields; they can record more than you intended.

Sending attended new-patient appointments back to GA4 through Measurement Protocol ties a GA4 client_id to the fact that a person became a patient, which is the kind of disclosure HHS has warned about for tracking technologies. Get a written view from your compliance lead before doing it; many practices keep attendance data in the practice system and report it outside GA4.

NexHealth → GA4 · what breaks

Why this join usually fails — NexHealth → GA4

  1. 01

    The GA4 client_id never reaches NexHealth

    The booking widget is embedded on your site, which is better than most healthcare booking flows, but the identifier still has to be carried into the appointment. Health information must never travel with it.

  2. 02

    Appointment reason travelling with the identifier

    A booking widget that captures reason-for-visit and passes it onward sends health information to an ad platform. The identifier must stay opaque and unaccompanied.

  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.

NexHealth → GA4 · the fix

What working looks like — NexHealth → GA4

  • The GA4 client_id on every appointment

  • 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

NexHealth → GA4 · architecture

How NexHealth and GA4 actually connect

  1. 1

    NexHealth holds the truth

    NexHealth's value is real-time availability from systems that were never designed to expose it. The appointment ultimately lives in the practice system.

  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 NexHealth appointment.

  4. 4

    The event source decides reliability

    Send attended appointments for new patients, valued at expected patient lifetime rather than a single visit.

  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.

NexHealth → GA4 · normal or broken

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

Normal, not a fault

  • The GA4 client_id present on the appointment

  • Sent from the NexHealth appointment 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

    The booking widget is embedded on your site, which is better than most healthcare booking flows, but the identifier still has to be carried into the appointment. Health information must never travel with it.

  • Sent from the browser

    A booking widget that captures reason-for-visit and passes it onward sends health information to an ad platform. The identifier must stay opaque and unaccompanied.

  • 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

NexHealth → GA4 · diagnose

Diagnostic order — NexHealth → GA4

  1. 01

    Count appointments carrying the GA4 client_id

  2. 02

    Follow one real conversion end to end

  3. 03

    Audit exactly what the widget passes onward

    Confirm no appointment reason, procedure or clinical field leaves your systems.

  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.

NexHealth → GA4 · prove

How it gets proven — NexHealth → GA4

Source of truth

The practice management system NexHealth syncs to — it is the sync layer, not the record of truth.

  • The GA4 client_id confirmed present on a live appointment.
  • Server events confirmed in DebugView attaching to an existing session with the original traffic source intact.
  • A written statement of what is sent, confirming no clinical field is included.

NexHealth → GA4 · free audit

What we check in the free audit

  • Count appointments carrying the GA4 client_id
  • Follow one real conversion end to end
  • Audit exactly what the widget passes onward
  • Check whether server events carry a session and a source
  • Read the match rate, not the success message

Checked against

The practice management system NexHealth syncs to — it is the sync layer, not the record of truth.

Get my free conversion tracking audit

Free30 minutesNo obligation

NexHealth → GA4 · when not to buy

When you don't need this — NexHealth → GA4

  • Measure identifier coverage yourself first — pull your last hundred appointments and count how many carry the GA4 client_id.
  • If your practice system already exposes appointments directly, NexHealth may be a layer you do not need in the measurement path.
  • 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.

NexHealth → GA4 · what we deliver

What gets built — NexHealth → GA4

  • Identifier capture into NexHealth

    Pass the identifier into the widget's supported fields as an opaque value, keeping it entirely separate from any clinical or appointment-reason data.

  • Event source: the NexHealth appointment webhook

    Send attended appointments for new patients, valued at expected patient lifetime rather than a single visit.

  • 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

    Cancellations and no-shows reduce the figure, and new-patient no-show rates are meaningful.

Written guarantee

95%+ tracking accuracy

Measured against The practice management system NexHealth syncs to — it is the sync layer, not the record of truth.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

NexHealth → GA4 questions, answered

No. Google does not sign a BAA for GA4, so you cannot send PHI to it, and appointment details, reasons and patient identifiers must stay out of every event and URL.

Free · 30 min

Get NexHealth and GA4 joined properly

Free30 minutesNo obligation