Calendly is a widely used tool for scheduling events. Whether we embed Calendly forms on our website or share direct Calendly links, it’s crucial to track customer interactions and gather data for our marketing funnel. In today’s tutorial, I’ll provide a comprehensive guide on tracking various types (embedded and external) of Calendly forms. We’ll cover the way to collect user-inputted data during the form submission process, ensuring you have a complete understanding of your users’ activities.
Calendly Form GTM DataLayer Code
<script>
/**
* Author: Md Hasanuzzamna
* Linkedin: https://linkedin.com/in/md-h
* Youtube: https://youtube.com/@leomeasure
* Email: info@leomeasure.com
*/
window.addEventListener('message', function(event) {
if(event.origin !== 'https://calendly.com') return;
window.dataLayer = window.dataLayer || [];
dataLayer.push(event.data);
});
</script>