Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

πŸ“ŠGoogle Analytics 4

SEO Utils integrates with Google Analytics 4 (GA4) to sync your site's traffic into your local database: sessions, engaged sessions, key events (conversions) and revenue for every channel, not only organic search. You read it on the GA4 Traffic page, next to your search data in Search Console and the rank trackers, and in your client reports. The organic landing pages also power the Key Events insight in the Organic Rank Tracker, showing you which tracked keywords are driving conversions.

Connecting GA4 and using its traffic across SEO Utils

GA4 data is synced automatically once per day, and SEO Utils catches up when it starts if a day was missed. It is stored locally. Your data never leaves your machine.

Prerequisites

Before setting up GA4 integration, you need:

  • A GA4 property with your website configured

  • A Google service account in SEO Utils with Viewer access to that property. Steps 1 and 2 below create it and give it access

Step 1: Connect Google

The service account needs the Google Analytics Data API (to sync your metrics) and the Google Analytics Admin API (to find your GA4 properties). Pick one way to set it up:

When your AI app is connected to SEO Utils (see Set Up with Your AI App), ask it to set up Google Analytics 4 in SEO Utils. It checks what is missing, starts Connect Google for you and explains each step. You sign in to Google and answer its questions in SEO Utils.

On the Add GA4 Property page, when you have no service account yet, Set up with your AI app copies the prompt for this step.

Your AI app cannot give the service account access to GA4: do Step 2 yourself.

Use this when you already have a service account (see Google Service Accounts). Turn on both APIs in the Google Cloud project it belongs to:

  1. Go to the Google Cloud Console and select the project of your service account

  2. Open APIs & Services β†’ Library

  3. Search for "Google Analytics Data API" and click Enable

  4. Search for "Google Analytics Admin API" and click Enable

Enable the Google Analytics Data API in Google Cloud Console
Enable the Google Analytics Admin API in Google Cloud Console

Step 2: Grant Service Account Access to GA4

Your service account needs permission to read data from your GA4 property. Google lets only you do this step.

1

Copy Your Service Account Email

After Connect Google, click Copy email on the Google Analytics 4 card under Finish in Google, then Open Google Analytics.

Otherwise, go to the Google Service Accounts page in SEO Utils and copy the service account email (e.g., project-932@project-1608918721837.iam.gserviceaccount.com).

2

Add the Service Account to GA4

You can grant access at the property level or account level:

  • Click the gear icon (Admin) at the bottom-left

  • Under Property, click Property Access Management

  • Click the + button β†’ Add users

  • Paste your service account email

  • Set the role to Viewer

  • Click Add

If you want the service account to access all properties under your GA4 account:

  • Click the gear icon (Admin) at the bottom-left

  • Under Account, click Account Access Management

  • Click the + button β†’ Add users

  • Paste your service account email

  • Set the role to Viewer

  • Click Add

This grants access to all current and future properties under that account.

Add the service account email as a Viewer in GA4 Property Access Management

Viewer permission is sufficient. SEO Utils only reads data from GA4 β€” it never modifies your analytics configuration.

Step 3: Add a GA4 Property in SEO Utils

1

Navigate to Google Analytics 4

In the sidebar, under Your Sites, open Google Analytics 4 and click Add Property at the top right.

Google Analytics 4 section in the sidebar
2

Select a Service Account

Choose the Google Service Account that has access to your GA4 property. SEO Utils will fetch all GA4 properties the account can access.

Select a service account to list accessible GA4 properties
3

Select a GA4 Property

Pick your GA4 property from the dropdown. The Mapped Domain field will auto-fill based on the property's website URL β€” this links the GA4 data to your Organic Rank Tracker reports.

Set the Initial Backfill to choose how many days of organic landing-page history to import on first sync (default: 90 days). GA4 free tier retains 2 months of data by default, or up to 14 months if you've enabled extended retention in your GA4 property settings. The channel, source and monthly traffic always import 16 months.

Select a GA4 property, confirm the mapped domain, and set the backfill period

The mapped domain should match the target domain in your Organic Rank Tracker report. For example, if your rank tracker tracks example.com, the mapped domain should also be example.com.

4

Manage Your Properties

After adding a property, SEO Utils will automatically start syncing historical data. You can see it in the GA4 Properties list. From here you can:

  • Read the Status β€” Synced, Syncing..., Not synced yet, or Failed. Hover Failed to see which data did not sync

  • Open GA4 Traffic β€” Click the property's name to see its traffic by channel

  • Enable/disable sync β€” Toggle whether this property syncs automatically once per day

  • Sync Now β€” Trigger an immediate data sync

  • Edit domain β€” Click the domain to change the mapped domain

  • Remove β€” Delete the property and all synced GA4 data. You can re-add the property later to sync again

GA4 Properties list showing connected properties with sync status
The GA4 Properties list with a property in the Synced status
The Status column (1) shows the result of the last sync

Syncing Data

GA4 data syncs automatically once per day, and SEO Utils catches up when it starts if a day was missed, for example when your computer was off. You can also click "Sync Now" in the GA4 Properties list to trigger an immediate sync.

The first sync downloads 16 months of history, newest month first, so the recent months are ready before the older ones. SEO Utils syncs these datasets:

Dataset
What it holds

Traffic by channel

Sessions, engaged sessions, key events and revenue per day, for every GA4 default channel group

Organic search by engine

Organic Search split by Google, Bing, DuckDuckGo and the other search engines

Source / medium

Sessions, key events and revenue per day for every source, such as google / organic

Key events by channel

Each key event, by channel and day

Monthly users

Users and new users per month, per channel and for the whole site

Organic landing pages

Per page and day, organic search only (below)

Organic landing pages

For each organic landing page, per day:

Metric
Description

Sessions

Number of organic search sessions

Engaged Sessions

Sessions with meaningful engagement

Bounce Rate

Percentage of single-page sessions

Avg. Engagement Time

Average time users spent on the page

Users

Total unique users from organic search

New Users

First-time visitors from organic search

Key Events

Conversion events (purchases, sign-ups, form submissions, etc.)

Revenue

Total revenue from organic search sessions

How GA4 Data Powers Key Events

The primary use of GA4 data is the Key Events insight in the Organic Rank Tracker. When GA4 data is synced, the rank tracker can show you which keywords are associated with pages that generate conversions.

For example, if the keyword "deep cleaning cambridge" ranks on your /cambridge page, and that page had 3 conversions in GA4, the keyword will display a "3 Key Events" badge in the rank tracker.

This helps you:

  • Identify revenue-driving keywords β€” See which keywords are associated with actual business outcomes

  • Prioritize SEO efforts β€” Focus on keywords that drive conversions, not just traffic

  • Correlate rank changes with conversions β€” Spot when a ranking improvement leads to more conversions

Key Events attribution works by matching the rank tracker's keyword β†’ page mapping with GA4's landing page β†’ conversion data. For the most accurate results, also connect Google Search Console to provide authoritative keyword-to-page click data.

Where You See the Data

Where
What you get

Every channel, compared with the previous period or last year, with top sources and 13 months

Google organic sessions on the performance chart, an organic share card and GA4 columns on the Pages table

The sessions and key events of each keyword's page

A Site traffic section in the PDF

A Traffic tab in the published Organic report

The same data for your AI assistant

Troubleshooting

"Google Analytics Data API has not been used in project" error

You need to enable the Google Analytics Data API in your Google Cloud project. Visit the link in the error message to enable it, then wait a minute and try again.

"Google Analytics Admin API has not been used in project" error

You need to enable the Google Analytics Admin API in your Google Cloud project. This is a separate API from the Data API β€” both need to be enabled. Visit the link in the error message to enable it.

No properties found after clicking "Discover Properties"

Your service account doesn't have access to any GA4 properties. Grant the service account Viewer access in GA4's Property Access Management (or Account Access Management for all properties).

Data syncs successfully but shows 0 rows

This is normal if your site has very low organic search traffic, or if GA4 data hasn't finished processing yet (24-72 hour delay). The sync will pick up the data on the next run.

Sync failed with authentication error
  • Verify your service account still has access to the GA4 property

  • Check that the service account key hasn't expired or been deleted in Google Cloud Console

  • Re-upload the service account key file if needed

Last updated