πŸ“Š Get your website indexed by Google automatically

⚑ 14,000 views Β· πŸ“Š Market Research & Insights

Description

πŸš€ Supercharge Your Website Indexing with This Powerful n8n Workflow! 🌐

Google page indexing too slow? Tired of manually clicking through each page in the Google Search Console? 😴 Say goodbye to that tedious process and hello to automation with this n8n workflow! πŸŽ‰

NB: this workflow was tested with sitemap.xml generated by Ghost CMS and WordPress. Reach out to Eduard if you need help adapting this workflow to your specific use-case!

βš™οΈ How this automation works

  1. πŸ“… The workflow runs on a schedule or when you click β€œTest workflow”.
  2. 🌐 It fetches the website’s primary sitemap.xml and extracts all the content-specific sitemaps (this is a typical structure of the sitemap).
  3. πŸ“‘ Each content-specific sitemap is then parsed to retrieve the individual page data.
  4. πŸ”„ The extracted page data is converted to JSON format for easy manipulation.
  5. πŸ—ƒοΈ The lastmod (last modified date) and loc (page URL) fields are assigned to each page entry to ensure compliance with the Sitemap protocol.
  6. πŸ”€ The page entries are sorted by the lastmod field in descending order (newest to oldest).
  7. πŸ” The workflow then loops over each page entry and performs the following steps:
    • πŸ” Checks the URL metadata in the Google Indexing API.
    • βœ… If the page is new or has been updated since the last indexing request, it sends a request to the Google Indexing API to update the URL.
    • ⏳ Wait a sec and move on with the next page.

🌟 Benefits

πŸ”§ Getting started

To start using this powerful n8n workflow, follow these steps:

  1. β˜‘οΈ Make sure to verify the website ownership in the Google Search Console.
  2. πŸ‘¨β€πŸ’» Import the workflow JSON into your n8n instance.
  3. Edit the Get sitemap.xml node and update the URL with your website’s valid sitemap.xml
  4. πŸ”‘ Set up the necessary credentials for the Google Indexing API.
  5. 🎚️ Adjust the schedule trigger to run the workflow at your desired frequency.
  6. πŸŽ‰ Sit back and let the workflow handle the indexing process for you!

Ready to take your website indexing to the next level? πŸš€ Try this workflow now and see the difference it makes! 😊

⚠️ IMPORTANT NOTE 1

Need help with connecting Google Cloud Platform to n8n? Check out our article on connecting Google Sheets to n8n. The process is mainly the same. When activating Google APIs, make sure to add Web Search Indexing API. Also, in the credential page of n8n, add the https://www.googleapis.com/auth/indexing scope:

image.png

Check out Yulia’s page for more n8n workflows!

⚠️ IMPORTANT NOTE 2

Free Google Cloud Platform account allows (re)indexing only 200 pages per day. If your website has more, then the workflow will automatically fail on quota limit β›”. Next day it will skip the previously added items and continue with remaining pages.

Example: Assuming you have a free Google account, 500 pages on your website and they don’t change for 3 days:

πŸ”— Nodes Used

HTTP Request, Schedule Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup