Short answer: Compare the same reporting periods in Google Analytics 4 and Google Search Console, check that tracking and the site itself are working, and only then look for SEO causes. You can automate the whole check with n8n: it pulls the data every week, flags unusual drops, sends the numbers to Claude for a ranked list of possible causes, and emails you the report.
A traffic drop feels urgent, and the first guess is usually wrong. Rankings get blamed when the real problem is a broken tracking tag, a holiday week, or a page that changed its title. This guide shows how to build a weekly workflow that collects the evidence first and guesses second.
Compare two consistent periods, for example the last 28 days against the 28 days before, in both GA4 and Search Console. Look at organic sessions, search clicks, impressions, click through rate (CTR), average position and conversions. Before you decide it is an SEO problem, rule out tracking failures and technical issues.
AI can read the numbers, spot patterns, rank possible explanations and tell you what to check next. It cannot confirm the cause from traffic metrics alone. Treat its answer as a list of hypotheses, then verify each one with technical checks and real evidence.
Use an HTTP Request node with Google OAuth2 credentials, or the built in Google Analytics node if it covers the metrics you need. The GA4 Data API report method looks like this:
POST https://analyticsdata.googleapis.com/v1beta/properties/PROPERTY_ID:runReport
{
"dateRanges": [
{"startDate": "28daysAgo", "endDate": "yesterday", "name": "current"},
{"startDate": "56daysAgo", "endDate": "29daysAgo", "name": "previous"}
],
"dimensions": [{"name": "sessionDefaultChannelGroup"}],
"metrics": [{"name": "sessions"}, {"name": "conversions"}]
}
Keep the channel dimension. If every channel dropped at the same time, the cause is probably tracking or the site, not search. Check the metric names against the current GA4 schema in your own property, since some names have changed over time.
The Search Analytics API returns clicks, impressions, CTR and position. Make one request per period:
POST https://www.googleapis.com/webmasters/v3/sites/SITE_URL/searchAnalytics/query
{
"startDate": "2026-09-01",
"endDate": "2026-09-28",
"dimensions": ["page"],
"rowLimit": 250
}
Search Console data arrives with a delay and the last few days can be incomplete. End both periods a few days before today so you compare finished data. Add a second request with the query dimension when you want to see which searches lost visibility. Check the API usage limits before you request many rows or many sites.
In a Code node, calculate the percentage change for each metric and each top page. A simple rule to start with: flag any metric that fell more than 20% and any page that lost more than 30% of its clicks. Adjust the thresholds to your site. A small site moves a lot from week to week, so it needs wider thresholds than a large one.
Add these answers to the data you send to Claude. A drop in every channel at once almost always points to tracking or a site problem.
Send the prepared summary, not raw API responses. A prompt that works well:
You are an SEO analyst. Below is a comparison of two periods from GA4 and
Search Console, plus a tracking checklist.
1. List up to 5 possible causes, ranked from most to least likely.
2. For each, quote the numbers that support it.
3. For each, give one concrete check to confirm or rule it out.
4. Separate what the data shows from what you are guessing.
Do not recommend deleting pages or changing redirects based on this alone.
DATA:
{{ $json.summary }}
Use the Gmail node to send Claude's answer together with the key numbers. Put the biggest change in the subject line, so you know at a glance whether the email needs your attention today.
Start with organic sessions, search clicks, impressions, CTR, average position and the conversions that matter to your business. Watch other channels separately so you can tell a search problem from a tracking or marketing problem.
Ranking changes, lower search demand, seasonality, lower CTR, technical SEO problems, site changes, marketing changes or broken tracking. Compare more than one data source before you pick an explanation.
Claude analyzes GA4 data when it is supplied through an integration or a workflow. In this guide n8n retrieves and prepares the data and then passes it to Claude.
Weekly is a good start for most sites. Online stores and sites that depend on leads may want a daily check with alerts for severe drops.
No. Clicks can fall because impressions fell, CTR changed, demand shifted or the search results page changed. Read average position together with the other metrics.
It can recommend actions and trigger approved processes. Any automatic change should go through validation and a human approval step. An AI explanation alone is not enough evidence to delete pages, change redirects or edit canonical tags.
It can run on free allowances and self hosted n8n, but costs depend on your hosting, your AI API usage and your plans. Do not assume every part is free at every volume.
Verify the current n8n node settings, your OAuth2 setup and the GA4 metrics available in your property. The requests above show the structure of the workflow. They are not a complete importable n8n workflow.
Stop guessing why your traffic is changing. Find more practical AI workflows on Masterphub. COPY. PASTE. PROFIT.