4 Ways to Export Google Analytics Data History

According to Google data retention policy, standard GA4 properties keep 14 months of history. In real life, I have seen that period extended to 24 months.

You are probably here because you opened Google Analytics reports and realized that that your web traffic history beyond 24 is gone.

I am here to explain four ways to export your Google Analytics history for future use. I will sort them in the order of increased effort and technical difficulty, from the easiest to the most challenging.

1. Google Analytics Interface Manual Export

If you are using Google Analytics website to look at your data, you can export the history from the report page.

  1. Go to your favorite report. You will be able to export the table on the bottom, not the data in the charts.
  2. In most cases, it makes sense to add a time breakdown variable, like month or day.
  3. Choose your extended date range. 
  4. Export the data into CSV file.
Google Analytics UI screenshot that shows how to complete report export steps.

2. Looker Studio Manual Export

Just like with the Google Analytics website, you can create reports containing historical data and export them to CSV from Looker Studio.

  1. Log onto Looker Studio.
  2. Click on Create in the upper left corner, choose Data source.
  3. Choose Google Analytics, then your Account and Property. Click Connect.
  4. You are on the Data set connection screen. It’s a good place to rename your Data set, Edit connection, Add a Field or Parameter
  5. Click on Create Report.
  6.  A blank report will appear with a sample table. Name your report and add a Date range control. Choose your date range.
Looker Studio screenshot - add a date range control
  1. Highlight or insert a table and drag your preferred metrics and dimensions from the Data tab to create a report. Don’t forget about a date dimension.
  2. Click on the three dots in the header of the table to export data.
Export data from a table in Looker Studio

3. Google Analytics Data API Export

Google Analytics Data API is a great way to produce large Google Analytics tables with various levels of summarization covering multiple periods. It is also used to backfill GA4 BigQuery export, which is #4 on my list of Google Analytics exports. 

I wrote a detailed article about backfilling GA4 data in BigQuery.

However, interfacing with the API it requires more technical knowledge than either UI or Looker Studio export.

This is a video tutorial that explains how to use the GA4 python API.

4. BigQuery Data Export

BigQuery export of GA4 data is different from the other three methods in two ways:

  • It saves all event-level raw data, not just summaries.
  • You can’t go back in time. BigQuery export works “from the date it was enabled on.”  So, start exporting today, and in two years you will have most detailed historical GA4 data available. 

To set up the export, you will need a Google Cloud Platform project with billing turned on. It’s most likely that you won’t incur charges for the simple export and storage of the data. Refer to my article describing GA4 BigQuery cost for more information.

Follow Google’s instructions on how to enable the export in your Google Analytics IU.

BigQuery GA4 data can be tricky, so read my advantages and disadvantages guide before building your own historical reports from BigQuery GA4 export. Best of luck!

by Tanya Zyabkina

Tanya Zyabkina has over 15 years of experience leading analytics functions for multiple Fortune 500 companies in the retail, telecom, and higher education. She works as the Director of Marketing Performance Analytics for the The Ohio State University. Go Bucks!