Data Retention in GA4

Learn about the importance of data retention settings in Google Analytics 4 (GA4) and how it affects your historical data.

What is Data Retention

Understanding GA4 data retention settings is important because it pertains to your historical Google Analytics data.

Data retention enables you to determine a specific timeframe before your historical data gets deleted from Analytics servers.

Unlike in UA, where you could choose the "do not automatically expire" option, GA4 has different retention settings. Now, you are required to select an expiry time for each GA4 profile you create.

✅ If you haven't set the data retention time to the appropriate maximum or have already exceeded the maximum duration, unfortunately your data is no longer available on Google's servers.

✅ It's important to note that the only option to preserve your historical data is to export it to a system like BigQuery or another cloud-based solution.

Data Retention Settings in GA4

Changing data retention settings is pretty simple and easy.

In your GA4 Admin page, go to Data Settings > Data Retention .

GA4 Data Retention Settings
GA4 Data Retention Settings

Here, you can select the length of time you want to retain event data. You have two options for user-level data retention:

  • 2 months
  • 14 months

Do not forget to save after you make changes.

GA4 defaults to a maximum of two months of historical data for both standard and 360 properties.

That is why your past data will only go back two months if you do not change data retention setting. This means that your previously collected data will be lost , and you will not access those data via Google Analytics 4.

How Does GA4 Data Retention Work?

Assume you set the data retention time to two months (as default).

Let's say a user visits your website and returns three months later. If you look at a custom report covering this entire time period, GA4 will consider this user as two separate new users.

You might wonder why this happens. In simpler terms, if a user visits your website and doesn't come back or interact with it within the set data retention period (in this case, two months), their previous data will be deleted. Consequently, when they return later, GA4 recognizes them as a new user.

Reset Data Retention Time

To reset the retention period of a user identifier (user-ID) with each new event from that user, you can enable the " Reset user data on new activity " option. If you disable this option, data associated with the user-ID will be deleted automatically at the end of the data retention period.

Benefits of Longer Data Retention Time

While the ideal data retention length depends on the requirements of your business, keeping it longer can provide you with a broader understanding of your data.

360 users can choose a retention period of up to 50 months for all other event data.

Here are some key benefits of extending the data retention time:

➡️ Conduct in-depth historical analysis,

➡️ Find unexpected trends or user segments that may not have been visible in shorter durations,

➡️ Examine the impact of changes or improvements made over time,

➡️ Explore the entire customer experience, from initial interactions to conversions or recurring purchases.

It is worth mentioning that the data retention setting has no effect on standard GA4 reports. Even if you have not adjusted the data retention time, these reports will still be available.

However, data retention setting has a direct impact on Explorations and funnel reports , which are more detailed and customizable reports within Google Analytics 4.

How can I recover my historical GA4 data?
Unfortunately, once your previous data has been deleted from Google Analytics 4 (GA4), it can't be recovered. To avoid losing significant data in the future, you should frequently back up your data or export it to another storage solution, such as BigQuery.
Table Of Contents