This is a simple golang cli to export data from Google Analytics 4 to BigQuery.
- https://github.com/aliasoblomov/Backfill-GA4-to-BigQuery
- Google Analytics 4 API
- Google Cloud BigQuery API
- Google Cloud BigQuery Go Client
Go 1.16 or later Google Cloud SDK Google Analytics 4 Property Google Cloud Project with BigQuery enabled
- Create a Google Cloud Project
- Enable BigQuery API
- Create a BigQuery Dataset
- Create a Google Analytics 4 Property
- Clone the repository
- Run the following command to build the binary
go build -o go-ga4-to-bigquery
- Run the binary
./go-ga4-to-bigquery run-report --config ./config.json
- Supported Report Types
- daily-active-users
- daily-events
- daily-user-technology
- daily-user-channel-grouping
- daily-cross-channel