Google Analytics Integration Guide

Your website's traffic, sources, campaigns and key events in LawLink.ai — read-only

📈 Google Analytics (GA4)
📚

Overview

Connect your firm's Google Analytics 4 property to see where website visitors come from — channel, source, campaign, landing page — and which of them become enquiries (key events such as a contact-form submit or a phone-number click). Ask from LawLink's API console or from your AI assistant, beside your intake and call-tracking data.

Read-only. LawLink cannot change anything in Google Analytics, and reads reports live without storing them. Only GA4 properties are supported — Universal Analytics (UA-…) was shut down by Google in July 2024.

🚀

Connecting Google Analytics

Use a Google account that can see the property

The account needs at least Viewer access to the firm's GA4 property (Analytics → Admin → Property access management). If an agency manages your site, ask them to add the account.

Start from LawLink

Open Integrations, find Google Analytics and click Connect. Google asks you to choose the account and to allow See and download your Google Analytics data — leave it ticked.

"Google hasn't verified this app"? Until LawLink's Google app completes Google's review for Analytics access, only people added as test users can continue (Advanced → Go to LawLink). Your LawLink contact can add you.

Choose the property

If the account can see more than one property, LawLink asks which one to report on. Every report — in the console and through your AI assistant — reads only that property. Change it any time with the Property selector on the Google Analytics page in LawLink; an assistant cannot change it. If you connected through an invitation link, sign in to LawLink first and choose the property there.

🔐

What LawLink Can Access

One Google Analytics permission: analytics.readonly — read reports and the list of properties the account can see. LawLink cannot edit properties, users, goals, key events or any setting. Google's sign-in also shares the account's email address, which LawLink shows so you can tell which Google account is connected.

Disconnecting: LawLink deletes its stored access immediately. Google keeps listing LawLink under your account's third-party access, because removing it there also disconnects any Google Drive, Calendar or Gmail you use through LawLink. Remove it at myaccount.google.com/permissions if you want LawLink signed out of every Google product at once.

📡

What You Can Do

Run a report

Pick metrics (sessions, totalUsers, keyEvents, engagementRate …) and the dimensions to break them down by (sessionDefaultChannelGroup, sessionSource, sessionCampaignName, landingPage, date …). Dates are in the property's own time zone; the default is the last 28 days.

POST /api/v1/google-analytics/report { "dimensions": ["sessionDefaultChannelGroup"], "metrics": ["sessions", "keyEvents"], "date_from": "2026-09-01", "date_to": "2026-09-30", "order_by": ["-sessions"] }

Find the right field names

List every dimension and metric on your property — your own custom ones included — and check which can be combined.

GET /api/v1/google-analytics/metadata?search=campaign POST /api/v1/google-analytics/compatibility POST /api/v1/google-analytics/realtime

Through your AI assistant

The web_analytics tool answers questions like "which channels brought the most enquiries last month compared with the month before?". Its answers say when Google withheld or sampled data, so the numbers are not read as the whole truth.

📊

Limits and caveats

Google meters reports in "tokens" per property: about 14,000 an hour for LawLink, and 200,000 a day for the property as a whole across every tool that reads it. A typical report costs about 10. Prefer one grouped report over many small ones. Google may withhold rows with very few users (thresholding), estimate from a sample on large date ranges, or group rare values into an (other) row — LawLink reports each of these with the results. The last 24–48 hours can still change as Google finishes processing.

🛠️

Troubleshooting

"No Google Analytics property is chosen"

Open the Google Analytics page in LawLink and pick one with the Property selector.

"Cannot read that Google Analytics property"

The connected Google account lost access to the property. Ask the property's admin to restore Viewer access, or choose another property.

"Sign-in has expired"

Google withdrew the sign-in — a password change, removed access, or, while the app is in Google's review, its weekly expiry for test users. Reconnect Google Analytics.

"Quota for this property was reached"

The hourly allowance was used up. Hourly quotas refresh within the hour; daily ones at midnight Pacific time.