Scan and fix WordPress noindex pages with Google Sheets and RankMath
Ready for 3.0What this workflow does
This workflow has 15 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Sheets.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Get URLs (Google Sheets): uses Google Sheets
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Get Rows Needing Index (Google Sheets): uses Google Sheets
- Fetch URL (HTTP Request): calls an HTTP API
- Limit: keeps the first few items
- Parse robots (Code): runs custom JavaScript code
- Fetch Page for ID (HTTP Request): calls an HTTP API
- Write Robots Status to Sheet (Google Sheets): update
- Get Object ID (Code): runs custom JavaScript code
- Has object_id (If): checks a condition and branches into true / false
…plus 4 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Manual Trigger
n8n-nodes-base.manualTrigger - Google Sheets
n8n-nodes-base.googleSheets - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Limit
n8n-nodes-base.limit - If
n8n-nodes-base.if
From the author
Quick overview This workflow reads URLs from Google Sheets, checks each page for noindex directives in the meta robots tag or X-Robots-Tag header, writes the status back to the sheet, and for rows marked “Needs index” calls the RankMath WordPress REST API to…