GA4: importing historical data
This page explains how to reimport into Eulerian a history of aggregated data from Google Analytics 4 for certain types of report. The rules common to all reimports are in General information.
The reimport runs through the Google Analytics connector. The data retrieved depends on the metrics and dimensions available through the GA4 API.
Setting up the reimport
Step 1 · Enable the Google Analytics connector
Enable the Google Analytics data reimport connector.
Step 2 · Connect the GA4 property
Connect the GA4 property to reimport into Eulerian, using its propertyId.
Step 3 · Set the synchronisation period
Once the connector is created, start a synchronisation process over the dates you want.
To guarantee suitable performance and access for everyone, the time range you can synchronise in each run is limited.
Step 4 · Let the connector synchronise the previous day
Once enabled, the connector always tries to synchronise the previous day, until it is fully disabled.
Step 5 · Bear in mind that deletion is impossible
Data that has already been synchronised cannot be deleted.
Data synchronised
Overall site-level data
The following metrics are retrieved:
| Eulerian metric | GA4 metric |
|---|---|
| visits | sessions |
| page views | eventCount |
| unique visitors | active1DayUsers |
| number of sales | transactions |
| revenue | totalRevenue |
Page-level data
The following metrics are retrieved:
| Eulerian metric | GA4 metric |
|---|---|
| page views | eventCount |
| visits | sessions |
Overall data by free traffic source
The following sources are covered:
- direct access, worked out as what remains once free and paid traffic are accounted for;
- free social networks;
- natural search / search engine.
The following metrics are retrieved:
| Eulerian metric | GA4 metric |
|---|---|
| visits | sessions |
| page views | eventCount |
| unique visitors | active1DayUsers |
| number of sales | transactions |
| revenue | totalRevenue |
Keyword-level data for the Natural search source is not available.
Data at paid acquisition source level
The following rules are used to identify paid sources:
| Source | Rule |
|---|---|
| sponsored links | ga:medium is CPC and ga:source is bing or google |
| display | ga:medium is CPC and ga:source is not bing or google |
| mailing | ga:medium is /^(email|mailing|newsletter|crm|emailing|mail|infolettre)$/i |
| affiliation | ga:medium is /^(affil |
The following metrics are retrieved:
| Eulerian metric | GA4 metric |
|---|---|
| visits | sessions |
| page views | eventCount |
| unique visitors | active1DayUsers |
| number of sales | transactions |
| revenue | totalRevenue |
One campaign is created per media outlet. The same campaign name can therefore be duplicated across outlets. In that case, simply create a higher-level grouping to get the aggregates back.
Overall geographic data
Data is retrieved at the following level:
| Dimension | GA4 field |
|---|---|
| country | countryId |
The following metrics are retrieved:
| Eulerian metric | GA4 metric |
|---|---|
| visits | sessions |
| page views | eventCount |
| unique visitors | active1DayUsers |
| number of sales | transactions |
| revenue | totalRevenue |
Data discrepancies
There may be discrepancies between the data reimported through the API and the data visible in the Google Analytics 4 interface, since sampling cannot be controlled through the API.
These discrepancies cannot be corrected on Eulerian’s side: they depend on the features available in the GA4 API.
Points to watch
- When you connect the connector, Google returns a security error. You can ignore it.
- Once the history import is done, the automatic UTM tracking connector lets you keep using your current taxonomy, before you move to Eulerian’s native ad measurement.