Skip to content
ZeeGrowth logozeegrowth

Google Analytics 4 + n8n: Free Workflows & Setup Guide

What you can automate

  • ✓Pull daily traffic, sessions and user data into reports
  • ✓Monitor for traffic drops and trigger alerts
  • ✓Export conversion data to spreadsheets for analysis
  • ✓Compare periods to spot trends automatically
  • ✓Build custom dashboards from GA4 data
  • ✓Track specific events and goal completions

Credential setup

Go to Google Cloud Console → APIs & Services → Credentials → Create OAuth 2.0 Client ID. Enable the Google Analytics Data API (not the older Analytics Reporting API). In n8n, add a Google Analytics credential and authorize it.

Common errors & fixes

Property not found (404)

Make sure you're using the GA4 Property ID (a number like 123456789), not the Measurement ID (G-XXXXXXX). Find it in GA4 Admin → Property Settings.

User does not have sufficient permissions

The Google account used for OAuth needs at least Viewer access to the GA4 property. Ask the property admin to add you.

Free templates using Google Analytics 4

Frequently asked questions

Does it work with Universal Analytics?+

No. Universal Analytics was retired in 2024. This integration uses the GA4 Data API only.

Can I pull real-time data?+

Yes. The GA4 Data API has a realtime endpoint. Use it sparingly, as real-time data has lower accuracy than processed reports.

What dimensions and metrics can I query?+

All GA4 dimensions and metrics are available. Common ones include sessions, activeUsers, screenPageViews, conversions, sessionSource and pagePath.

Want us to set it up for you?

We install the workflow on your n8n instance, connect credentials, and leave you with a running automation.

Get setup help

Free n8n automations that grow your business.