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.
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.
Create a Google Cloud project
Go to console.cloud.google.com and sign in with your Google account.
- Click Select a project at the top, then New Project
- Give your project a name (e.g. "HubSpot Indexing") and click Create
- Make sure your new project is selected in the top bar before continuing
Enable the required APIs
You need to enable two APIs on your project:
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.
Create a service account
In Google Cloud Console, go to IAM & Admin → Service Accounts.
- Click Create Service Account
- Give it a name (e.g. "hubspot-indexing") and click Create and Continue
- 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.
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.
- Go to Google Search Console and select your property
- Go to Settings → Ownership verification and choose HTML file
- Download the verification file provided by Google
- Upload it to the root of your HubSpot website so it's accessible at
yourdomain.com/google[...].html - 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.
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.
- Go to Google Search Console
- Select your property
- Go to Settings → Users and permissions
- Click Add user, paste the service account email, set the role to Owner, and click Add
Download the JSON key file
Back in Google Cloud Console, open your service account and go to the Keys tab.
- Click Add Key → Create new key
- Select JSON and click Create
- 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.
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.
Need help?
If you get stuck at any step, reach out via the support form or join the community Slack.