Built by SEO
← Back to Google Indexing
Setup Guide

Getting started with Google Indexing

Follow these steps to connect Google Indexing to your HubSpot portal. You'll need to create a Google Cloud project and set up a service account — this takes around 10 minutes.

1

Install the app on HubSpot

Click the button below to open the Google Indexing app and connect your HubSpot portal. Select the account you want to use and grant the required permissions.

Open Google Indexing →
2

Create a Google Cloud project

Go to console.cloud.google.com and sign in with your Google account.

  1. Click Select a project at the top, then New Project
  2. Give your project a name (e.g. "HubSpot Indexing") and click Create
  3. Make sure your new project is selected in the top bar before continuing
3

Enable the required APIs

You need to enable two APIs on your project:

Google Indexing API

Allows the app to submit URLs to Google for indexing.

Enable Indexing API →

Google Site Verification API

Allows the service account to verify ownership of your domain.

Enable Site Verification API →

Click each link above, make sure your project is selected, then click Enable.

4

Create a service account

In Google Cloud Console, go to IAM & Admin → Service Accounts.

  1. Click Create Service Account
  2. Give it a name (e.g. "hubspot-indexing") and click Create and Continue
  3. Skip the optional role and user access steps — click Done

Note

Copy the service account email address — you'll need it in the next step to add it as an owner in Google Search Console.

5

Verify your domain in Google Search Console

Before you can add the service account as an owner, you need to be a verified owner of your domain yourself. The easiest method is the HTML file upload.

  1. Go to Google Search Console and select your property
  2. Go to Settings → Ownership verification and choose HTML file
  3. Download the verification file provided by Google
  4. Upload it to the root of your HubSpot website so it's accessible at yourdomain.com/google[...].html
  5. Once the file is live, click Verify in Search Console

HubSpot tip

In HubSpot, you can upload the HTML file via Marketing → Files and publish it to your domain. Make sure the file URL matches exactly what Google expects before clicking Verify.

6

Add the service account to Google Search Console

The service account needs to be a verified owner of your domain in Google Search Console so it has permission to submit indexing requests.

  1. Go to Google Search Console
  2. Select your property
  3. Go to Settings → Users and permissions
  4. Click Add user, paste the service account email, set the role to Owner, and click Add
7

Download the JSON key file

Back in Google Cloud Console, open your service account and go to the Keys tab.

  1. Click Add Key → Create new key
  2. Select JSON and click Create
  3. A JSON file will download automatically — keep this safe, you'll need it in the next step

Keep this file secure

This JSON file contains your service account credentials. Do not share it publicly or commit it to a code repository.

8

Upload the JSON file to the app

Return to the Google Indexing app inside HubSpot and upload the JSON key file you downloaded in the previous step.

Once uploaded, the app will verify the credentials and begin automatically submitting your HubSpot pages to Google whenever you publish or update them.

What happens next

After uploading your credentials, HubSpot may take a short time to clear its cache. Once the cache refreshes, the app will start running automatically — submitting pages to Google as you publish or update them. No further action is needed.

Open the app →

Need help?

If you get stuck at any step, reach out via the support form or join the community Slack.