Pipelinica

How to send GA4 data to BigQuery: 3 ways

Updated

If you ever tried to build a dashboard or join GA4 with your ad costs, you probably hit the same wall: the GA4 interface is fine for looking, but your data needs to live in BigQuery. There are three ways to send GA4 data to BigQuery. Google's own BigQuery Export sends every raw event, Google's Data Transfer Service loads GA4 reports, and Pipelinica sends report tables on your schedule, next to your ad platforms' data.

Each way is good for a different job, so let's compare them first. Then we'll show you the Pipelinica steps.

The three ways at a glance

GA4 export Data Transfer Service Pipelinica
You get Raw events GA4 reports 10 ready-made reports, or any fields
Past days None As far back as GA4 keeps As far back as GA4 keeps
Custom dimensions Yes No Yes
Set up in GA4 and Google Cloud Google Cloud Pipelinica, into your dataset
Refresh Daily or streaming Daily Your schedule
Cost Free, plus BigQuery costs; streaming $0.05 per GB Free, plus BigQuery costs Your plan, plus BigQuery costs

Sources: Google's help on BigQuery Export and setting it up, and the Data Transfer Service's GA4 page.

Which one should you choose?

GA4's BigQuery Export is the right choice if you want every event and someone on your team writes SQL. You rebuild sessions, users and channels from the events yourself, and Google says the numbers can differ from the GA4 interface. We suggest turning it on today even if you don't need it yet, because it never fills in the days before you link it. Remember that a standard property can export at most 1 million events a day. If a property keeps going over it, Google pauses the daily export.

The Data Transfer Service is good if you work in Google Cloud and need only GA4. It's Google's own tool and costs nothing beyond BigQuery. You set it up in the Cloud console with the BigQuery Admin role, and it doesn't take custom dimensions.

Pipelinica fits if you want GA4 tables that look like the GA4 reports, without setting up an export or a transfer: it writes into a dataset you already have. The same account also sends Facebook Ads, Google Ads and other platforms to the same dataset, so you can join sessions with ad costs in one query. And if a client prefers a spreadsheet, a second pipeline can send the same report to Google Sheets.

How to send GA4 data to BigQuery with Pipelinica

What you need

Step 1 – Choose GA4 and BigQuery

  1. Sign up for Pipelinica with your Google account.
  2. Click New pipeline, then choose Google Analytics 4 as the source and Google BigQuery as the destination.
  3. Connect your Google account, pick the property and choose the first day to load.

Step 2 – Pick a ready-made report

Choose one of the 10 ready-made reports, such as Traffic acquisition, Landing pages or Ecommerce items. Or click Custom: pick your own and tick any of GA4's dimensions and metrics.

The fields step of a new pipeline: the Traffic acquisition report chosen among 10 ready-made GA4 reports, with Session default channel group ticked

By default, every row is one day of one combination of your dimensions, in your property's time zone. Pay attention to one limit from Google: a report takes at most 9 dimensions, the date among them, and 10 metrics. If you need more, make a second pipeline.

Step 3 – Choose the dataset and name the table

Connect the Google account that can write to BigQuery, then pick the project and a dataset you already have. Type a name for the table, for example ga4_traffic. You don't need to create it: the first run does.

Step 4 – Set the schedule and create the pipeline

Choose how often the table refreshes, check the summary and click Create the pipeline. The first refresh starts within minutes.

The last step of a new pipeline: the summary of a GA4 to BigQuery pipeline with the Traffic acquisition report, the table ga4_traffic and a daily schedule

That's all! Your table is partitioned by date, so a query over a few days stays cheap. A report table is small, too: our own test table for a traffic report holds 895 rows for 80 days.

Things to know

That's it

We hope this guide helps you choose the right way to get your GA4 data into BigQuery. If you get stuck, write to us and we'll help. Good luck!

Send your GA4 data to BigQuery for free, or read how far back you can export. And if your team prefers spreadsheets, a pipeline can send GA4 to Google Sheets just as well.