All Templates
Marketing Operations • Intermediate • 1 n8n workflow

Search Content Decay Detection System

Compare consecutive Google Search Console periods and queue pages with meaningful click losses in Google Sheets. Each row shows baseline and recent clicks, impressions, lost clicks, and drop percent.

By Luka Salagishvili at Uptune

Last updated:

0

One system, 1 connected workflow

Start with the complete package and setup directions. The preview below shows the entry workflow. Import every listed workflow separately, then connect their references in your n8n instance.

Get the workflow Read the setup directions

Entry workflow preview

Powered by n8n.io

Read the architecture, decision rules, and exception handling in the source blueprint .

Continue with the related architecture guide .

How it works

What this workflow does

Find pages that are losing organic search clicks before the decline becomes obvious in a monthly report. A weekly schedule queries Google Search Console for the latest 28-day window and the preceding 28 days, compares pages that appear in both periods, and queues meaningful drops in Google Sheets with both traffic totals and the size of the loss.

The workflow imports inactive with dryRun: true. Run with sample data compares a fictional baseline and recent fixture, so the preview does not call Search Console or Google Sheets.

This is a search-performance review layer for the Campaign Launch Assurance & Weekly Performance blueprint; the Content Publishing & Newsletter Intelligence blueprint covers the content refresh that follows.

Use finalized comparison windows

Plan Search Console comparison requires the exact Search Console property and spreadsheet ID. It builds two 28-day windows with a configurable finalDataLagDays (four by default), so the query avoids incomplete recent data. Both API requests use dataState: "final" and the page dimension.

The baseline query and the recent query are validated as URL, click, and impression rows. Duplicate or malformed pages stop the run. If either response reaches the configured row limit, the workflow stops instead of silently comparing a truncated report.

Flag only meaningful declines

A page must appear in both periods and meet all three defaults: at least 30 baseline clicks, at least 15 lost clicks, and a 25 percent drop. The queue row records the baseline and recent clicks and impressions, the lost click count, the drop percent, and the period end. Findings are sorted by the largest click loss.

Pages that existed in the baseline but are absent from the recent response are counted in missingFromRecent but are not added to the decline queue. Search Console can omit rows, so investigate those pages independently.

Replays and validation scope

The Finding ID combines the period end and page URL. Running the same period again updates the same review rows; a new period creates a fresh set of findings.

The supplied report confirms the isolated n8n 2.47.4 import, inactive state, and sample path. It also covers structural checks, the 50 percent decline fixture, omission handling, and row-limit rejection. Live Search Console and Google Sheets calls require a staging test with your accounts.

How to use

Before you start

  • A current n8n instance.
  • A Google Cloud project with the Search Console API enabled.
  • A Google account that can read the Search Console property.
  • A Google spreadsheet tab for the review queue.
  • A Google Sheets OAuth credential.

1. Import and run the sample

Download the complete package, extract the ZIP, and read the full setup guide. Import search-content-decay.n8n.json and keep it inactive.

Open Run with sample data and choose Test workflow. Compare search performance should flag one page with a 50 percent click decline and keep the other fixture pages out of the queue.

2. Configure the property and sheet

Enter the exact Search Console property in Setup, such as sc-domain:example.com or https://www.example.com/, and the destination spreadsheetId.

Create a tab called Search Review Queue with these exact headers:

Finding IDPagePeriod EndBaseline ClicksRecent ClicksLost ClicksDrop PercentBaseline ImpressionsRecent Impressions

Select the Google Sheets OAuth credential on Save organic review queue.

3. Configure Search Console OAuth

Create a generic OAuth2 API credential for Google with the https://www.googleapis.com/auth/webmasters.readonly scope. Use Google's authorization and token endpoints and an account with access to the property. Select it on both Search Console HTTP nodes.

Enable the Search Console API in your Google Cloud project before the first live run. The property string must match Search Console exactly; a URL-prefix property and a domain property are different values.

4. Tune the thresholds

Set the workflow timezone and review the defaults in Setup: minimumBaselineClicks 30, minimumLostClicks 15, minimumDropPercent 25, finalDataLagDays 4, and rowLimit 5000. The comparison uses two 28-day windows ending before the configured lag.

Run a scheduled staging test before activating the weekly Monday 08:00 report. Confirm the dates, the property scope, and the queue rows.

5. Review the findings

Use the supplied test payloads to check the baseline and recent shapes. Repeating the same period updates the same finding rows; a new period creates a fresh set of review items.

A click decline is a review signal. Check comparison dates, impressions, search position, and recent site or search changes before editing a page. If either window reaches the row limit, narrow the page scope or increase the limit within the API maximum.

Use the Source-Backed WordPress Draft System to refresh a declining article with cited sources, then the Article-to-Social Draft System to distribute the updated piece. The Industry News Digest System keeps the team aware of search and advertising changes, and the Company Positioning Brief System keeps the page aligned with the audience. Read the Campaign Launch Assurance blueprint for the wider performance process. For recurring revenue reporting, use the HubSpot Weekly Sales Pipeline Digest.

By Luka Salagishvili at Uptune

Luka shares practical workflow templates and automation guides at Uptune, covering connected business tools, implementation steps, and testing before launch.

Luka on LinkedIn · Book a consultation

Get the complete automation system

Download the workflow and the supporting files together. Extract the ZIP, then import the workflow JSON listed below separately. Configuration, source code, and other supporting files are not n8n workflow imports.

Download complete package (ZIP)

1 connected n8n workflow

It imports inactive. Follow the package setup directions before activating schedules or delivery.

  1. Search content decay detection workflow

    A weekly schedule queries two finalized Search Console windows, compares pages present in both periods, and upserts meaningful click declines to a Google Sheets review queue.

    search-content-decay.n8n.json
    Download workflow 01

Setup, integration, and validation files

  • Complete setup guide

    Search Console property setup, OAuth scopes, reporting windows, thresholds, sheet headers, and review guidance.

    README.md
  • Test payloads

    A baseline and recent metrics fixture with one expected 50 percent click decline.

    test-payloads.json
  • Supplied validation report

    Isolated n8n 2.47.4 import, sample-path result, structural checks, and file hashes. Live provider authentication and calls were not executed.

    validation-report.txt