Google Analytics 4, or GA4, is the free Google tool that tells your firm what visitors do once they reach your website: which pages they read, where they came from, and whether they called, sent a form or left. This guide covers the whole job in one place. It walks through installing GA4 from scratch, marking the actions that matter to a law firm as key events, keeping client information out of your reports, and reading the handful of reports worth a partner's time.
GA4 works best alongside Google Search Console. Search Console shows how your pages perform in Google search before anyone clicks, and GA4 picks up the story after the click. If Search Console is not set up yet, start with our Google Search Console setup guide for law firms.
What GA4 can and cannot tell your firm
GA4 is good at questions about behavior on your own site. Which channel sends visitors who go on to contact you? Which practice-area pages start the sessions that end in a call? Did the new homepage produce more form submissions than the old one? Are visitors coming from the cities and counties you actually serve?
It is blind to what happens after a visitor leaves, such as whether a caller became a client, what the matter was worth, or whether someone who read your divorce page on Monday called from your Google Business Profile on Thursday. GA4 measures the website, not the practice, and the Where GA4 stops section below covers how firms close that gap.
Set up GA4 from scratch
If GA4 is already running on your site, skip ahead to the key events section. To check, open any page of your website, right-click, choose View page source and search for "G-", then for "GTM-". A Measurement ID such as G-AB12CD34EF means a Google tag is installed, and your next job is to find out who controls the GA4 property it reports to. A container ID such as GTM-AB12CD3 means Google Tag Manager is installed, and it may already load GA4 even when no G- ID appears in the source, because that ID sits inside the container. Before adding anything, check the tags in that container, or run Tag Assistant at tagassistant.google.com, which lists the Google tags it finds on the page. A second GA4 tag on top of a working one records duplicate events, as Step 3 explains.
Before you start: decide who owns it
Create GA4 under a Google account the firm controls, such as a shared marketing address on the firm's Google Workspace, rather than a developer's or former employee's personal Gmail, and add a second person at the firm as an Administrator. A firm that does not own its analytics property can lose its history when a vendor relationship ends.
Step 1: Create the account and property
- Go to analytics.google.com and sign in. If this is your first property, click Start measuring. Otherwise open Admin, click Create, then Account.
- Name the account after the firm. An account is only a container, and most firms need one.
- Review the data-sharing settings, then click Next.
- Name the property (the firm name plus "website" works), and set the reporting time zone and currency to match your office.
- Choose the industry category and business size that fit the firm.
- When asked how you plan to use Analytics, choose Generate leads. This choice shapes the default reports you see, and you can add other report collections later from the Library.
- Accept the terms of service.
Step 2: Add a web data stream
A data stream is the connection between your website and the property. In Admin, under Data collection and modification, click Data streams, then Add stream, then Web. Enter your site's address including https://, give the stream a plain name such as "Firm website", leave enhanced measurement switched on, and click Create stream. Enhanced measurement records page views, scrolls, outbound clicks, file downloads and similar actions without extra code. The stream details page then shows your Measurement ID, a code that starts with G-. Copy it for the next step.
Step 3: Install the Google tag
Pick the route that matches how your site is built.
- WordPress: install Site Kit by Google, the official plugin from Google, and connect Analytics during its setup wizard. If your theme or another plugin already inserts a Google tag, remove one so only a single method remains.
- Website builders and hosted platforms: many have a built-in Google Analytics setting. Paste the Measurement ID into that field.
- Custom-built sites: on the stream details page, click View tag instructions, then Install manually, and have your developer place the snippet right after the opening head tag on every page.
- Google Tag Manager: if the site already runs Tag Manager, add a Google tag with your Measurement ID that fires on all pages, then publish the container. Tag Manager is also the easiest home for the phone and email click events described below.
Whichever route you choose, install the tag once, because loading GA4 both in the site code and through Tag Manager records duplicate events and inflates every figure. If someone else maintains the site, send them the Measurement ID and ask them to install GA4 on every page, a routine request for any web developer.
Step 4: Confirm data is arriving
Open Reports, then Realtime, and visit your site from another tab or your phone. You should appear as an active user within a few minutes, although Google notes that data collection can take up to 30 minutes to begin. The standard reports fill in more slowly, because Google says processing can take 24 to 48 hours, so empty charts on day one are normal.
For a closer look, open Tag Assistant at tagassistant.google.com and connect it to your site, then go to Admin, Data display, DebugView. DebugView lists each event as it fires, which is the quickest way to confirm that a test form submission or phone tap was recorded.
Step 5: Change three settings on day one
- Data retention. GA4 keeps detailed event data for two months unless you change it. In Admin, open Data retention and choose 14 months, the longest option for a standard property. It affects explorations and funnel reports rather than standard reports, and it cannot bring back data that has already expired, so set it now.
- Internal traffic. Partners, staff and your web team visit the site constantly. In the data stream, open Configure tag settings, then Define internal traffic, and enter your office IP address. Then open Data filters and check for an Internal Traffic filter, creating one if it is missing. Run it in the Testing state first, because once it is Active the excluded visits are never processed.
- Search Console link. In Admin, under Product links, click Search Console links and link your verified Search Console property. You need the Editor role in GA4 and verified ownership in Search Console. The Search Console report collection is unpublished by default, so publish it from the Library afterwards.
Since June 2026, GA4 can also link a Google Business Profile from Admin. Once linked, profile actions such as calls, direction requests and website clicks appear in their own report collection, which helps firms whose calls come mostly from the map listing. That data covers a rolling six-month window, so it is not a source for year-over-year comparisons.
Mark the actions that matter as key events
In 2024 Google renamed GA4 "conversions" to key events. A key event is an action that matters to the business, and the word conversion now refers to a Google Ads conversion built from a key event. If an older article tells you to mark something as a conversion, it means the same switch.
For a law firm, the actions that matter are the ones that put a prospective client in touch with you. A standard property allows up to 30 key events, but most firms need four or five. Counting scroll depth or video plays as key events inflates the totals and hides the signal.
| Action on your site | Dependable way to capture it | Suggested event name |
|---|---|---|
| Contact or case-review form sent | A thank-you page view, or an event your form fires only after a successful submission | generate_lead |
| Phone number tapped | A Tag Manager click trigger on links that start with tel: | click_to_call |
| Email address clicked | A click trigger on links that start with mailto: | email_click |
| Live chat started | The chat tool's own Google Analytics option or event | chat_open |
| Consultation booked online | The scheduler's confirmation page or event | book_consultation |
generate_lead is one of Google's recommended event names for lead generation, so GA4 understands it and uses it to populate the Lead acquisition report. The other names are custom, and any clear, consistent name works.
Be careful with the built-in form events. Enhanced measurement sends form_start and form_submit automatically, but in practice they can miss forms that submit without reloading the page and can fire when a submission fails. Test them before you rely on them. A dedicated thank-you page is still the most dependable lead signal on most firm websites.
Turn a thank-you page into a key event
- In Admin, under Data display, click Events, then Create event, then Create.
- Name the new event
generate_lead. - Add two matching conditions:
event_nameequalspage_view, andpage_locationcontains the path of your thank-you page, such as /thank-you. - Click Create.
- Once
generate_leadappears in the Recent events list on the same Events page, click the star next to its name to mark it as a key event.
Google notes that new and modified events take an hour or more to start working, never apply to past data, and need the Editor role or above. The same star works for click_to_call and the other events in the table once each has fired at least once, and Google says a newly marked key event can take up to 24 hours to show in standard reports.
Track phone taps with Tag Manager
Phone taps are the lead action many firms care about most, and they need a small Tag Manager setup because GA4 does not record them on its own. These steps assume Tag Manager is already installed on the site, as described in Step 3.
- In Tag Manager, open Triggers, click New and choose Just Links as the trigger type. Under This trigger fires on, select Some Clicks and set the condition to Click URL starts with
tel:so it matches every phone link. If Click URL is not offered, enable it first under Variables, then Configure, in the Built-In Variables list. - Open Tags, click New and choose Google Analytics: GA4 Event. Enter your Measurement ID, set the event name to
click_to_calland pick the new phone-link trigger under Triggering. - Click Preview, connect to your site, tap or click your phone number and confirm the tag fired. Then click Submit to publish the container.
- Once
click_to_callappears in the Recent events list in GA4, click its star to mark it as a key event.
Email clicks work the same way. Add a second trigger where Click URL starts with mailto: and a second tag with the event name email_click. If the site does not use Tag Manager, ask your developer to send the same event names through the Google tag whenever a phone or email link is clicked.
Test before you trust the numbers
With DebugView or the Realtime report open, submit your own contact form, tap your phone number from a mobile phone and click your email link. Each action should appear by name within a few minutes, and the Realtime report has a card for key events by event name. If your site shows a cookie consent banner, accept analytics cookies on the test device first, because DebugView does not show events from visitors who have not consented. Warn your intake team first so a test submission does not get a callback, and repeat the test whenever the site, the form plugin or the theme changes. A broken contact form that nobody notices for a month costs a firm every inquiry it would have produced.
Keep client information out of GA4
Google's policies prohibit sending personally identifiable information to Analytics, such as names, email addresses and personal phone numbers. Leaks are usually accidental, and the common ones on law firm sites are easy to spot once you know where to look.
- Contact forms that pass their fields in the page address, so the thank-you URL carries the visitor's name or email.
- Site search boxes where visitors type their own names or case details.
- Custom events or parameters that copy the text of a form field.
- Page titles or URLs that include a client's name, for example on a payment or document-upload page.
Law firms have a second reason to be careful. Under ABA Model Rule 1.18 and the state rules based on it, information a prospective client shares with a lawyer is generally protected even if that person never hires the firm, and ABA Formal Opinion 10-457 discusses when an inquiry sent through a firm website can create those duties. The safe rule is simple: record that a form was sent, never what it said. A broad, non-identifying label, such as the practice area picked from a menu, is generally acceptable, though firms in sensitive practice areas such as criminal defense, family law, bankruptcy or injury work should keep even that label out of anything shared with Google Ads. Google's customer data policies treat crime, divorce or marital separation, negative financial status, and health or medical information as sensitive categories, and GA4 key events often feed Google Ads conversions and bidding. The message, the name, the contact details and the case facts never belong in GA4.
Google states that GA4 does not log or store IP addresses, so there is nothing to anonymize there. And none of this limits lead measurement, because a key event only needs to know that something happened.
Consent is the other piece. If your site gets visitors from the European Economic Area, the UK or Switzerland, Google's EU user consent policy requires you to obtain their consent for cookies where the law requires it, and consent mode is how your site passes each visitor's choice to Google's tags. US state privacy laws vary, so ask whoever maintains your privacy policy to confirm it discloses analytics and covers any consent banner you need. This guide is not legal advice on those obligations.
The reports that matter for a law firm
GA4 has dozens of reports. Four of them answer most questions a managing partner asks.
Where each report sits depends on how the property was set up. A property created with a business objective such as Generate leads groups its reports under that objective, while older properties use the Life cycle menu of Acquisition, Engagement and so on. The paths below use the Life cycle names. If a report is missing from your left-hand menu, type its name into the search bar at the top of GA4, or ask someone with the Editor role to add it from the Library.
Traffic acquisition
Find it under Reports, then Acquisition, then Traffic acquisition, or directly under Generate leads in a lead-focused property. Each row is a channel, such as Organic Search, Paid Search, Direct, Referral, Organic Social, Email and, since May 2026, AI Assistant. Read the key events column, not just sessions. The useful question is not which channel sends the most visitors but which one sends visitors who contact you.
Engagement rate in this report is the share of sessions that lasted longer than 10 seconds, included a key event or viewed two or more pages. A channel with plenty of sessions and a low engagement rate is sending the wrong visitors or landing them on the wrong page.
Landing page
Find it under Reports, then Engagement, then Landing page, or under Generate leads in a lead-focused property. It shows the page each session started on, with key events alongside, which makes it the best single view of which practice-area pages and articles bring in inquiries. As an illustrative example, a truck accident firm might find that one article about what to do after a commercial truck crash starts more inquiring sessions than its truck accident practice page. That points to the next article to write, not a problem to fix. The Pages and screens report, also under Engagement, counts every page view, which shows the pages people read on the way to contacting you.
Demographic details
Find it under Reports, then User attributes, then Demographic details, and switch the dimension from Country to Region or City. For a firm that serves one metro area or one state, this is a fast check on whether the site attracts people who could actually hire you. Google may hide small counts behind privacy thresholds, so treat it as a direction rather than an exact figure.
Search Console queries inside GA4
Once Search Console is linked and its collection published, the Google organic search queries and Google organic search traffic reports put searches, landing pages and on-site behavior side by side, so you can connect a ranking gain to what visitors did next.
Visits from AI assistants
On May 13, 2026, Google added an AI Assistant channel to GA4's default channel group. Visits that GA4 recognizes as coming from assistants such as ChatGPT, Gemini and Claude now get the medium ai-assistant and appear as their own row in Traffic acquisition. No setup is needed.
Keep three caveats in mind. Before that change, the same visits were typically counted as Referral or Direct, so be careful when comparing periods on either side of May 2026. Some visits that start in an AI answer still arrive with no referrer at all and land in Direct. And Google maintains the list of assistants it recognizes, so an assistant that is not on it still arrives as an ordinary referral.
To find those visits, open Traffic acquisition, switch the table's dimension to Session source / medium and scan the rows marked referral for assistant domains. A custom channel group can then hold a rule that puts those sources and the ai-assistant medium into one channel, so every assistant visit sits in a single row. A standard property can hold two custom channel groups, and Google applies them to past data as well. If AI answers matter to your practice, watch these numbers monthly next to the work that earns citations, which our guide to how AI search decides which firms get cited explains.
A monthly 10-minute GA4 routine
Set a recurring reminder for the first week of each month, set the date range to the last full month compared with the month before, and work through these checks.
- Traffic acquisition: did key events rise or fall, and in which channel? A drop in Organic Search key events while sessions hold steady points to a page or form problem rather than a ranking problem.
- Landing page: which ten pages started the most sessions with a key event? Note any page that entered or left the list.
- Key events by name: are calls, forms and bookings moving together? If forms fall to zero while calls hold, test the form before anything else.
- Demographic details: is the share of visitors from your service area steady?
- AI Assistant channel and Search Console queries: is there a new source or query worth a page of its own?
Keep a short change log next to the routine, noting when a page launched, an ad campaign started or the form changed, because next month's numbers only make sense against it. If traffic holds but key events slip two months running, look at how each page asks for the call, starting with our guide to calls to action that turn visitors into consultations.
Where GA4 stops
A click_to_call event proves only that someone tapped your number on the website. Whether the line was answered, whether the caller had a matter you handle and whether a retainer was signed all happen off the site, out of GA4's view. Callers who got your number from a referring lawyer, a billboard or a radio spot and dial it directly never touch your website, so GA4 has no record of them. Business Profile calls appear only as a count, and the fee a matter produced is invisible to it.
Closing that gap takes three things that live outside GA4.
- Call tracking numbers for each channel, so every phone inquiry carries the source that produced it, including calls GA4 never sees.
- Outcome fields in your intake system or CRM, so every inquiry is marked signed or not, with a practice area and an expected fee.
- A join between the two, so a signed case can be traced back to the channel and page that started it.
GA4 can take part in that join. Google's recommended lead events, generate_lead, qualify_lead and close_convert_lead, can be sent from an intake system as a lead moves forward, and they populate GA4's Lead acquisition report. Those later-stage events tell Google that a particular visitor became a qualified prospect or a client, so clear them with ethics counsel under ABA Model Rules 1.6 and 1.18 and your state's versions of them before you send anything, as our guide to measuring law firm marketing ROI in signed cases discusses. Many firms sidestep the question by running the outcome join wherever their case records live and keeping GA4 for on-site behavior. Either way, the number to manage is cost per signed case, not cost per click. Our walkthrough on calculating cost per signed case covers the formula, and our page on marketing attribution for law firms explains how the join can be automated.
For LexGrow clients
If your firm works with LexGrow, we connect your GA4 property during onboarding so website activity, lead actions and search data sit in one dashboard, and reporting centers on inquiries and signed cases rather than raw visits. If your team is making the connection itself, follow LexGrow clients: GA4 connection steps.
