> For the complete documentation index, see [llms.txt](https://docs.roivenue.com/roivenue-resources/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roivenue.com/roivenue-resources/implementation/web-data/google-analytics-4.md).

# Google Analytics 4

Use your Google Analytics 4 data as the web data source in Roivenue. How it differs from Roivenue Measurement, when to use BigQuery or the GA4 API, and how to connect.

If you already track your website with Google Analytics 4 (GA4), Roivenue can use your GA4 data as its web data source. Roivenue takes your sessions, traffic sources, and conversions from GA4, builds customer journeys from them, and attributes conversions and revenue to your channels and campaigns.

This is a good choice when you want to start from the tracking you already have and don't want to add another script to your website.

***

### GA4 compared with Roivenue Measurement

Both are web data sources for the same attribution. The difference is where the data comes from and who decides how it is processed.

| Comparison                                   | Google Analytics 4                                   | Roivenue Measurement                 |
| -------------------------------------------- | ---------------------------------------------------- | ------------------------------------ |
| **Tracking on your website**                 | Your existing GA4 setup                              | Roivenue's own script                |
| **Implementation**                           | Share your GA4 data with Roivenue                    | Implement the script and validate it |
| **How sessions and conversions are defined** | By your GA4 setup and GA4's rules                    | By Roivenue Measurement              |
| **Historical data**                          | Available from GA4, depending on the way you connect | From the day the script runs         |
| **Impression tracking**                      | Not available                                        | Available                            |

{% hint style="info" %}
**Your results depend on your GA4 setup.** Roivenue works with the sessions, sources, and key events GA4 records. Consistent UTM parameters and correctly configured key events are the base for reliable attribution.
{% endhint %}

***

### Two ways to connect GA4

| Comparison                    | BigQuery export (recommended)                                                        | GA4 API connector                                                           |
| ----------------------------- | ------------------------------------------------------------------------------------ | --------------------------------------------------------------------------- |
| **How it works**              | GA4 exports raw event data to Google BigQuery. You share the datasets with Roivenue. | Roivenue downloads sessions with their traffic sources through the GA4 API. |
| **Data detail**               | Session-level detail from raw events                                                 | What the GA4 API returns                                                    |
| **Sampling and thresholding** | No, Roivenue reads the raw data                                                      | Yes, GA4 applies its own sampling and thresholding                          |
| **Historical data**           | Only from the day the export started                                                 | Up to what GA4 keeps for your property                                      |
| **What you need**             | A Google Cloud project with billing details                                          | A Google account with access to the GA4 property                            |
| **Extra options**             | Filtering by hostname, using additional parameters from your export                  | None                                                                        |

***

### When to use BigQuery and when the GA4 API

**Use the BigQuery export** whenever you can. It is the more reliable route and gives Roivenue the most detail. Choose it when:

* You want the most complete data for attribution.
* Your numbers must not depend on GA4 sampling and thresholding.
* You need to filter data by hostname, for example to exclude test orders, or use additional parameters from GA4.
* You can create a Google Cloud project with billing details.

**Use the GA4 API connector** when:

* BigQuery is not an option for you.
* You need history from before your BigQuery export started.
* You want to start quickly and can accept GA4 sampling.

{% hint style="info" %}
**Tip:** You can combine both. The BigQuery export provides data from the day it started, and the GA4 API connector fills in the history before that date. Your CSM sets the dates so the two sources don't overlap.
{% endhint %}

{% hint style="warning" %}
**The BigQuery export has no history.** GA4 fills the export only from the day you switch it on. If you plan to use BigQuery, turn the export on as early as possible.
{% endhint %}

Your CSM agrees the right option with you and guides you through the setup.

***

#### FAQ

<details>

<summary>1. Is GA4 required to use Roivenue?</summary>

No. GA4 is one of the web data sources. You can use Roivenue Measurement or another analytics tool instead. See [Web Data](https://docs.roivenue.com/roivenue-resources/implementation/web-data).

</details>

<details>

<summary>2. Should I use BigQuery or the GA4 API connector?</summary>

BigQuery, whenever you can. It reads raw event data without GA4 sampling and gives Roivenue session-level detail. Use the GA4 API connector when BigQuery is not available, or to fill in history from before your BigQuery export started.

</details>

<details>

<summary>3. I turned on the BigQuery export, but I don't see older data. Why?</summary>

GA4 exports data to BigQuery only from the day the export was switched on. Older data does not exist in BigQuery. You can load it through the GA4 API connector. Ask your CSM to set it up.

</details>

<details>

<summary>4. Why don't Roivenue Last Touch results match GA4?</summary>

Some difference is expected, because GA4 and Roivenue treat direct visits differently. When a user comes back directly after clicking a paid ad, GA4 credits the conversion to the paid channel. Roivenue keeps the direct visit as it happened. That is why GA4 usually shows more for paid channels and less for direct.

</details>

<details>

<summary>5. Why does the number of visits in Roivenue differ from sessions in GA4?</summary>

Check that you compare the same metric. **Sessions** in GA4 are not the same as **Engaged sessions**. Also check the reporting identity set in GA4 and whether the GA4 report is sampled. If the difference remains, contact your CSM.

</details>

<details>

<summary>6. Should GA4 and BigQuery show the same revenue?</summary>

Yes. The BigQuery export contains the same events as GA4, so revenue and conversions should match. If they don't, contact your CSM. We check the data in your dataset with you.

</details>

<details>

<summary>7. We changed our key event in GA4. What do we need to do?</summary>

Contact your CSM before or right after the change. Your advertising platform connectors map platform conversions to GA4 key events. When the key event changes, this mapping must change too, otherwise conversions are paired incorrectly.

</details>

<details>

<summary>8. We want to switch to a different GA4 property. What happens to our data?</summary>

Contact your CSM. They connect the new property and set the dates so data from the old and the new property doesn't overlap. Disabling a connector only stops future downloads. It does not delete data that is already in Roivenue.

</details>

<details>

<summary>9. Can Roivenue exclude test orders or another website tracked in the same GA4 property?</summary>

Yes, with the BigQuery export. Roivenue can filter the data by hostname, for example to keep only your production website. Ask your CSM to set it up.

</details>

<details>

<summary>10. Can Roivenue use a custom parameter from GA4?</summary>

Yes, if the parameter is part of your BigQuery export. If it is not in the export, it first has to be added on the GA4 side. Contact your CSM with the parameter you need.

</details>
