Integrating with Google Search Console

This guide will walk you through the steps to configure a Google OAuth 2.0 client for accessing Google APIs, specifically for integrating with Google Search Console. Please ensure you follow these steps carefully to ensure smooth integration with your client's websites.

Important: The Google Cloud Console project you create must belong to a Google Workspace account. Additionally, this project needs to be associated with the same Google account where sites being managed in Google Search Console are stored.

Step 1: Set Up a Google Cloud Project

  1. Go to the Google Cloud Console.
  2. Click on the Select a Project dropdown at the top of the page and create a new project or select an existing one.
  3. After selecting your project, ensure that it belongs to a Google Workspace account, and make sure this account is the same as the one used for managing client sites in Google Search Console.

Note: If the project is not linked to a Google Workspace account, the OAuth setup and permissions will not function as expected.

Step 2: Enable Google APIs

  1. In the Google Cloud Console, navigate to API & Services > Library.
  2. Search for the following APIs and enable them:
    • Google Identity API
    • Google Search Console API
  3. These APIs will allow your app to authenticate users and interact with Google Search Console data.

Step 3: Create OAuth 2.0 Credentials

  1. In the API & Services > Credentials section, click Create Credentials and select OAuth 2.0 Client ID.
  2. You may be prompted to configure the OAuth consent screen. Provide the necessary details (like your application name, email, etc.).
  3. For Application Type, select Web application.
  4. Under Authorized redirect URIs, enter the URI where users will be redirected after authentication. This is typically the URL where your app will handle the OAuth response.
  5. Click Create to generate your Client ID and Client Secret.

Note: Keep the Client ID and Client Secret safe. These are the credentials you'll use to integrate Google OAuth with your application.

Step 4: Enter Your Client ID and Client Secret in the Platform

Once you've generated your Client ID and Client Secret in Google Cloud Console, follow these steps:

  1. Log in to your Analytics Platform Portal.
  2. Navigate to the Integrations tab.
  3. Locate the section for Google OAuth integration.
  4. Enter the Client ID and Client Secret you generated earlier.
  5. Save the settings to link your Google OAuth integration to your platform.

This will allow your platform to authenticate with Google APIs and access Google Search Console data for your clients' sites.


By following these steps, your marketing/SEO agency will be able to integrate with Google Search Console via OAuth 2.0 and access valuable SEO insights for your clients' websites.