๐Ÿ“Š Automated GA4 analytics data backfill to BigQuery with Telegram alerts

โšก 336 views ยท ๐Ÿ“Š Market Research & Insights

Description

This workflow automates the daily backfill of Google Analytics 4 (GA4) data into BigQuery. It fetches 13 essential pre-processed reports (including User Acquisition, Traffic, and E-commerce) and uploads them to automatically created tables in BigQuery, and then send an alert in telegram.

How it works

Set up steps

  1. Google Credentials (OAuth): This workflow uses n8nโ€™s built-in โ€œGoogle OAuth2 APIโ€ credential. You do not need a Service Account key. Connect your Google account and ensure you grant scopes for Google Analytics API and BigQuery API.
  2. Config Node: Open the โ€œBackfill Configโ€ node and fill in:
    • GA4 Property ID
    • Google Cloud Project ID
    • BigQuery Dataset ID
  3. Telegram Setup (Optional): If you want alerts, configure the Telegram node with your Bot Token and Chat ID. If not, you can disable/remove this node.
  4. Schedule: By default, this is set to run daily. It is recommended to use a date expression (e.g., Today - 2 Days) to allow GA4 time to process data fully before fetching.

๐Ÿ”— Nodes Used

Telegram, Google Analytics, Google BigQuery, Schedule Trigger

๐Ÿ“ฅ Import

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

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup