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
- Navigate to your Google Analytics property
- Go to Admin > Data Streams > select your stream
- Click Measurement Protocol > Create
- Provide a nickname and copy the generated API secret
2. Create New Webhook
- Navigate to Integrations → Webhooks
- Click + New Webhook
- Select Conversion Pixel template type
- Choose Google Analytics from the dropdown
3. Basic Configuration

- API Secret: Enter your GA Measurement Protocol API secret
- Measurement ID: Enter your GA Measurement ID (G-XXXXXXXXX format)
- Name: Give your webhook a name
- Event: Select Recording Completed
- Click Save Webhook
4. Advanced Options (Optional)
After saving, you can configure additional settings:

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

- 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

- 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.
Related Articles
Continue exploring with these related insights
CallGrid Bid API - Advanced Integration Guide
The CallGrid Bid API allows custom platforms and developers to send real-time bid requests to CallGrid campaigns.
Read ArticlePosting Bids from CallGrid to CallGrid using RTB
This guide will walk you through setting up your CallGrid campaign to send bid requests to another CallGrid customer.
Read ArticleCall Recording Best Practices
Call recording laws vary by state. Some states require only your consent, while others require everyone's consent (all-party consent).
Read ArticleGetting Started with CallGrid
Welcome to CallGrid! This guide will walk you through your first steps to get your account up and running quickly.
Read ArticleAuthor
CallGrid Team
Article Info
Categories
Topics