How-to Guide

How to Set Up Google Analytics 4 for a Medical Practice From Scratch

Short answer

Setting up GA4 for a medical practice means creating a property, adding the web data stream's tag to every page, then configuring two or three key events — form submission and phone click — as conversions. The part generic GA4 tutorials skip: never let any field capture a patient's name, condition, or appointment reason.

By Gio LaRocheUpdated 8 min read
Get my free auditor call (561) 291-2681

Create the property and data stream

In Google Analytics, create a new GA4 property under your Google account (a Google Workspace or personal Gmail account the practice controls, not an employee's personal one). Set the correct time zone and currency for reporting, then add a 'Web' data stream pointed at your practice's domain. GA4 generates a Measurement ID (format G-XXXXXXXXXX) and a small gtag.js snippet — that snippet needs to load on every single page of the site, which in practice usually means placing it in a shared header or layout file once, rather than copying it page by page. Create the property under a Google account the practice owns, not an agency's or a former employee's, as explained in who should own a medical practice's Google accounts and domain. Most practices load Analytics through a container, and the checklist for setting up Google Tag Manager without sending patient data shows how to keep that container small and reviewed.

Decide what actually counts as a conversion

GA4 automatically tracks some events — page views, scrolls, outbound clicks — but the events that matter for a practice are the ones that represent a patient trying to reach you: submitting a contact or appointment-request form, and clicking a phone number on mobile. Neither is tracked by default; both need to be configured as custom events and then marked as conversions inside GA4's Admin > Events panel. Once the property is collecting data, add UTM links on your Google Business Profile and directory listings so that visits from your listings are labelled instead of lumped into one bucket. Appointments booked in an outside scheduling tool need their own setup, described in conversion tracking for third-party booking widgets, so the conversion does not disappear.

  1. 1Form submission: fire a custom event (commonly named generate_lead or form_submit) when the form's success state loads, not on button click — a click fires even if validation fails.
  2. 2Phone click: fire a custom event (click_to_call or phone_call) on every tel: link's click, which captures mobile users who tap to dial without ever submitting a form.
  3. 3Mark both as a 'key event' (GA4's current term for what used to be called a conversion) in Admin, so they surface in reports and can be imported into Google Ads for conversion-based bidding.

What has to stay out of GA4 entirely

This is the step a generic GA4 tutorial never mentions and a healthcare practice cannot skip: no field in any tracked event may contain a patient's name, email, phone number, condition, or appointment reason as plain text sent to Google's servers. HHS has stated that using tracking technologies in a way that discloses protected health information to a third party like Google without a valid authorization can violate HIPAA, even when the practice didn't intend to send PHI and even when the identifying detail arrived through something as simple as a URL parameter or a form field name. Track that a form was submitted — never what was typed into it. Once data is flowing, use this monthly routine for reading GA4 reports so the numbers lead to decisions. A lead event only means something if fake submissions are filtered out first, so see how to stop spam and fake leads on a medical practice contact form. When you add a vendor, pick a role from the access level guide for Google Business Profile, Search Console and Analytics.

Link it to Google Ads and Search Console

Once the key events exist, link the GA4 property to your Google Ads account (Admin > Product Links > Google Ads Linking) so conversions can be imported for bidding, and separately link Search Console (Admin > Product Links > Search Console Links) to see which organic queries actually drive the sessions that convert. Both links take a few minutes and turn GA4 from a standalone report into the thing that tells you whether your marketing spend is working. Pair GA4 with Search Console, which shows what happens in Google before the click; see how to read Google Search Console for a medical practice website. Analytics only sees online activity, so pair it with a simple intake question; our guide on asking new patients how they heard about you explains how to record the answer without health details. After setup, keep your own visits out of the numbers by following the steps in excluding staff and internal traffic from Google Analytics 4. Once the data is flowing, reading the landing pages report shows which pages new visitors enter on and which of them lead to a key event.

Frequently asked questions

Do I need a developer to set up GA4?

For the basic tag and data stream, no — most website platforms have a plugin or a single header snippet. For custom conversion events like phone-click and form-submission tracking, you typically need either a tag manager (Google Tag Manager) or a developer to add a small script, since GA4 doesn't track those out of the box.

What's the difference between GA4 and the old Universal Analytics?

Universal Analytics was retired by Google in mid-2023 and no longer collects data. GA4 is a different measurement model built around events rather than sessions and pageviews as the primary unit, which is why conversions in GA4 are called 'key events' and often need to be configured manually rather than appearing automatically.

Can GA4 violate HIPAA for a medical practice?

It can, if tracked data includes protected health information — a patient's name, condition, or appointment detail sent to Google as part of an event or URL parameter. HHS guidance addresses this directly. The fix is tracking that an action happened (form submitted, call clicked) without tracking what the patient entered.

What should I set up as a 'key event' in GA4?

At minimum, a form submission event and a phone-click event — the two actions that represent a real patient inquiry. Practices with online booking should add a booking-completed event as a third. Avoid marking low-value actions like scroll depth as key events; it dilutes the reports that matter.

How do I know if GA4 is actually working after setup?

Use GA4's Realtime report: open your own site in an incognito window, submit a test form or click a tracked phone link, and confirm the event appears in Realtime within a minute or two. If it doesn't show up there, it won't show up in standard reports either — fix it before relying on any numbers.

Sources

Keep reading

Ready to Grow Your Practice?

Primara is now accepting new independent practices nationwide. Most new engagements begin within one week.

Send Us a Message

We respond within one business day.

* Required field

We'll call to confirm your consultation.

No spam, ever. HIPAA-aware agency. We respond within one business day. For urgent inquiries, call (561) 291-2681.

Founder-LedHIPAA-AwareServing Practices Nationwide