GA4 to BigQuery
Sessions, total users and key events from Google Analytics 4, by any dimension your property has, in your own BigQuery dataset. Add Date to a report and history builds up.
- One table per report, named after it: fs_sessions_by_channel, for example.
- Refreshes every day on Plus, every 6 hours on Pro and every hour on Max.
- Up to 30,000 rows a report.
30 days of Plus, free from sign-up. No card needed. Paid plans from £15 a month.
| date | session_ | sessions | key_ |
|---|---|---|---|
| 2026-10-20 | Organic Search | 1858 | 53 |
| 2026-10-20 | Direct | 1845 | 54 |
| 2026-10-19 | Paid Search | 1641 | 50 |
| 2026-10-19 | 1623 | 50 | |
| 2026-10-18 | Organic Social | 1433 | 46 |
How to connect GA4 to BigQuery
To export GA4 to BigQuery you need a Google Cloud project with a dataset in it, and access to the GA4 property.
- On the Sources page, choose Connect Google and sign in with the Google account that can see your GA4 property.
- In Fresh Sheets, go to Destinations and choose Add a dataset. Enter the project ID and dataset ID.
- In Google Cloud, give the account Fresh Sheets shows you the BigQuery Data Editor role on your dataset, and add the label it shows.
- Back in Fresh Sheets, choose Check and add.
- Choose New report, pick Google Analytics 4 and the account, then the fields and date range.
- Under Destination, pick your dataset and name the table. Under Schedule, pick how often. Then Save and run.
Columns Google Analytics 4 writes to BigQuery
Each report is one table: the columns you pick, plus _fs_written_at, the time the row landed. Money is in the account's own currency.
| Column | Type | Fresh Sheets field |
|---|---|---|
date | DATE | Date |
session_ | STRING | Channel group |
session_ | STRING | Session source |
session_ | STRING | Session campaign |
country | STRING | Country |
device_ | STRING | Device category |
sessions | INT64 | Sessions |
total_ | INT64 | Total users |
total_ | NUMERIC | Total revenue |
key_ | FLOAT64 | Key events |
engagement_ | FLOAT64 (a fraction) | Engagement rate |
average_ | FLOAT64 | Avg. session duration |
bounce_ | FLOAT64 (a fraction) | Bounce rate |
cart_ | FLOAT64 (a fraction) | Cart-to-view rate |
purchase_ | FLOAT64 (a fraction) | Purchase-to-view rate |
These are common fields. You can choose any dimension or metric your property has, including custom dimensions, custom metrics and key events.
An example
A query for the report saved as Sessions by channel:
SELECT
date,
session_default_channel_group,
SUM(sessions) AS sessions,
SUM(key_events) AS key_events
FROM `your-project.your_dataset.fs_sessions_by_channel`
WHERE date >= DATE_SUB(CURRENT_DATE(), INTERVAL 30 DAY)
GROUP BY date, session_default_channel_group
ORDER BY date DESC, sessions DESC;Scheduling and refresh
Include Date and each run replaces only its own dates, so history builds up. Leave it out and each run replaces the whole table.
Try it with your own Google Analytics 4 data in BigQuery.
Other ways to do it
GA4 has its own BigQuery export of raw events, with a daily limit of 1 million events on standard properties. Past BigQuery's sandbox limits, you pay for the export.
Source: Analytics Help: BigQuery Export
Fresh Sheets sends Google Analytics to BigQuery as finished reports instead.
What this doesn't cover
Raw event-level data isn't included. This sends the reports GA4 shows you, not the events behind them.
Questions
How do I export data from GA4 to BigQuery?
Connect Google on the Sources page, add your dataset under Destinations, then build a GA4 report that sends to it. Each report becomes one table, and adding Date keeps history by day.
Other sources to BigQuery
Analytics
Advertising
- Google Analytics 4 to Google Sheets
- More on BigQuery
- Google Analytics 4 to Excel
- How to connect GA4 to Google Sheets
- GA4 in Claude
Last checked 22 October 2026
Send your GA4 reports to BigQuery
BigQuery is included in your 30 days of Plus, then on every paid plan.
30 days of Plus, free from sign-up. No card needed. Paid plans from £15 a month.
Paid plans from £15 a month, or £12 a month billed annually.
