n8n

How to Automate Google Analytics SEO Reporting?

Get a weekly SEO digest without manual work. The automation pulls web traffic, search landing page performance, and country trends, then compares this week to last week. It sends the data to an AI writer and saves the summary in a Baserow table for easy tracking.

A schedule trigger runs the job each week, and a manual trigger lets you test on demand. Google Analytics nodes fetch page engagement, search landing pages, and country views for both time frames. Code nodes format the results, then three HTTP requests pass the page, search, and country data to an AI endpoint. The final output is written to Baserow so teams can view insights across time.

Setup needs Google Analytics access, an OpenRouter API key, and a Baserow table with the listed fields. Expect faster reporting, clear week over week changes, and one place for your SEO notes. Great for marketing teams, content owners, and anyone who needs quick status updates before weekly standups.

What are the key features?

  • Weekly and manual runs using schedule and manual triggers
  • GA4 page engagement pull with views, users, and events by page
  • GA4 search landing page data using landing page plus query string
  • Country level views for this week and last week
  • Code nodes format and compare data week over week
  • Three AI calls generate summaries for pages, search, and countries
  • Results saved to Baserow with fields for Name, Country Views, Page Views, Search Report, and Blog
  • Date ranges use expressions to capture this week and prior week

What are the benefits?

  • Reduce manual reporting work from 3 hours to 10 minutes
  • Streamline weekly SEO reporting by about 80 percent
  • Improve data consistency by 90 percent with one source of truth
  • Connect three systems seamlessly for end to end reporting
  • Run on a fixed weekly schedule with no reminders needed

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Google Analytics, Baserow and OpenRouter. See the Tools Required section above for links to create accounts with these services.
  3. In the n8n credentials manager, create Google Analytics credentials. Double click any Google Analytics node, choose the credential dropdown, click Create new credential, and follow the on screen steps to connect your Google account with GA4 read access.
  4. Set your GA4 property ID in each Google Analytics node. Open a GA node and paste your property ID in the Property field to match your site.
  5. Confirm the date ranges. The flow uses expressions for this week and last week. Adjust time zone in n8n if your reporting week needs a different cut off.
  6. Open each HTTP Request node for the AI calls. Set Authentication to Header Auth. Username should be Authorization. Password should be Bearer followed by a space and your OpenRouter API key.
  7. In Baserow, create a table with columns Name, Country Views, Page Views, Search Report, and Blog. Copy your Baserow API token from your account settings.
  8. In n8n, create Baserow credentials. Double click the Baserow node, select Create new credential, paste your API token, and save.
  9. Map the Baserow fields in the Save output node so each AI summary lands in the correct column. Add your website name in the Blog field.
  10. Set the Schedule Trigger to run weekly. You can change the interval to fit your reporting cycle.
  11. Run a test with the manual trigger. Check the execution log to verify GA nodes return data, AI requests return status 200, and a new row appears in Baserow.
  12. If errors occur, confirm the GA property ID and permissions, fix any missing Authorization header in AI calls, and check that your Baserow token and table ID are correct.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Baserow

Sign up

Cloud Free plan: $0 / mo; API access via database tokens; 3,000 rows/workspace and 2GB storage/workspace

Google Analytics

Sign up

Free (GA4 standard): $0; API access included and subject to quotas

OpenRouter

Sign up

Free models: $0 via API, 20 requests/min; 50/day or 1000/day with ≥10 credits

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.