---
title: How do I set up conversion tracking for Calendly in Google Tag Manager (GTM) for Dental Marketing?
description: The SOP provides a comprehensive guide on effectively setting up conversion tracking for Calendly.
---

[Skip to content](https://grow.dentalmarketing.com/university/how-do-i-set-up-conversion-tracking-for-calendly-in-google-tag-manager#main-content)

English

Show submenu for translations

[Customer portal](https://grow.dentalmarketing.com/tickets-view?hsLang=en)

![DentalMarketing-Logo2-White copy-1.png\]](https://grow.dentalmarketing.com/hs-fs/hubfs/DentalMarketing-Logo2-White%20copy-1.png?height=40&name=DentalMarketing-Logo2-White%20copy-1.png)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [Customer portal](https://grow.dentalmarketing.com/tickets-view)
- [Don't see the SOP you're looking for? Submit your suggestion here.](https://share.hsforms.com/1Fk5_GHeGTTqeJyg4BwR0CAdihez)

[Don't see the SOP you're looking for? Submit your suggestion here.](https://share.hsforms.com/1Fk5_GHeGTTqeJyg4BwR0CAdihez)

 Welcome! What article can we help you find?

- There are no suggestions because the search field is empty.

1. [Internal](https://grow.dentalmarketing.com/university?hsLang=en)
2. [Paid Media SOPs](https://grow.dentalmarketing.com/university/paid-media-sops?hsLang=en)
3. [Google Ads](https://grow.dentalmarketing.com/university/paid-media-sops?hsLang=en#google-ads)

# How do I set up conversion tracking for Calendly in Google Tag Manager (GTM) for Dental Marketing?

## The SOP provides a comprehensive guide on effectively setting up conversion tracking for Calendly.

**Note: I**n order for this tracking to work, the Calendly widget needs to be embedded on the site or LP. If it clicks out to an external link, then this will be ineffective and we will need to track similarly to any other external link (i.e. track the CTA click only).

- **Add Listener Code to GTM** 
    - Open the GTM container and create a new tag called "Calendly - Listener" 
          - Select 'Custom HTML' as the tag type  
                  - Enter this HTML code:
                    
                    ```
                    <script>window.dataLayer = window.dataLayer ||[];window.addEventListener('message',  function(e) {    if (e.data.event && e.data.event.indexOf('calendly') === 0) {      window.dataLayer.push({        'event' : 'calendly',        'calendly_event' : e.data.event.split('.')[1]      });    }  });</script>
                    ```
          - Select 'All Pages' as the trigger
          - Save tag
- **Create Data Layer Variable** 
    - Under variables, scroll down to 'User-Defined Variables' \> Click 'New' to create a new variable named "DLV - calendly\_event"

- - - Select 'Data Layer Variable' as the variable type
          - Under data layer variable name, enter "calendly\_event"
          - Under data layer version, select ' Version 2'
          - Save the variable
- **Create GA4 Event Tag** 
    - Create a new tag called "GA4 - Event - Book Calendar Widget" 
          - Select 'GA4 Event' as the tag type
          - Enter "Book - Calendar Widget" as the event name
          - For the trigger, create a new trigger called "Custom Event - Calendly Event Scheduled" 
                  - Select 'Custom Event' as the trigger type
                  - Enter 'calendly' as the event name
                  - Set this trigger to fire on "DLV - calendly\_event" contains "event\_scheduled"
                  - Save trigger and ensure it's added to the tag
          - Save tag
- **Create Google Ads Conversion Tag (if applicable)** 
    - In Google Ads, create a new conversion called "Google Ads - Book Calendar Widget" 
          - Select 'Book Appointment' as the goal category
          - Select 'Primary' to count as a conversion
          - Select 'Don't use a value'
          - Count 'one' conversion per interaction
          - Set the attribution to 'Last Click' (or whatever attribution model is used for the majority of the other conversions in Google Ads for the account)
          - Do not enable enhanced conversions
          - Click 'Done' to finish creating the conversion

- - In GTM, create a new tag called "Google Ads - Conversion - Book Calendar Widget" 
          - Select 'Google Ads Conversion Tracking' as the tag type
          - Select 'Google Ads - Global Tag' as the set up tag (i.e. Tag Sequencing \> Fire a tag before)
          - Enter the conversion ID and label from Google Ads
          - Set 'Custom Event - Calendly Event Scheduled' as the trigger
          - Save tag
- **Publish GTM Container + Test** 
    - Click 'Submit' to publish all recent GTM container changes
    - Then, go to 'Preview' to test the tag to ensure it fires correctly when a test appointment is scheduled on the Calendly widget

- [Paid Media SOPs](https://grow.dentalmarketing.com/university/paid-media-sops?hsLang=en#main-content)

    - [Account Management & Updates](https://grow.dentalmarketing.com/university/paid-media-sops?hsLang=en#account-management-updates)
    - [Facebook Ads](https://grow.dentalmarketing.com/university/paid-media-sops?hsLang=en#facebook-ads)
    - [Google Ads](https://grow.dentalmarketing.com/university/paid-media-sops?hsLang=en#google-ads)
    - [Microsoft Ads](https://grow.dentalmarketing.com/university/paid-media-sops?hsLang=en#microsoft-ads)
    - [GMB](https://grow.dentalmarketing.com/university/paid-media-sops?hsLang=en#gmb)
    - [SEO](https://grow.dentalmarketing.com/university/paid-media-sops?hsLang=en#seo)
    - [Optmyzr](https://grow.dentalmarketing.com/university/paid-media-sops?hsLang=en#optmyzr)
    - [Google Analytics](https://grow.dentalmarketing.com/university/paid-media-sops?hsLang=en#google-analytics)
    - [Google Tag Manager](https://grow.dentalmarketing.com/university/paid-media-sops?hsLang=en#google-tag-manager)
    - [Google Ads Editor](https://grow.dentalmarketing.com/university/paid-media-sops?hsLang=en#google-ads-editor)
- [Creative Team SOPs](https://grow.dentalmarketing.com/university/creative-team-sops?hsLang=en#main-content)

    - [Mail LP](https://grow.dentalmarketing.com/university/creative-team-sops?hsLang=en#mail-lp)
    - [Lost Client](https://grow.dentalmarketing.com/university/creative-team-sops?hsLang=en#lost-client)
- [Client Success SOPs](https://grow.dentalmarketing.com/university/client-success-sops?hsLang=en#main-content)

    - [Photoshoot](https://grow.dentalmarketing.com/university/client-success-sops?hsLang=en#photoshoot)
    - [Claude Design Landing Pages](https://grow.dentalmarketing.com/university/client-success-sops?hsLang=en#claude-design-landing-pages)
- [Technology SOPs](https://grow.dentalmarketing.com/university/technology-sops?hsLang=en#main-content)

    - [Dashboard](https://grow.dentalmarketing.com/university/technology-sops?hsLang=en#dashboard)
    - [ChatGPT](https://grow.dentalmarketing.com/university/technology-sops?hsLang=en#chatgpt)
    - [HubSpot](https://grow.dentalmarketing.com/university/technology-sops?hsLang=en#hubspot)
    - [Other](https://grow.dentalmarketing.com/university/technology-sops?hsLang=en#other)
- [Company Information SOPs](https://grow.dentalmarketing.com/university/company-information-sops?hsLang=en)
- [Direct Mail SOPs](https://grow.dentalmarketing.com/university/direct-mail-sops?hsLang=en)
- [Organic Social Media SOPs](https://grow.dentalmarketing.com/university/organic-social-media-sops?hsLang=en#main-content)

    - [Content Creation](https://grow.dentalmarketing.com/university/organic-social-media-sops?hsLang=en#content-creation)
    - [OB Process](https://grow.dentalmarketing.com/university/organic-social-media-sops?hsLang=en#ob-process)
- [Compliance Team SOPs](https://grow.dentalmarketing.com/university/compliance-team-sops?hsLang=en#main-content)

    - [WhatConverts](https://grow.dentalmarketing.com/university/compliance-team-sops?hsLang=en#whatconverts)
    - [Tickets](https://grow.dentalmarketing.com/university/compliance-team-sops?hsLang=en#tickets)
    - [Edits](https://grow.dentalmarketing.com/university/compliance-team-sops?hsLang=en#edits)
    - [Websites](https://grow.dentalmarketing.com/university/compliance-team-sops?hsLang=en#websites)
- [Onboarding SOPs](https://grow.dentalmarketing.com/university/onboarding-sops?hsLang=en)
- [Content Creation SOPs](https://grow.dentalmarketing.com/university/content-creation-sops?hsLang=en)
- [Creative Support](https://grow.dentalmarketing.com/university/creative-support?hsLang=en#main-content)

    - [Ticket Creation](https://grow.dentalmarketing.com/university/creative-support?hsLang=en#ticket-creation)

# Dentalmarketing.com

dentalmarketing.com Help Center

Copyright © 2026, Dentalmarketing.com