Skip to main content

Automated GA4 analytics data backfill to BigQuery with Telegram alerts

Workflow preview

Workflow preview
100%
Automated GA4 analytics data backfill to BigQuery with Telegram alerts preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 up...

Best for

  • Market Research automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.googleanalytics, n8n-nodes-base.googlebigquery, n8n-nodes-base.set, n8n-nodes-base.scheduletrigger, n8n-nodes-base.merge, n8n-nodes-base.code, n8n-nodes-base.telegram, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Aliz.

Original n8n.io source

1.1 Workflow description

Title
Automated GA4 analytics data backfill to BigQuery with Telegram alerts
Workflow name
Automated GA4 analytics data backfill to BigQuery with Telegram alerts

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

  • Configuration: You define your Project ID, Dataset, and Date Range in a central "Config" node.
  • Parallel Fetching: The workflow runs 13 parallel API calls to GA4 to retrieve key reports (e.g., ga4_traffic_sources, ga4_ecommerce_items).
  • Dynamic Tables: It automatically checks if the target BigQuery table exists and creates it with the correct schema if it's missing.
  • Telegram Alerts: After execution, it sends a summary message to Telegram indicating success or failure for the day's run.

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.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - GA4 - Session Channel Group

Type / Role
n8n-nodes-base.googleAnalytics - googleAnalytics
Config choices
Version 2

Block 2 - BQ - ga4_data_session_channel_group

Type / Role
n8n-nodes-base.googleBigQuery - googleBigQuery
Config choices
Version 2.1

Block 3 - GA4 - Session Source/Campaign/Medium

Type / Role
n8n-nodes-base.googleAnalytics - googleAnalytics
Config choices
Version 2

Block 4 - BQ - ga4_data_session_source_campaign_medium

Type / Role
n8n-nodes-base.googleBigQuery - googleBigQuery
Config choices
Version 2.1

Block 5 - GA4 - Country/Language/City

Type / Role
n8n-nodes-base.googleAnalytics - googleAnalytics
Config choices
Version 2

Block 6 - BQ - ga4_data_country_language_city

Type / Role
n8n-nodes-base.googleBigQuery - googleBigQuery
Config choices
Version 2.1

Block 7 - GA4 - Item Name

Type / Role
n8n-nodes-base.googleAnalytics - googleAnalytics
Config choices
Version 2

Block 8 - BQ - ga4_data_item_name

Type / Role
n8n-nodes-base.googleBigQuery - googleBigQuery
Config choices
Version 2.1

Block 9 - GA4 - Browser/OS/Device

Type / Role
n8n-nodes-base.googleAnalytics - googleAnalytics
Config choices
Version 2

Block 10 - BQ - ga4_data_browser_os_device

Type / Role
n8n-nodes-base.googleBigQuery - googleBigQuery
Config choices
Version 2.1

Block 11 - GA4 - First User Source/Medium

Type / Role
n8n-nodes-base.googleAnalytics - googleAnalytics
Config choices
Version 2

Block 12 - BQ - ga4_data_first_user_source_medium

Type / Role
n8n-nodes-base.googleBigQuery - googleBigQuery
Config choices
Version 2.1

Block 13 - GA4 - First User Channel Group

Type / Role
n8n-nodes-base.googleAnalytics - googleAnalytics
Config choices
Version 2

Block 14 - BQ - ga4_data_first_user_channel_group

Type / Role
n8n-nodes-base.googleBigQuery - googleBigQuery
Config choices
Version 2.1

Block 15 - GA4 - Ads Data

Type / Role
n8n-nodes-base.googleAnalytics - googleAnalytics
Config choices
Version 2

Block 16 - BQ - ga4_ads_data

Type / Role
n8n-nodes-base.googleBigQuery - googleBigQuery
Config choices
Version 2.1

Block 17 - GA4 - All Metrics

Type / Role
n8n-nodes-base.googleAnalytics - googleAnalytics
Config choices
Version 2

Block 18 - BQ - ga4_all_metrics_data

Type / Role
n8n-nodes-base.googleBigQuery - googleBigQuery
Config choices
Version 2.1

Block 19 - GA4 - Event Metrics

Type / Role
n8n-nodes-base.googleAnalytics - googleAnalytics
Config choices
Version 2

Block 20 - BQ - ga4_event_metrics_data

Type / Role
n8n-nodes-base.googleBigQuery - googleBigQuery
Config choices
Version 2.1

Block 21 - GA4 - Page Location

Type / Role
n8n-nodes-base.googleAnalytics - googleAnalytics
Config choices
Version 2

Block 22 - BQ - ga4_page_location_data

Type / Role
n8n-nodes-base.googleBigQuery - googleBigQuery
Config choices
Version 2.1

Block 23 - GA4 - Landing Page

Type / Role
n8n-nodes-base.googleAnalytics - googleAnalytics
Config choices
Version 2

Block 24 - GA4 - Transaction Items

Type / Role
n8n-nodes-base.googleAnalytics - googleAnalytics
Config choices
Version 2

Showing the first 24 of 34 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Automated GA4 analytics data backfill to BigQuery with Telegram alerts
Complexity advanced
Nodes 34
Categories Market Research
Author Aliz
Published 19 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/11010/11010.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automated GA4 analytics data backfill to BigQuery with Telegram alerts do?

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 up...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research use case.