Build the report around a question your team asks every week. This example sends aggregate sessions, active users and key events for the previous Monday–Sunday to a private Slack channel. Start by downloading the GA4 weekly reporting workflow. Its sample path uses fictional counts and skips provider calls.
Connect n8n to one GA4 property
- Enable the Google Analytics Data API in your Google Cloud project. Grant the reporting identity access to the GA4 property and use the numeric property ID from Admin.
- In n8n, create a generic OAuth2 credential for the HTTP Request node. Use Google Authorization Code OAuth, scope
https://www.googleapis.com/auth/analytics.readonly, the callback displayed by n8n, and offline access for a scheduled workflow. Grant property access to the Google user who connects the credential. Keep secrets in the credential store. - Set the workflow schedule timezone and the configuration node's reporting timezone to the GA4 property timezone. Pick a delivery time that allows for data processing. The downloadable workflow schedules Wednesday at 09:00 in the configured workflow timezone.
Authorization URL is https://accounts.google.com/o/oauth2/v2/auth and token URL is https://oauth2.googleapis.com/token. For a service-account integration outside this template, grant that identity property access directly. Google OAuth for web server apps, Google Data API quickstart, n8n HTTP Request node
Extract and validate the numbers
POST a single date range with sessions, activeUsers, and keyEvents to the property's runReport endpoint. Request the totals without dimensions. To investigate acquisition sources, use a separate breakdown and compare values only at the same scope. Check metric headers, dates, property timezone, and response metadata. The sample workflow stops on empty rows or reported sampling, thresholding, restrictions, or the other-row flag. Data API request reference, Response metadata
Test then schedule delivery
Follow the setup manual to run the sample with unconfigured HTTP nodes disabled. In staging, bind Google credentials and enable the data fetch while leaving delivery off. Compare the output with the matching GA4 report. For Slack delivery, bind the bot credential, verify the private channel and its membership, then enable delivery and run once before activating the schedule. For email, replace the Slack delivery and confirmation steps with your authenticated email node and verify the recipient. Configure an n8n error workflow and review ambiguous delivery before replaying a run. A Slack acknowledgement confirms provider acceptance. Slack message API, n8n error handling
Continue with the Google Analytics overview, GA4 Data API guide, or reporting implementation services.