# Integrate Google Analytics (GA4)

This guide will help you integrate Google Analytics 4 (GA4) with Fibr so that Fibr can send events to your Google Analytics 4 (GA4) instance whenever a visitor sees a personalized variation. This lets you view your Fibr data alongside all the other data you track in Google Analytics.

{% embed url="<https://youtu.be/bw121b4rf84?si=HkgNCpqmao6G1_D->" %}

**Step 1:** Click on **Settings** on the Fibr dashboard&#x20;

<figure><img src="/files/3D3xymeHr5wscRJMJxM5" alt="" width="563"><figcaption></figcaption></figure>

**Step 2:** Navigate on **Integrations.**

<figure><img src="/files/XR44sMOHUyQbB60ulS3D" alt="" width="563"><figcaption></figcaption></figure>

**Step 3:** Click on Connect to integrate GA4 to Fibr Dashboard.

<figure><img src="/files/Zm8XumaO0WDufuCOFiyy" alt="" width="563"><figcaption></figcaption></figure>

**Step 4:** Sign up to your Google Account connected to Google Analytics(GA4)  and allow access when prompted.

<figure><img src="/files/3nxZ0AleSTRQ4vW930Ip" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
This method uses **OAuth 2.0 Authorization Code Flow**, a secure industry-standard process. This process is secure, fully compliant with Google’s API policies, and does not expose your credentials to Fibr.
{% endhint %}

**Step 5:** Select the Account, Property and Measurement ID.&#x20;

<figure><img src="/files/uPaZS8RJEcw2XsmtauLp" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="/files/POSu35rGPeSsdfDqe7UA" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="/files/wL7ygRsggy9N2azVv9c6" alt="" width="563"><figcaption></figcaption></figure>

Once connected, Fibr starts sending a `fibr_impression_event`.&#x20;

Whenever a user views an experience, we’ll send an event to GA4 called `fibr_impression_event`. That event will contain the following properties:&#x20;

* `fibr_session_id`: The unique id of a visitor session
* `fibr_user_id`: The unique user ID assigned to the visitor
* `fibr_variation_id`: The unique ID of the variation that the user saw
* `fibr_variation_name`: The name of the variation that the user saw
* `fibr_campaign_group_id`: The unique id of the Personalization or Experiment to which the variation belongs
* `fibr_campaign_group_type`: The campaign type. This can have 2 values:
  * `Personalization`: This specifies that the variation loaded was of a personalization
  * `Experiment`: This specifies that the variation loaded was of an experiment
* `fibr_campaign_group_name`: The name of the Personalization or Experiment to which the variation belongs&#x20;
* `fibr_campaign_name`: The name of the campaign to which the variation belongs
* `fibr_campaign_id`: The unique ID of the campaign to which the variation belongs&#x20;
* `fibr_workflow_id`: The workflow to which the campaign belongs
* `fibr_campaign_group_name`: < Name of personalization or experiment >
* `fibr_client_id`: This is a unique identifier for the client
* `fibr_is_qualified`: This parameter is to determine whether the user qualified for a personalization or not


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.fibr.ai/integrations/integrate-google-analytics-ga4.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
