Google Analytics 4
  • 6 Minutes to read
  • Dark

Google Analytics 4

  • Dark

Article Summary

Google Analytics 4 (GA4) is a web analytics platform that provides businesses with advanced tracking and measurement capabilities, focusing on a user-centric data model that enables tracking of user interactions across multiple devices and platforms, allowing for a more comprehensive understanding of customer behavior and journey. GA4 also incorporates machine learning features to provide actionable insights and predictions for businesses to optimize their marketing strategies.

For all available GA4 metrics and dimensions, please see Google's official documentation.

How to Create a New Google Analytics 4 Data Source

  1. Under the Sources tab, click on the Create Source button and select the connector from the list.
  2. From the drop-down menu, choose your account.
    Didn't find your account?

    Click on Add new Account at the bottom of the drop-down and follow the on-screen prompts. You can also go to the Authorizers tab and click on Add New Service.

  3. Name your data source and select your metrics and attributes.
  4. [Optional] Configure your advanced settings (for more information please refer to the section on Advanced Settings). If you are unsure about how to proceed, we recommend skipping this step.
  5. Configure your snapshotting preferences. Choose your sync frequency or the exact synchronization time under Show advanced settings.

    If you need to load historical data, please refer to the Manual Data Load page.

  6. Preview your data by clicking on the Test Data button in the top right corner. You can adjust the date range for a more specific time frame.
  7. Click on Save and congratulations, your new data source is ready!

Connector Overview

Metrics and Dimensions Combinations

Not all GA4 metrics and dimensions combinations will work, even though they might be available to select. To check which metrics and dimensions will work together, please see the official GA4 website.

Multi-account extraction

The Dataddo Google Analytics 4 connector supports automatic extraction from all available Google Analytics 4 accounts. This feature is particularly useful when you have multiple accounts and need to automatically extract the same metrics and dimensions across them (e.g. agencies).

How to extract multiple accounts?

To enable multi-account extraction, contact us.


If you are planning to use our multi-account extraction feature to extract data from multiple Google Analytics 4 accounts, you must have the Include property ID option turned ON, to be able to identify which records belong to each account when doing your data analysis.


Historical Data

The GA4 API allows you to extract and load up to 1 year of historical data.

Fresh Data Unavailable

Google takes between 24 – 72 hours to process data which is why it’s possible to get data only from 3 days ago or older.

For Google Analytics, YouTube, or Google My Business, change your date range expression to 3d3 or older.
For Google Search Console, change your date range expression to 4d4 or older.

You may get fresh data from Google Analytics 4 but keep in mind that it might not be the finalized version.

What If I Need Fresh Data?
We can retrieve your data from the last 3 days from Google Analytics 4 but keep in mind that this data will most likely change.

See how you can extract fresh data to your data-warehouse or a dashboarding tool.

Get Fresh GA4 Data to a Data Warehouse

First, make sure that deduplication is possible in your case. Using the Upsert snapshot keeping policy in combination with the 3d1 or 3d0 date range expression, you can extract last 3 days worth of data every day.

  1. Click on the three dots next to your source and choose Edit.
  2. In the Snapshotting tab, select Upsert.
  3. In the Advanced tab, change the date range to 3d1 or 3d0.
  4. Save your configuration.
    Google Analytics 4 - fresh data to DWH date range.png

Upsert (limited to 4 unique columns) will be directly replacing the data with the most recent values. In case Upsert is not possible (for example, you need more than 4 unique columns), you can deduplicate in your own storage using dataddo_extraction_timestamp.

Get Fresh GA4 Data to a Dashboarding Tool

Create two sources, one for historical data, and the second for fresh data.

The source with historical data should add data from 4 days ago to your table every day. We can achieve that with the following configuration:

  • Date range expression: 4d4 or older
  • Snapshot keeping policy: Append
    Google Analytics 4 - fresh data to dashboard date range.png

The source with fresh data should be a running window of the last three days. As a result, it will always contain the last 3 days' fresh data without duplicates. We can achieve that with the following configuration:

  • Date range expression: 3d1 or 3d0
  • Snapshot keeping policy: Replace
    Google Analytics 4 - fresh data to dashboard snapshotting.png

As both of these sources have the same schema, they can be added into the same flow, not affecting your billing.


Data Preview Unavailable

If there is no data preview after clicking on Test Data, there might be a problem with your source configuration. The most common causes are:

  • Date range: Try a smaller date range. You can load the rest of your data afterward through our manual data load function.
  • Invalid metrics, attributes, or breakdowns: You may not have any data for the selected metrics, attributes, or breakdowns.
  • Incompatible combination of metrics, attributes, or breakdowns: The combination you have selected cannot be queried together. Please refer to the service's documentation to view a full list of metrics that can be included in the same source.


Too many dimensions when configuring the source were selected, please replace with a source with less dimensions or make sure these dimensions can work together.

Example: We want to get the total daily number of sessions.

Original table

DateNumber of Sessions
Jan 1 20222

Pagepath dimension (what pages are visited by every user) is added:

DateNumber of SessionsPage
Jan 1 20222Page 1
Jan 1 20221Page 2

Total number of sessions: 3

Where is the problem?

One user visited both Page 1 and Page 2 during the same session.
The same session appeared twice in combination with each page, aka it resulted in a duplicate.

Missing data

Missing data occurs when the total values was broken down into subcategories and the sum of the two subcategories differs. When working with your data, you need to keep this difference in mind.

This error is caused by Google being unable to retrieve the subcategory information on all of its users and this value is left blank. These blank values are then disregarded instead of being put into their own category.

This error happens most often with Gender or Country dimensions so keep the possibility of this error in mind when working with them.

Example: We want to get how many men and how many women visited my website last week.

Original table

Total Users500

Gender dimension is added:

Total Female Users200
Total Male Users200

What about the rest 100 users?

This error occured because Google was not able to retrieve information on 100 users’ gender and the undetermined values were not put into a separate row.

No Data Causing Source to Break

If you have no data in your source, it may lead to a broken source and further issues with synchronization. When checking the Allow Empty box in the source's settings, you will be able to send "empty" data.
Google Analytics - allow empty

Need assistance?

Feel free to contact us and we will help you with the setup. To speed the process of resolving your issue, make sure you provide us with sufficient information.

Was this article helpful?