# Setting Up Google Analytics Conversion Pixel Webhook

> The GA integration sends conversion events enabling server-to-server tracking of call conversions alongside your existing web analytics data.

Source: https://callgrid.com/knowledge-base/setting-up-google-analytics-conversion-pixel-webhook
Last updated: 2025-09-24
Topics: Integrations, Conversion Pixel

The Google Analytics integration sends conversion events directly to Google Analytics using the Measurement Protocol, enabling server-to-server tracking of call conversions alongside your existing web analytics data.

## Prerequisites

Before setting up your webhook, you'll need:

- An active Google Analytics property
- API Secret from your GA Measurement Protocol settings
- Your GA Measurement ID (format: G-XXXXXXXXX)

## Setup Process

### 1. Create API Secret in GA

1. Navigate to your Google Analytics property
2. Go to **Admin** > **Data Streams** > select your stream
3. Click **Measurement Protocol** > **Create**
4. Provide a nickname and copy the generated API secret

### 2. Create New Webhook

1. Navigate to **Integrations** → **Webhooks**
2. Click **+ New Webhook**
3. Select **Conversion Pixel** template type
4. Choose **Google Analytics** from the dropdown

### 3. Basic Configuration

![](https://callgrid.com/api/media/file/GATemplate.png)

### 

1. **API Secret**: Enter your GA Measurement Protocol API secret
2. **Measurement ID**: Enter your GA Measurement ID (G-XXXXXXXXX format)
3. **Name**: Give your webhook a name
4. **Event**: Select **Recording Completed**
5. Click **Save Webhook**

### 4. Advanced Options (Optional)

After saving, you can configure additional settings:

![](https://callgrid.com/api/media/file/GAConfig.png)

**Dynamic Variables** The system automatically maps call data to GA event parameters:

- VisitorIpAddress maps to client_id for user identification
- InboundNumber maps to user_id parameter
- CallId maps to transaction_id for event tracking
- CallRevenue maps to value parameter for conversion value
- UTCUnixTime maps to timestamp_micros for accurate timing

**Request Structure** The webhook sends a POST request with JSON payload containing:

- Event name (purchase)
- Client identification parameters
- Transaction details including currency and value
- Timestamp information for accurate attribution

**Filtering**

![](https://callgrid.com/api/media/file/GAFilter.png)

- Add filters using any system tag (InboundState, BuyerName, CampaignName, etc.)
- Use **Equals** conditions to control when events fire
- Combine conditions with **Add Or Rule** or **Add And Rule**

**Testing**

![](https://callgrid.com/api/media/file/GAtesting.png)

- Fill in test values for detected variables
- Click **Run Webhook** to verify the integration
- Check that events appear in your GA real-time reports

## Best Practices

- Ensure your GA property is properly configured before testing
- Use consistent client_id values for accurate user tracking
- Test with small amounts first to verify data accuracy
- Monitor GA reports to confirm events are being received
- Keep your API secret secure and rotate it periodically

## Troubleshooting

- Verify your API Secret is active and correctly entered
- Check that your Measurement ID format is correct (G-XXXXXXXXX)
- Ensure test values include required parameters like client_id
- Allow up to 24-48 hours for data to appear in GA reports
- Use GA's DebugView for real-time event validation

The integration enables you to track call conversions alongside your web analytics data, providing a complete view of customer interactions across all touchpoints.
