Guides · 6 October 2026
How to connect Google Analytics 4 to SEO Ops
Connect GA4 with a Google OAuth client so organic sessions and conversions can be used in reports.
Plan: Premium. The Free plugin does not include the Google Analytics 4 connection. See pricing.
Google Analytics 4 is where organic sessions, users, conversions and revenue come from. This guide shows how to connect it to SEO Ops.
What it does
Once connected and set up for a website, SEO Ops fetches sessions, organic sessions, users, new users, key events and engagement rate from Google Analytics 4 and shows them as measures on the client page, in reports and in the client portal. A daily job refreshes every client, and you can refresh by hand at any time.
A figure is either a real value from Google Analytics 4 or Unavailable, with the reason. It is never shown as zero or estimated, a good value is never replaced by a failed refresh, and the current month is labelled “month to date”.
Before you start
- You need to be an administrator of your WordPress site, with permission to manage integrations in SEO Ops.
- You need a Google account that can open the Google Cloud Console, and that has access to the Google Analytics 4 data you want to use.
- Your site must be served over HTTPS. Google will not send people back to an insecure address.
Step 1: Open the Integrations screen and copy the redirect address
- In SEO Ops, go to Settings › Integrations.
- Find the card for Google Analytics 4 under Data sources and choose Client credentials.
- Copy the Authorised redirect URI. It is the address of your own site ending in
/wp-json/seoops/v1/integrations/oauth/callback. You will paste it into Google in the next step, so leave this window open.
Step 2: Create an OAuth client in Google Cloud
- Open the Google Cloud Console and create a project, or choose an existing one.
- Go to APIs & Services › OAuth consent screen and set up the consent screen. Give it your company name and a support email address.
- Go to APIs & Services › Credentials and choose Create credentials › OAuth client ID.
- For the application type, choose Web application.
- Under Authorised redirect URIs, add the address you copied from SEO Ops, exactly as shown.
- Create the client. Google shows a Client ID and a Client secret.
- Go to APIs & Services › Library and enable the Google Analytics Data API and the Google Analytics Admin API. SEO Ops cannot read any data until these are enabled for your project.
SEO Ops asks Google for one permission only: https://www.googleapis.com/auth/analytics.readonly. That is read-only access to Analytics data.
Step 3: Save the credentials in SEO Ops
- Back in the SEO Ops window, paste the Client ID and the Client secret.
- Choose Save. The secret is stored encrypted and is never shown again.
Step 4: Connect
- On the Google Analytics 4 card, choose Connect with Google.
- Sign in with the Google account that has access, and approve the permission.
- Google sends you back to SEO Ops, and the card changes from Not connected to Connected.
Step 5: Choose the data for each website
- Open the client, then the Websites section, and choose Data sources next to the website.
- Pick the GA4 property from the list of what your connected Google account can see (Or choose from your account), or enter it yourself.
- Save. Then on the client page choose Add standard measures to add the usual set for every connected source, and Refresh data to fetch the figures now.
After that a daily job keeps every client up to date.
If something goes wrong
- The property list is empty or a figure is Unavailable: check that the Google APIs from step 2 are enabled, and that the Google account you connected has access to the property.
- “Google sign-in did not complete”: check that the redirect address in Google matches the one in SEO Ops exactly, including
httpsand the path. - Status shows Expired: access was revoked or has lapsed. Choose Reconnect. If your Google consent screen is still set to “Testing”, Google expires access after about a week, so publish the consent screen or reconnect when it happens.
- Status shows Error: SEO Ops could not reach Google or Google rejected the request. Check your client ID and secret, then reconnect.
- Keys will not save: the plugin could not create its encryption key. See Settings › Security, and the overview guide linked below.
To disconnect
Choose Disconnect on the card. The stored credentials are deleted, and any figures that came from this service show as Unavailable.
If you already created a Google Cloud project and OAuth client for Search Console, you can use the same project. Add this redirect address to the same client if it is not there already, and enter the same Client ID and secret on the GA4 card.
Put the guide into practice with SEO Ops.
Download Free Get Premium