Skip to main content

Track Google search rankings with Bright Data, Google Sheets & Gmail

Workflow preview

Workflow preview
100%
Track Google search rankings with Bright Data, Google Sheets & Gmail preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow automates daily or manual keyword rank tracking on Google Search for your target domain. Results are logged in Google Sheets and sent vi...

Best for

  • Market Research automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.scheduletrigger, n8n-nodes-base.code, n8n-nodes-base.googlesheets, n8n-nodes-base.splitinbatches, n8n-nodes-base.httprequest, n8n-nodes-base.gmail, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Daniel Shashko.

Original n8n.io source

1.1 Workflow description

Title
Track Google search rankings with Bright Data, Google Sheets & Gmail
Workflow name
Track Google search rankings with Bright Data, Google Sheets & Gmail

This workflow automates daily or manual keyword rank tracking on Google Search for your target domain. Results are logged in Google Sheets and sent via email using Bright Data's SERP API.

Requirements:

  • n8n (local or cloud) with Google Sheets and Gmail nodes enabled
  • Bright Data API credentials

Main Use Cases

  • Track Google search rankings for multiple keywords and domains automatically
  • Maintain historical rank logs in Google Sheets for SEO analysis
  • Receive scheduled or on-demand HTML email reports with ranking summaries
  • Customize or extend for advanced SEO monitoring and reporting

How it works

The workflow is divided into several logical steps:

1. Workflow Triggers

  • Manual: Start by clicking 'Test workflow' in n8n.
  • Scheduled: Automatically triggers every 24 hours via Schedule Trigger.

2. Read Keywords and Target Domains

  • Fetches keywords and domains from a specified Google Sheets document.
  • The sheet must have columns: Keyword and Domain.

3. Transform Keywords

  • Formats each keyword for URL querying (spaces become +, e.g., seo expertseo+expert).

4. Batch Processing

  • Processes keywords in batches so each is checked individually.

5. Get Google Search Results via Bright Data

  • Sends a request to Bright Data's SERP API for each keyword with location (default: US).
  • Receives the raw HTML of the search results.

6. Parse and Find Ranking

  • Extracts all non-Google links from HTML.
  • Searches for the target domain among the results.
  • Captures the rank (position), URL, and total number of results checked. Saves timestamp.

7. Save Results to Google Sheets

  • Appends the findings (keyword, domain, rank, found URL, check time) to a “Results” sheet for history.

8. Generate HTML Report and Send Email

  • Builds an HTML table with current rankings.
  • Emails the formatted table to the specified recipient(s) with Gmail.

Setup Steps

  1. Google Sheets:

    • Create a sheet named “Results”, and another with Keyword and Domain columns.
    • Update document ID and sheet names in the workflow’s config.
  2. Bright Data API:

    • Acquire your Bright Data API token.
    • Enter it in the Authorization header of the 'Getting Ranks' HTTP Request node.
  3. Gmail:

    • Connect your Gmail account via OAuth2 in n8n.
    • Set your destination email in the 'Sending Email Message' node.
  4. Location Customization:

    • Modify the gl= parameter in the SERP API URL to change country/location (e.g., gl=GB for the UK).

Notes

  • This workflow is designed for n8n local or cloud environments with suitable connector credentials.
  • Customize batch size, recipient list, or ranking extraction logic per your needs.
  • Use sticky notes in n8n for further setup guidance and workflow tips.

With this workflow, you have an automated, repeatable process to monitor, log, and report Google search rankings for your domains—ideal for SEO, digital marketing, and reporting to clients or stakeholders.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Test workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 3 - Making Email Template

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - Reading Keywords

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 5 - Transforming Keywords

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - Loop over Keywords

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 7 - Getting Ranks

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 8 - Rank Finder

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - Post Rank Results

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 10 - Sending Email Message

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 11 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Track Google search rankings with Bright Data, Google Sheets & Gmail
Complexity intermediate
Nodes 11
Categories Market Research
Author Daniel Shashko
Published 22 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4310/4310.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Track Google search rankings with Bright Data, Google Sheets & Gmail do?

This workflow automates daily or manual keyword rank tracking on Google Search for your target domain. Results are logged in Google Sheets and sent vi...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research use case.