CallGrid

Setting Up Google Tag Manager Server-Side Conversion Webhook

Send CallGrid call conversions to your server-side Google Tag Manager container: create the template webhook, pick the event, attach it to a campaign and test.

Updated 4 min read

The Google Tag Manager template sends a conversion from CallGrid to your server-side Google Tag Manager container when a call reaches the event you choose. This page covers creating the webhook, attaching it to a campaign, filtering and testing it.

Before you start#

  • A server-side Google Tag Manager container that is deployed and running, and the details the template asks for from that container and your Google Analytics property.
  • Pick one way to send each conversion to Google. CallGrid can also send conversions through the native Google Ads integration (Integrations > Platforms) or the Google Analytics template. Use one method per conversion action, not two, or conversions double count.

Create the webhook#

  1. Go to Integrations > Webhooks and click New Webhook.
  2. Enter a Name, for example GTM Conversion - Converted.
  3. Choose the Event. For conversions this is usually Call Converted or Call Billable (see the table below).
  4. Turn on Template Mode, choose the Conversion Pixel group and pick Google Tag Manager.
  5. Fill in the three template fields: Server Region (us, eu or asia1), API Secret (your server container's API secret) and Measurement ID (format G-XXXXXXXXXX). The field labels and hints in the template tell you what each one expects.
  6. Leave Timeout at the default of 5 seconds unless your container responds slowly.
  7. Click Save Webhook.
  8. Attach it: open each campaign that should send conversions, go to the General tab, find Webhooks, click + Add Webhook, pick this webhook and save the campaign. A webhook does not fire until it is attached to a campaign.
New Webhook with event Call Converted, Template Mode on, Google Tag Manager selected, and the Server Region, API Secret and Measurement ID fields

Name (1), Event (2), Template Mode (3), Google Tag Manager (4), then the template fields (5).

Campaign General tab, Webhooks section: + Add Webhook attaches a webhook to the campaign; attached webhooks show as chips

Attach the webhook on each campaign: General tab (1), + Add Webhook (2). Attached webhooks show as chips (3).

Choosing the event#

Optimize for

Event

Any answered call

Call Answered

Calls that met the buyer's billable rule

Call Billable

Sales or confirmed outcomes

Call Converted

All 13 events: Call Inbound, Call Initiated, Call Ended, Call Error, Call Answered, Call Billable, Call Paid, Call Converted, Insights Completed, Transcription Completed, Recording Completed, Bid Received and Postback Received.

Call Billable fires on the transition into billable, including when a call becomes billable later through a postback, a bulk edit or the API. Call Converted fires only when a postback marks the call converted. A converted change made by bulk edit or the API does not fire it.

Filter which calls send a conversion#

Attaching the webhook only to the campaigns that need it is the simplest scope. To narrow it further, open the webhook's Tag Routing section and click Add Filter. Build conditions on call tags (for example state, buyer or campaign) and combine them in AND or OR groups.

Test it#

Google Tag Manager webhook testing: test variables, Run Webhook and Tag Routing Add Filter highlighted

Fill in test values for the tags the template sends (1) and click Run Webhook (2). Add Filter under Tag Routing (3) limits which calls fire the event.

  1. Save the webhook first. Testing is not available until it is saved.
  2. Open the webhook and go to Webhook Testing.
  3. Enter test values for the tags the request uses and click Run Webhook.
  4. Check the status code and response, then confirm the event arrived using your server container's preview mode.
  5. Attach the webhook to a test campaign, place a call that reaches the chosen event and confirm the conversion shows up.

Behavior to know#

  • CallGrid does not retry a failed webhook. If the request times out or returns an error, that conversion is not sent again.
  • CallGrid does not sign webhooks with HMAC. Authentication is the secret or key the request carries in a query parameter or header.
  • Tag names in requests are case sensitive and use the [[tag:Name]] macro syntax if you edit the request.

Troubleshooting#

Symptom

Check

Webhook never fires

Attached on the campaign General tab under Webhooks; calls actually reach the chosen event

Nothing arrives in the container

The values in the template fields match your container and property; the container is running and reachable

Call Converted never fires

A postback is marking calls converted; bulk edits and API changes do not fire Call Converted

Conversions counted twice

Only one method (native Google Ads, GTM or Google Analytics) sends each conversion action

Intermittent missing conversions

Timeouts or errors; CallGrid does not retry

Empty values in the request

Tag name casing, or the tag is not populated at that event

Do it with AI#

Ask Claude or ChatGPT. Try: "List my webhooks and tell me which event each one fires on." Claude and ChatGPT need the CallGrid connector turned on (setup guides for Claude and ChatGPT).

The connector is read only. It looks things up and reads your data. You make the changes in CallGrid.

Stuck on a step? Ask Griddy.