HomeAbout
Connecting Google Analytics to Your LexGrow Dashboard

Guide

Connecting Google Analytics to Your LexGrow Dashboard

LexGrow · · SEO Tools

Google Analytics 4 (GA4) is a free tool from Google that shows you exactly what's happening on your law firm's website: how many people visit each day, which pages they spend time on, where they came from (Google search, social media, a referral link), and whether they're visiting from a phone or a computer. It's powerful information, but logging into a separate analytics dashboard every time you want to check your numbers gets old fast.

That's where the LexGrow integration comes in. By connecting your GA4 account to LexGrow, all of that website data flows directly into the same dashboard where you manage the rest of your online marketing. No more switching between tabs, no more remembering another password. You see visits, top pages, and traffic sources right alongside your SEO metrics and keyword rankings.

Don't worry if this looks intimidating — we'll walk through it together, one step at a time. Most of our law firm clients complete this setup in about 15 to 20 minutes, even if they've never touched Google Cloud before.

What you'll need before you start

  • A Google account — specifically the one associated with your law firm's Google Analytics 4 property. This is usually the same Google account your firm uses for Google Business Profile or Gmail.
  • Access to Google Analytics — you can verify this by visiting analytics.google.com and checking that you can see your firm's website data.
  • About 15 to 20 minutes of uninterrupted time. There are several steps, but each one is straightforward.

Step 1: Find your GA4 Property ID

Finding your GA4 Property ID in Google Analytics admin settings

Your Property ID is a unique number that tells LexGrow which analytics account to pull data from. Here's how to find it:

  1. Open your web browser and go to analytics.google.com. Sign in with your Google account if prompted.
  2. Once you're in Google Analytics, look at the very bottom-left corner of the screen. You'll see a gear icon labeled "Admin." Click it.
  3. You'll land on the Admin page. In the middle column labeled "Property," click "Property Settings" (in some newer versions this is called "Property details").
  4. At the top of this settings page, you'll see your Property ID. It looks like a number with just digits — for example, 123456789. There are no dashes or letters, just a string of numbers.
  5. Copy this number and paste it somewhere you can find it easily (a sticky note on your screen, a notes app, or just leave this tab open). You'll paste it into LexGrow in a later step.

If you see multiple properties listed, make sure you've selected the one for the website you want to track. The property name usually matches your website's name or URL.

Step 2: Create a Google Cloud project

Creating a Google Cloud project in three steps

Google Cloud is a platform that lets different services talk to each other. You need to create a small project there so LexGrow has permission to read your analytics data. You won't be charged — everything we're doing here is within Google's free tier.

  1. Open a new browser tab and go to console.cloud.google.com.
  2. If you've never used Google Cloud before, you'll see a welcome screen with some terms of service. Simply check the box to agree and click "Agree and Continue."
  3. Near the top of the page, you'll see a project selector (it might say "Select a project" or show a default project name). Click it, then click "New Project" in the upper right of the popup.
  4. Give your project a name. Something simple like "LexGrow Analytics" works perfectly. You don't need to change the organization or location fields — just leave them as they are.
  5. Click "Create." Google will take a few seconds to set up your project.
  6. Once it's created, make sure this new project is selected in the top dropdown bar. You should see "LexGrow Analytics" (or whatever you named it) displayed at the top of the page.
  7. Now you need to turn on the right APIs. In the search bar at the very top of the Google Cloud Console, type "Google Analytics Data API" and press Enter.
  8. Click the result that says "Google Analytics Data API" and then click the blue "Enable" button. Wait a moment for it to activate.
  9. Go back to the search bar and search for "Google Search Console API." Enable that one too — you'll need it if you follow our Search Console setup guide next.

That's it for the Cloud project. You've just created a container and turned on the services LexGrow needs. Now let's create the credentials.

Step 3: Create a Service Account and download the key

Creating a service account and downloading the JSON key

A "service account" is like a special-purpose Google account that LexGrow uses to read your data. It can't send emails, it can't browse the web — it can only do what you specifically allow it to do. Here's how to create one:

  1. In the Google Cloud Console, look at the left sidebar (or use the search bar) and navigate to "IAM & Admin""Service Accounts."
  2. Click the "+ Create Service Account" button at the top of the page.
  3. In the "Service account name" field, type something like "lexgrow-analytics". The system will automatically generate an email address below it — something like lexgrow-analytics@yourproject.iam.gserviceaccount.com. Make a note of this email address — you'll need it in the next step.
  4. Click "Create and Continue."
  5. The next screen asks about roles. You can skip this — just click "Continue" again.
  6. The third screen asks about granting users access. You can skip this too — just click "Done."
  7. You'll be taken back to the Service Accounts list. Click the service account you just created (the one named "lexgrow-analytics" or similar).
  8. Click the "Keys" tab at the top of the page.
  9. Click "Add Key""Create new key."
  10. Select "JSON" as the key type, then click "Create."
  11. A JSON file will automatically download to your computer. This file contains the credentials LexGrow needs. Keep it safe — don't share it publicly or email it to anyone. You'll paste its contents into LexGrow shortly.

The downloaded file will have a name like yourproject-abc123.json. Don't rename it or move it to a location you'll forget about.

Step 4: Grant the Service Account access to your GA4 property

Now you need to tell Google Analytics that it's okay for this service account to read your data. Think of it like adding a new team member who can view reports but can't change anything.

  1. Go back to analytics.google.com (the tab from Step 1).
  2. Click the gear icon (Admin) in the bottom-left corner.
  3. Under your property, click "Property Access Management."
  4. Click the blue "+" button in the top right, then select "Add users."
  5. In the email field, paste the service account email address from Step 3 — the one ending in .iam.gserviceaccount.com.
  6. Set the role to "Viewer." This is all LexGrow needs — just read-only access to your analytics data. It cannot modify anything in your account.
  7. Uncheck the "Notify new users by email" checkbox. Service accounts aren't real email addresses, so notifications would just bounce.
  8. Click "Add."

You should see the service account now listed among your property's users. The hard part is done.

Step 5: Connect to LexGrow

This is the moment everything comes together.

  1. Log into your LexGrow dashboard and navigate to the Analytics page.
  2. You'll see a "Connect Your Accounts" section with fields for different services.
  3. In the "GA4 Property ID" field, paste the number you copied in Step 1 (just the digits, like 123456789).
  4. Now open the JSON file you downloaded in Step 3. You can use any text editor to do this: on Windows, right-click the file and choose "Open with" → "Notepad." On Mac, right-click and choose "Open with" → "TextEdit." You'll see a block of text that starts with { and ends with }.
  5. Select all the text in the file (press Ctrl+A on Windows or Cmd+A on Mac), copy it (Ctrl+C or Cmd+C), and paste it into the "Google Service Account JSON" field in LexGrow.
  6. Click "Save Credentials."
  7. Within a few seconds, you should see the Google Analytics status indicator turn green. That means data is flowing.

Troubleshooting

If something doesn't work right away, don't panic. Here are the most common issues and quick fixes:

  • "Invalid JSON" error: This usually means you didn't paste the entire contents of the JSON file. Open the file again, make sure you select absolutely everything from the very first { to the very last }, and paste it fresh. Watch out for extra spaces or line breaks that might have been added accidentally.
  • "Permission denied" error: Go back to Google Analytics → Admin → Property Access Management and double-check that the service account email (ending in .iam.gserviceaccount.com) is listed as a Viewer. If it's not there, add it again following Step 4.
  • Data appears empty: This is normal if your GA4 property is brand new or was just set up. GA4 data typically runs 24 to 48 hours behind real time. If you connected everything today, check back tomorrow and you should see data populating.
  • Wrong property data showing: If you have multiple GA4 properties, make sure you copied the Property ID for the correct website. Go back to Step 1 and verify the property name matches your firm's website.

Once everything is connected and the status shows green, you're all set. LexGrow will automatically pull your Google Analytics data on a regular schedule — you don't need to touch these settings again unless you switch Google accounts or create a new GA4 property. Your website traffic, visitor behavior, and top-performing pages will all appear right in your LexGrow dashboard, updated automatically. One less tool to log into, one more reason to check your dashboard every morning with your coffee.

Topics

google analyticsga4analytics setupgoogle cloudservice accountlaw firm analyticslexgrow setup

Put these ideas into practice

Start with a free SEO, GEO & AEO visibility review on a short call — then explore published pricing and LexGrow solutions with your markets in mind.

Book your free visibility review

General contact