# GA4 - Backend Tracking

Send Guideflow demo events directly to your GA4 account via Guideflow's backend integration. This method is not impacted by ad blockers and ensures critical events are always captured accurately.

(e.g. track when a prospect completes your demo or submits a lead form, without any data loss from ad blockers)

{% @guideflow/guideflow-embed requestedUrl="<https://app.guideflow.com/embed/5pv2nzuwkn>" %}

### How to connect:

* Navigate to Integrations in your Guideflow dashboard.
* Under Analytics, select Google Analytics and click Connect.
* In Google Analytics, go to Settings → Property Settings → Data Streams, then open your web stream to copy the Measurement ID.
* Paste the Measurement ID into Guideflow's Google Analytics integration settings.
* In Google Analytics, go to Measurement Protocol API Secrets and copy the API Secret.
* Paste the API Secret into the integration settings.
* Select the events you want to track (see table below).
* Toggle on Install for all Guideflows to apply the integration across your entire workspace, or configure it for specific Guideflows.

### Events Tracked

| Event                 | Description                                                        |
| --------------------- | ------------------------------------------------------------------ |
| First Interaction     | The first time a user interacts with the Guideflow                 |
| Create New Lead       | Triggered when a new lead is created                               |
| Step Viewed           | Triggered after a step is visited                                  |
| External Link Clicked | Triggered when a user clicks a link leading to an external website |
| Completed             | Triggered when a user completes the Guideflow                      |
| Session Ended         | Triggered when a user closes the Guideflow tab                     |

### **Testing your Integration:**

* Interact with a Guideflow after setup.
* In Google Analytics, go to Reports → Realtime to verify that Guideflow events are appearing.

{% hint style="info" %}
Google Analytics can take 24 to 48 hours to fully process data. Use the Realtime report to verify the integration is working immediately after setup.
{% endhint %}
