Library / Reports, Analytics & Dashboards
Reports, Analytics & Dashboards
Fetch Google Search Console data into Google Sheets on a schedule
Runs on a schedule, queries the Google Search Console API for each domain by query, page and date, and writes the results to Google Sheets.
What it does
## Usage 1. Make a copy of this google sheet {{ $env.WEBHOOK_URL }} 2. Set your google service credentials and add these scopes {{ $env.API_BASE_URL }} {{ $env.API_BASE_URL }} {{ $env.API_BASE_URL }} 3. Replace the domains with your desired domains 1. Understanding the Workflow: - Nodes Overview: This workflow contains several nodes: - Set your domain: Sets the domain to be used in the queries. - Schedule Trigger: Starts the workflow based on a defined schedule. - HttpRequest (query, page, date): Fetches data from Google's Search Console API using specified dimensions and dates. - Split Out (x3): Splits the incoming JSON array into individual items for further processing. - Edit Fields (x3): Maps the outgoing data to specified fields, preparing it for insertion into Google Sheets. - Google Sheets (x3): Adds or updates entries in specified Google Sheets documents with the fetched data. - Inputs and Outputs: - Input: API response from Google Search Console regarding keywords, page data, and date data. - Output: Entries written to Google Sheets containing keyword data, clicks, impressions, CTR, and positions. 2. Setup Instructions: - Prerequisites: - An n8n instance set up and running. - Active Google Account with access to Google Search Console and Google Sheets. - Google OAuth 2.0 credentials for API access. - Step-by-Step Setup: 1. Open n8n and create a new workflow. 2. Add the nodes as described in the JSON. 3. Configure the Google OAuth2 credentials in n8n to enable API access. 4. Set your domain in the Set your domain node. 5. Customize the Google Sheets document URLs to your personal sheets. 6. Adjust the schedule in the Schedule Trigger node as per your requirements. 7. Save the workflow. - Configuration Options: - You can customize the date ranges in the body of the HttpRequest nodes. - Adjust any fields in the Edit Fields nodes based on different data requirements. 3. Use Case Examples: - Useful in tracking website performance over time using Search Console metrics. - Ideal for digital marketers, SEO specialists, and web analytics professionals. - Offers value in compiling performance reports for stakeholders or team reviews. 4. Running and Troubleshooting: - Running the Workflow: - Trigger the workflow manually or wait for the schedule to run it automatically. - Monitoring Execution: - Check the execution logs in n8n's dashboard to ensure all nodes
The steps
- Split Out
- Edit Fields
- Split Out1
- Edit Fields1
- Split Out2
- Edit Fields2
- date
- Schedule Trigger
- Set your domain
- Get query Report
- Get Page Report
- Update queries to Sheets
- Update Pages to Sheets
- Update date report to sheets
Similar automations
Reports, Analytics & DashboardsExport Google Search Console Data to Google Sheets14 stepsReports, Analytics & DashboardsSend weekly Search Console reports to Slack and Sheets with Claude Haiku15 stepsReports, Analytics & DashboardsOptimize SEO with Search Console, Analytics and OpenAI23 stepsReports, Analytics & DashboardsGoogle Search Console API Examples for Rankings and Cannibalization24 steps