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

# Google Analytics

The Google Analytics integration block allows you to track Google Analytics events at specific
moments in your bot flow. This integration supports Google Analytics 4 (GA4) with comprehensive
event tracking and conversion measurement capabilities.

When your flow contains a Google Analytics block, it automatically:

* Initializes Google Analytics (GA4) on page load with your tracking ID
* Tracks a "PageView" event when the page loads
* Executes custom event tracking when the block is reached in your flow

## Credentials Setup

Before using the Google Analytics block, you must configure your GA4 credentials:

* **Measurement ID (Required)**: Your GA4 Measurement ID, format: `G-XXXXXXXXXX`. Supports variable
  substitution for dynamic tracking IDs

  <Info>
    Can be found in your Google Analytics dashboard under Admin > Property Settings > Data Streams
  </Info>

* **Event Action (Required)**: The name of the event you want to track. e.g: `conversion`,
  `lead_generated`, `form_completed`. Supports variable substitution for dynamic event names

## Advanced

* **Event Category**: Categorizes your events for better organization e.g: `Bot`, `Form`,
  `Engagement`
* **Event Label**: Additional context for your events e.g: Campaign names, specific form names, or
  user segments
* **Event Value**: Numeric value associated with the event commonly used for conversion values or
  scoring
* **Send To**: sends events to specific Google Ads accounts for conversion tracking. Format:
  `AW-CONVERSION_ID` for Google Ads

### Debug Mode

Enable debug mode to see detailed console logs of GA4 events. Verify event parameters and values are
being sent correctly

<Note>
  Install the [Google Analytics
  Debugger](https://chrome.google.com/webstore/detail/google-analytics-debugger/jnkmfdileelhofjcijamephohjechhna)
  Chrome extension
</Note>

For Google Ads conversion tracking specifically, ensure your conversion actions are properly
configured and that you're using the correct conversion ID format.
