Track your Calendly scheduling activity directly in Trackdesk to attribute bookings and leads to your affiliate partners. This integration allows you to capture visitor emails and record lead conversions automatically when a meeting is scheduled.
⚠️ Important: This integration requires you to host a dedicated "Thank You" page on your own website rather than using the default Calendly confirmation page.
1. Before You Start
Ensure you have completed the Quick setup guide in your Trackdesk account.
Locate your Tenant ID and Revenue Origin ID by clicking the Your Trackdesk identifiers button in the upper right corner of the Settings main page.
Prepare a dedicated Thank You page on your website where users will be redirected after booking.
2. Step-by-Step Integration
Step 1: Install the Click Script
To track affiliate clicks, you must first add the Click Script to your website's main landing page.
<!-- Trackdesk tracker begin -->
<script async src="//cdn.trackdesk.com/tracking.js"></script>
<script>
(function(t,d,k){(t[k]=t[k]||[]).push(d);t[d]=t[d]||t[k].f||function(){(t[d].q=t[d].q||[]).push(arguments)}})(window,"trackdesk","TrackdeskObject");
trackdesk("YOUR_TENANT_ID", "click");
</script>
<!-- Trackdesk tracker end -->
Replace YOUR_TENANT_ID with your actual Tenant ID.
Step 2: Configure Calendly Redirection
You must configure Calendly to send users to your custom page and pass the event details through the URL.
Log in to your Calendly admin dashboard.
Navigate to your event settings and set the Redirection to your dedicated "Thank You" page URL.
Enable the option Passing event details to ensure booking data is sent to your page.
Step-by-step guide on how to redirect after a booking in Calendly is saved, is in the Calendly Help Center here, pay particular attention to Step 5.
Step 3: Add Tracking Scripts to your Thank You Page
Add the following scripts to your dedicated "Thank You" page to capture the user's email (External CID) and record the lead.
Capture User Email (External CID)
This script captures the invitee's email from the URL parameters provided by Calendly.
<-- Trackdesk tracker begin -->
<script async src="//cdn.trackdesk.com/tracking.js"></script>
<script>
(function(t,d,k){(t[k]=t[k]||[]).push(d);t[d]=t[d]||t[k].f||function(){(t[d].q=t[d].q||[]).push(arguments);};})(window,"trackdesk","TrackdeskObject");
trackdesk("YOUR_TENANT_ID", "externalCid", {
"externalCid": { "queryParam": "invitee_email" },
"revenueOriginId": "YOUR_REVENUE_ORIGIN_ID"
});
</script>
<-- Trackdesk tracker end -->
Replace YOUR_TENANT_ID and YOUR_REVENUE_ORIGIN_ID with your specific identifiers.
Optional: Track Lead Conversions
To record a "Lead" type conversion simultaneously, add this script to the same page.
<-- Trackdesk tracker begin -->
<script async src="//cdn.trackdesk.com/tracking.js"></script>
<script>
(function(t,d,k){(t[k]=t[k]||[]).push(d);t[d]=t[d]||t[k].f||function(){(t[d].q=t[d].q||[]).push(arguments);};})(window,"trackdesk","TrackdeskObject");
trackdesk("YOUR_TENANT_ID", "conversion", {
"conversionType": "Lead",
"customParams": {
"adv51": { "queryParam": "invitee_email" }
}
});
</script>
<-- Trackdesk tracker end -->
Replace YOUR_TENANT_ID with your actual Tenant ID.
3. Testing the Integration
To verify the setup, follow these steps using a new anonymous/incognito window to ensure a clean test environment:
Generate a Click: Copy a tracking link from an offer's Affiliate Tracking section and paste it into your browser.
Verify Click: Check the Clicks report in Trackdesk to ensure the click was recorded.
Complete Booking: Fill out the Calendly form and wait to be redirected to your "Thank You" page.
Verify Data: Check the External CID column in your click record; it should now display the email used in the booking.
If using the lead script, confirm a Lead conversion appears and is attributed to that click.
