Lead attribution with Facebook Pixel / FBCLIDS


The FBCLIDS can be downloaded from the Schedule Engine Dashboard


Facebook Click ID - FBCLIDs or Facebook Click Identifiers are a tracking parameter that is automatically added to outbound links on Facebook. So if a Facebook user clicks on a link to your website, a unique FBCLID is created and appended to the URL.  


Facebook Pixel

Below is the script to add to your website to attribute leads to Facebook and track the whole booking process. 

You only need to include the events you want to track.


 document.addEventListener('DOMContentLoaded', function() {

        ScheduleEngine.addEventListener("BookingStarted", function(){  

            if (typeof(fbq) == 'function'){

                fbq('trackCustom', "BookingStarted");

            }

        });

        ScheduleEngine.addEventListener("BookingIssueStarted", function(){

            if (typeof(fbq) == 'function'){

                fbq('trackCustom', "BookingIssueStarted");

            }

        });

        ScheduleEngine.addEventListener("BookingIssueCompleted", function(){

            if (typeof(fbq) == 'function'){

                fbq('trackCustom', "BookingIssueCompleted");

            }

        });

        ScheduleEngine.addEventListener("BookingDetailsMedia", function(){

            if (typeof(fbq) == 'function'){

                fbq('trackCustom', "BookingDetailsMedia");

            }

        });

        ScheduleEngine.addEventListener("BookingDetailsMore", function(){

            if (typeof(fbq) == 'function'){

                fbq('trackCustom', "BookingDetailsMore");

            }

        });

        ScheduleEngine.addEventListener("BookingCustomerQuestion", function(){

            if (typeof(fbq) == 'function'){

                fbq('trackCustom', "BookingCustomerQuestion");

            }

        });

        ScheduleEngine.addEventListener("BookingCustomer", function(){

            if (typeof(fbq) == 'function'){

                fbq('trackCustom', "BookingCustomer");

            }

        });

        ScheduleEngine.addEventListener("BookingSchedule", function(){

            if (typeof(fbq) == 'function'){

                fbq('trackCustom', "BookingSchedule");

            }

        });

        ScheduleEngine.addEventListener("BookingBooked", function(){

            if (typeof(fbq) == 'function'){

                fbq('trackCustom', "BookingBooked");

            }

        });

    });