ga4-bigquery-export-and-sql

Connect Google Analytics 4 to BigQuery for exporting raw event data.

1|Updated Jun 24, 2026
One-click install
npx skills add https://github.com/scumunna/programmatic-skills --skill ga4-bigquery-export-and-sql
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ga4-bigquery-export-and-sql
Source: https://github.com/scumunna/programmatic-skills/tree/main/skills/ga4-bigquery-export-and-sql
Command: npx skills add https://github.com/scumunna/programmatic-skills --skill ga4-bigquery-export-and-sql

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill connects Google Analytics 4 (GA4) with BigQuery, enabling users to access raw, unsampled event data for detailed analysis and complex queries that are not possible within the GA4 UI.

Core Features & Use Cases

  • GA4 to BigQuery Linking: Establishes a connection between GA4 and BigQuery for data export.
  • Event Data Analysis: Allows users to perform in-depth analysis on unsampled event data.
  • Use Case: For instance, users can query the nested event schema to understand why BigQuery totals do not match the GA4 UI or to attribute conversions from raw GA4 export data.

Quick Start

Run the 'ga4-bigquery-export-and-sql' skill to configure the GA4 BigQuery export and query the nested event schema.

Frequently Asked Questions about ga4-bigquery-export-and-sql

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I export raw GA4 event data to BigQuery for SQL analysis?

You can export raw GA4 event data to BigQuery by linking your GA4 property to BigQuery, enabling automatic export of unsampled event data for in-depth SQL analysis and complex queries.

Why do my BigQuery totals not match the GA4 UI reports?

BigQuery totals often differ from GA4 UI reports because BigQuery contains raw, unsampled event data. Querying the nested event schema allows you to uncover specific attribution or sessionization logic causing these data discrepancies.

What SQL knowledge is required to query GA4 data in BigQuery?

Querying GA4 data in BigQuery requires familiarity with SQL and the GA4 event schema. You need advanced SQL skills to handle nested fields, perform sessionization, and execute cross-source joins for attribution analysis.

Can I perform conversion attribution using raw GA4 export data?

Yes, you can perform conversion attribution using raw GA4 export data. By connecting GA4 to BigQuery, you gain access to unsampled event data, enabling custom attribution modeling and complex sessionization logic via SQL.

Does GA4 BigQuery export support cross-source data joins?

Yes, GA4 BigQuery export supports cross-source data joins. Once your unsampled GA4 event data is in BigQuery, you can use SQL to join it with other data sources for comprehensive, multi-platform attribution analysis.