Skip to main content
Deploy CallDesk tracking scripts through Google Tag Manager. Add conversion tracking without modifying your website code.

What it does

  • No-code deployment - Add tracking without developers
  • Version control - Test before publishing
  • Multiple tags - Manage all tracking in one place
  • Trigger control - Fire tags based on conditions

Use cases

Form submission tracking

Track when web forms trigger CallDesk callbacks:
  1. User submits form
  2. GTM fires CallDesk tag
  3. Callback is initiated
  4. Conversion is tracked

Booking page tracking

Track appointment bookings on embedded pages:
  1. User books appointment
  2. GTM captures booking data
  3. Events sent to analytics
  4. Attribution preserved

Setup

1

Get your CallDesk tracking code

Find it in Settings → Integrations → Tracking
2

Create new tag in GTM

Go to GTM → Tags → New
3

Choose Custom HTML tag

Select “Custom HTML” as the tag type
4

Paste tracking code

Add your CallDesk tracking snippet
5

Set trigger

Choose “All Pages” or specific pages
6

Publish changes

Submit and publish your GTM container

Tracking code

Add this to your GTM Custom HTML tag:
<script>
  (function(c,a,l,d,e,s,k){
    c['CallDeskObject']=e;c[e]=c[e]||function(){
    (c[e].q=c[e].q||[]).push(arguments)};c[e].l=1*new Date();
    s=a.createElement(l);k=a.getElementsByTagName(l)[0];
    s.async=1;s.src=d;k.parentNode.insertBefore(s,k)
  })(window,document,'script','https://cdn.247calldesk.com/track.js','cdk');

  cdk('init', 'YOUR_TRACKING_ID');
</script>
Replace YOUR_TRACKING_ID with your actual ID from CallDesk settings.

Data Layer events

CallDesk pushes events to the GTM Data Layer:
dataLayer.push({
  'event': 'calldesk_appointment_booked',
  'calldesk_service': 'AC Repair',
  'calldesk_value': 250,
  'calldesk_customer_id': 'cust_abc123'
});
Use these to trigger other tags (GA4, Facebook Pixel, etc.).
TagTrigger
CallDesk BaseAll Pages
Conversion TrackingForm Submission
Booking TrackingBooking Confirmation Page

Testing

Before publishing:
  1. Use GTM Preview mode
  2. Visit your site
  3. Verify CallDesk tag fires
  4. Check for console errors
  5. Publish when confirmed

Requirements

  • Google Tag Manager account
  • GTM container on your website
  • CallDesk tracking ID
  • No additional cost

Troubleshooting

Check your trigger conditions. Use GTM Preview to debug.
Verify the tracking ID is correct and the script loads without errors.
Make sure the CallDesk tag fires before other tags that depend on its events.

Get Tracking Code

Set up the integration now