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.

fs_sessions_by_channel
datesession_default_channel_groupsessionskey_events
2026-10-20Organic Search185853
2026-10-20Direct184554
2026-10-19Paid Search164150
2026-10-19Email162350
2026-10-18Organic Social143346
Example, with made-up figures

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.

  1. On the Sources page, choose Connect Google and sign in with the Google account that can see your GA4 property.
  2. In Fresh Sheets, go to Destinations and choose Add a dataset. Enter the project ID and dataset ID.
  3. In Google Cloud, give the account Fresh Sheets shows you the BigQuery Data Editor role on your dataset, and add the label it shows.
  4. Back in Fresh Sheets, choose Check and add.
  5. Choose New report, pick Google Analytics 4 and the account, then the fields and date range.
  6. 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.

ColumnTypeFresh Sheets field
dateDATEDate
session_default_channel_groupSTRINGChannel group
session_sourceSTRINGSession source
session_campaign_nameSTRINGSession campaign
countrySTRINGCountry
device_categorySTRINGDevice category
sessionsINT64Sessions
total_usersINT64Total users
total_revenueNUMERICTotal revenue
key_eventsFLOAT64Key events
engagement_rateFLOAT64 (a fraction)Engagement rate
average_session_durationFLOAT64Avg. session duration
bounce_rateFLOAT64 (a fraction)Bounce rate
cart_to_view_rateFLOAT64 (a fraction)Cart-to-view rate
purchase_to_view_rateFLOAT64 (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.

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.