> ## Documentation Index
> Fetch the complete documentation index at: https://dialnexa.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Analytics Voice AI Integration Guide

> Connect DialNexa voice AI with Google Analytics 4 to measure qualified call outcomes without sending personal or sensitive caller data.

The **Google Analytics 4 voice AI integration** helps marketing teams measure what happens after a website visitor becomes a phone lead. Send a small set of non-personal events for confirmed outcomes such as a qualified call or booked appointment.

<Warning>
  A catalog page describes a possible workflow. It does not confirm that a native Google Analytics connector is enabled in your workspace. Check **Integrations** in the DialNexa dashboard first. If Google Analytics is not listed, use a custom function, agent webhook, or external automation service.
</Warning>

## When to use the Google Analytics 4 voice AI integration

Use Google Analytics when:

* Marketing needs aggregate reporting for qualified calls, bookings, or completed applications.
* A permitted client or session identifier can connect the digital visit and later outcome.
* Event names and parameters have a documented measurement plan.
* No phone number, email, transcript, name, or sensitive call content is sent.

<Tip>
  **Best first workflow:** Send one `qualified_call` event only after the qualification rule is met, using the acquisition identifiers and non-personal campaign dimensions already stored with the lead.
</Tip>

## Before you begin

Prepare the following:

* A published DialNexa agent that has already passed a basic test call.
* Access to the DialNexa workspace **Integrations** page.
* A Google Analytics account with permission to read or update the required records.
* One test record that does not affect a live customer.
* A list of actions that can run automatically and actions that require human review.

## Choose how to connect Google Analytics

| Connection method                                   | Use it when                                                        | Important limit                                                             |
| --------------------------------------------------- | ------------------------------------------------------------------ | --------------------------------------------------------------------------- |
| Workspace connector                                 | Google Analytics appears in your DialNexa **Integrations** page    | Available actions and authentication depend on your workspace               |
| [Custom function](/docs/agent-settings/custom-functions) | The agent needs Google Analytics data during the live conversation | Keep the request fast and return only the fields the agent needs            |
| [Agent webhook](/docs/api-access/agent-webhooks)         | Google Analytics should receive a result after the call            | Your endpoint must authenticate, retry safely, and prevent duplicate writes |
| External automation                                 | The workflow spans Google Analytics and several other systems      | Monitor the external workflow separately from the DialNexa call             |

## Build the Google Analytics voice AI workflow

1. Define the exact event that starts the action, such as a confirmed booking, qualified lead, support escalation, or completed call.
2. Choose the connection method from the table above.
3. Map caller identity, the DialNexa call ID, the verified outcome, and the destination record ID.
4. Add a condition so uncertain, sensitive, destructive, or high-value changes go to a human-owned queue.
5. Store the destination record URL or ID with the call result so your team can trace the handoff.
6. Test success, no-match, duplicate, permission-error, and timeout cases before using live traffic.

## Data to map between DialNexa and Google Analytics

* DialNexa call ID, call direction, status, and final outcome
* Caller name, phone number, email, and matched customer or account ID
* Structured fields collected during the call, including consent where required
* Short operational summary, requested next step, owner, and due date
* Transcript or recording link only when your privacy policy allows it
* Google Analytics record ID, record URL, update timestamp, and integration result

## High-value Google Analytics 4 voice AI measurements

| Confirmed outcome                          | GA4 event                     | Data control                                     |
| ------------------------------------------ | ----------------------------- | ------------------------------------------------ |
| Lead meets qualification rules             | `qualified_call`              | Use non-personal campaign and product dimensions |
| Caller books an appointment                | `appointment_booked`          | Send the event once using duplicate protection   |
| Application or order is completed by phone | A documented conversion event | Exclude financial and sensitive details          |
| Call has no measurable business outcome    | No event                      | Do not inflate reporting with every call         |

## Verify the Google Analytics integration

Run a test call and confirm that:

1. The GA4 property, event name, event time, and measurement identifiers are correct.
2. No name, phone number, email, transcript, recording, or sensitive call content is sent.
3. The documented qualification or conversion rule is applied consistently.
4. The DialNexa call ID prevents duplicate event sends without becoming a reportable personal dimension.
5. Test events appear in the expected reports before production traffic is enabled.

## Troubleshoot Google Analytics integration issues

| Problem                                        | What to check                                                                                                                                     |
| ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| Google Analytics is not shown in the dashboard | Use a custom function, webhook, or external automation service, or [request the integration](/docs/dashboard-integrations/requesting-new-integrations) |
| Authentication fails                           | Reconnect the account and verify scopes, workspace ownership, and token expiry                                                                    |
| Event does not appear                          | Check GA4 property, measurement credentials, event name, timestamps, identifiers, and DebugView                                                   |
| Duplicate events appear                        | Make the completed-call event idempotent and review all client and server send paths                                                              |
| The live call becomes slow                     | Move nonessential writes to a post-call webhook and keep live lookups small                                                                       |

## Related pages

* [DialNexa integrations overview](/docs/integrations/overview)
* [Connect dashboard integrations](/docs/dashboard-integrations/connecting-integrations)
* [Use integrations in agents](/docs/dashboard-integrations/using-integrations-in-agents)
* [Use integrations in workflows](/docs/dashboard-integrations/using-integrations-in-workflows)
* [Integration workflow tutorials](/docs/tutorials/integration-workflows)
