How to Export Google Analytics 4 Data into Google Sheets 

There are three methods for exporting Google Analytics 4 data into Google Sheets. Let’s review each of them. 

Option #1: Export GA4 Data using GA4 Interface (Manually)

The first can be an excellent option for those who don’t need to keep their data up-to-date in Google Sheets and want to export GA4 data for some specific analysis. 

Every report in Google Analytics 4, whether a default one or GA4 exploration, allows you to download the data as a CSV file or export the data directly into Google Sheets. 

So GA4 Explore allows you to export the data into Google Sheets directly. In order to do it, create your report and click on the top right-side navigation download button and select Google Sheets. After that, the data will be exported directly into Google Sheets. 

Exporting GA4 data into Google Sheets using GA4 Explore
Exporting GA4 data from GA4 Explore

If you’re using a default GA4 report such as “Traffic Acquisition report”, you must download the data as a CSV file first and then import the CSV file into Google Sheets. In this case, the steps look the following way:

  1. Click on the “Share this report” icon
  2. Chose “Download file”
  3. Select “Download CSV”
  4. Import downloaded CSV file into Google Sheets
Exporting GA4 data into Google Sheets Traffic Acqusition Report
Exporting GA4 data from Traffic Acquisition Report

Again, this is an excellent option for those wanting to conduct a one-time analysis. If you are interested in not only storing your historical GA4 data in Google Sheets but also keeping it up-to-date, you need the second or the third option.

Option #2: Export GA4 Data using Google Sheets Add-on (Automatically)

The second option is to use the Google Sheets add-on. Google Analytics 4 is a relatively new tool, and Google hasn’t built its own Google Sheet add-on yet, but there is at least one free Google Sheets Add-on that you can use to import GA4 data into Google Sheets. It’s called GA4 Magic Reports and was created by Michele Pisani

Export GA4 data into Google Sheets using Add-on GA4 Magic Reports
Export GA4 data into Google Sheets using GA4 Magic Reports

If you used the “Google Analytics Spreadsheet Add-on” add-on beforehand, you will learn how to use GA4 Magic Reports fast because it has almost the same UI. 

It also allows you to create multiple reports and update them hourly, daily, weekly or monthly. 

However, this add-on can’t export data from some GA4 explorations, such as funnels or cohorts. If you need to export data from these reports, use Google Analytics 4 Data API. 

Option #3: Export GA4 Data using Google Analytics 4 Data API (Dev skills required)

If you are comfortable with Google App Script, you can connect your Google Sheets file with GA4 using Google Analytics 4 Data API and export the necessary data from it. You can also use triggers to schedule the data updates. 

Google already published the template you can use to understand better how to connect Google Sheets with GA4 using App Script. 

 * Runs a report of a Google Analytics 4 property ID. Creates a sheet with the
 * report.
function runReport() {
   * TODO(developer): Uncomment this variable and replace with your
   *   Google Analytics 4 property ID before running the sample.
  const propertyId = 'YOUR-GA4-PROPERTY-ID';

  try {
    const metric = AnalyticsData.newMetric(); = 'activeUsers';

    const dimension = AnalyticsData.newDimension(); = 'city';

    const dateRange = AnalyticsData.newDateRange();
    dateRange.startDate = '2020-03-31';
    dateRange.endDate = 'today';

    const request = AnalyticsData.newRunReportRequest();
    request.dimensions = [dimension];
    request.metrics = [metric];
    request.dateRanges = dateRange;

    const report = AnalyticsData.Properties.runReport(request,
        'properties/' + propertyId);
    if (!report.rows) {
      console.log('No rows returned.');

    const spreadsheet = SpreadsheetApp.create('Google Analytics Report');
    const sheet = spreadsheet.getActiveSheet();

    // Append the headers.
    const dimensionHeaders =
        (dimensionHeader) => {
    const metricHeaders =
        (metricHeader) => {
    const headers = [...dimensionHeaders, ...metricHeaders];


    // Append the results.
    const rows = => {
      const dimensionValues =
          (dimensionValue) => {
            return dimensionValue.value;
      const metricValues =
          (metricValues) => {
            return metricValues.value;
      return [...dimensionValues, ...metricValues];

    sheet.getRange(2, 1, report.rows.length, headers.length)

    console.log('Report spreadsheet created: %s',
  } catch (e) {
    // TODO (Developer) - Handle exception
    console.log('Failed with error: %s', e.error);

Of course, this option suits people who are comfortable with Google App Script and want to export GA4 data from reports of GA4 explorations. I recommend looking at the second and first options for all other cases.

Final Word

Exporting GA4 data into Google Sheets allows you to merge it with data from other sources. The best option to export GA4 data into Google Sheets and update it with the new data periodically is using the Google Sheets add-on. There is a free option available – GA4 Magic Reports.

Frequently Asked Questions

What’s the best free Google Sheets add-on to export GA4 data?

You can use the GA4 Magic Reports add-on to export GA4 data into Google Sheets.

How to export GA4 data into Google Sheets?

You can manually export GA4 data from GA4 reports or use Google Sheets add-ons such as GA4 Magic Reports. 

Leave a comment

Your email address will not be published. Required fields are marked *