Skip to main content

Google Search Console and analytics analysis with AI optimizations

Workflow preview

Workflow preview
100%
Google Search Console and analytics analysis with AI optimizations preview
Open on n8n.io

Important notice

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

1. Workflow Overview

What Is This? This workflow is a comprehensive solution for automating website audits and optimizations, leveraging advanced technologies to boost SEO effectiveness and overall site performance. Wh...

Best for

  • Market Research automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.splitinbatches, n8n-nodes-base.stickynote, n8n-nodes-base.merge, n8n-nodes-base.removeduplicates, n8n-nodes-base.httprequest, n8n-nodes-base.xml, n8n-nodes-base.splitout

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Google Search Console and analytics analysis with AI optimizations
Workflow name
Google Search Console and analytics analysis with AI optimizations

What Is This?

This workflow is a comprehensive solution for automating website audits and optimizations, leveraging advanced technologies to boost SEO effectiveness and overall site performance.

Who Is It For?

Designed for SEO specialists, digital marketers, webmasters, and content teams, this workflow empowers anyone responsible for website performance to automate and scale their audit processes. Agencies managing multiple client sites, in-house SEO teams aiming to save time on routine checks, and developers seeking to integrate data-driven insights into their deployment pipelines will all find this solution invaluable.

By combining your site’s sitemap with Google Search Console and Google Analytics data, then applying AI-powered analysis, the workflow continuously uncovers actionable recommendations to boost search visibility, improve user engagement, and accelerate page performance. Whether you manage a single blog or oversee a sprawling e-commerce platform, this automated pipeline delivers precise, prioritized SEO improvements without manual data wrangling.

How Does It Work?

This end-to-end site analysis automation consists of five main stages:

1. URL Discovery
Processes the sitemap.xml using HTTP Request and XML nodes to extract all site URLs.

2. Search Console Performance Analysis
Uses the Google Search Console API to fetch detailed metrics for each page, including search position, clicks, impressions, and CTR.

3. Analytics Data Collection
Connects to the Google Analytics API to automatically retrieve traffic metrics such as pageviews, average session duration, bounce rate, and conversions.

4. AI Data Processing
Employs OpenAI models to perform in-depth analysis of the collected data. The artificial intelligence engine merges insights from all sources, identifies patterns, and produces detailed optimization recommendations. AI analyses website itsefl aswell. Consider testing different models. I do recommend at least trying out o4-mini.

5. Recommendation Generation
Creates tailored suggestions for each page, in form of HTML table, that is being sent to your email.

How To Set It Up?

Accounts:
An active n8n account or instance, API keys for Google Search Console and Google Analytics, an OpenAI access token.

Enabled Google APIs: You will neeed at least following scopes:

  • Google Search Console API
  • Google Analytics Aadmin API
  • Google Analytics Data API

Scheduling:
The workflow can run manually for ad hoc audits or be scheduled (daily, weekly) for continuous site monitoring.

Testing:
There are two nodes that are optional:

  • "Sort for testing purposes" and
  • "Limit for testing purposes" Together they randomly select items from sitemap and limit them to few so you don't need to run hundreds of sitemap.xml items at once, but you can run just a random batch first.

Globals: There is node called "Globals- CHANGE ME!". You need to set up proper variables in there, which are:

  • sitemap_url - self exlpainatory
  • search_console_selector - for example "sc-domain:sailingbyte.com" but can be URL aswell- depends on how did you set up your search console
  • analysis_start_date and analysis_end_date - date range for analytics, by default last 30 days
  • analytics_selector_id - ID of Google Analytics setup, it is a large integer, you can find it in analytics url preceeded with letter "p", ex (your number is where there are X's): https://analytics.google.com/analytics/web/#/pXXXXXXXXX/reports/intelligenthome
  • report_receiver - email which will receive report

What's More?

That's actually it. I hope that this automation will help your website improvement will be much easier!

Thank you, perfect!

Glad I could help. Visit my profile for other automations for businesses. And if you are looking for dedicated software development, do not hesitate to reach out!

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 - Loop Over Items

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

Block 3 - Sticky Note

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

Block 4 - Enforce Order - Positions Last

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

Block 5 - Remove Duplicates

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

Block 6 - Sticky Note1

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

Block 7 - Get sitemap XML

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

Block 8 - Convert to JSON

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

Block 9 - Split Out to Table

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

Block 10 - Limit for Testing Purposes

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

Block 11 - Wait to Comply with API Limits

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 12 - Globals - CHANGE ME!

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 13 - Get Page GSC Status

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

Block 14 - Get Page GSC Stats

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

Block 15 - Merge Status and Stats

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 16 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 17 - Get Google Analytics Data

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

Block 18 - HTTP Request

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

Block 19 - Merge AI Output With AI Input

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 20 - Markdown to HTML

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

Block 21 - Keep Only Valuable Columns

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 22 - Change to HTML table for sending

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

Block 23 - Send Email with Full report

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

Block 24 - Sort For Testing Purposes

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

Showing the first 24 of 29 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Google Search Console and analytics analysis with AI optimizations
Complexity advanced
Nodes 29
Categories Market Research, AI Summarization
Author Łukasz
Published 25 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5303/5303.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 Google Search Console and analytics analysis with AI optimizations do?

What Is This? This workflow is a comprehensive solution for automating website audits and optimizations, leveraging advanced technologies to boost SEO effectiveness and overall site performance. Wh...

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, AI Summarization use case.