--- title: "Track lead activity and attribution with Facebook Pixel (Schedule Engine)" slug: "track-lead-activity-and-attribution-with-facebook-pixel-schedule-engine" tags: ["Area - Scheduling Pro", "Focus - Service Replacement", "Role - Admin", "Type - Residential"] updated: 2026-10-16T03:17:33Z published: 2026-10-16T03:17:33Z canonical: "help.servicetitan.com/track-lead-activity-and-attribution-with-facebook-pixel-schedule-engine" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.servicetitan.com/llms.txt > Use this file to discover all available pages before exploring further. # Track lead activity and attribution with Facebook Pixel (Schedule Engine) ## Overview If you’re using Facebook, Meta, or Instagram paid ads, you can track their success with Meta's Pixel. Pixel is the code that is inserted in your website that allows Meta to continue to track user activity after they arrive at your website through Facebook or Instagram. > [!NOTE] > **Note:** This feature applies only to the legacy Schedule Engine. ServiceTitan customers are encouraged to transition to [Scheduling Pro](/residential-s-r/docs/scheduling-pro-home), an upgraded tool designed to replace Schedule Engine on your website and provide a seamless booking experience. --- ### #### Who uses this feature - Administrators, managers, and marketing specialists - Primarily benefits Residential Service ## ## ## Things to know - You can install Pixel by following the directions on [Meta Business Suite](https://creators.facebook.com/tools/meta-business-suite/?locale=en_US). - Facebook Click Identifiers (FBCLIDs) are tracking parameters automatically added to outbound links on Facebook. When a user clicks on a link shared on the platform, Facebook generates a unique FBCLID and appends it to the URL. This identifier allows businesses and advertisers to track and analyze traffic coming from Facebook to their websites. - The FBCLIDS can be downloaded from the Schedule Engine Dashboard, reach out to your Customer Success Manager (CSM) if you don’t have access. ## Insert additional code to track Schedule Engine activities After your Pixel is installed and collecting data, you can insert additional code to track scheduling activities. By adding this code, you'll be able to see, for example, if someone clicks on a Facebook ad and then books an appointment through Schedule Engine. This allows Facebook to optimize your advertisements to find and market towards those most likely to book through the scheduler in the future. Here’s the script to add to your website to attribute leads to Facebook and track the 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"); } }); }); ## Want to learn more? - See [Market your scheduler](/residential-s-r/docs/track-lead-attribution-and-scheduling-pro-jobs#market-your-scheduler) ServiceTitan's advanced scheduling add-on that adds smart capacity management, technician skill matching, and zone-based booking rules. **What it does:** Ensures the right technician is booked for the right job at the right time, maximizing daily revenue and reducing travel waste. **Also called:** Advanced scheduling, Smart scheduling **Tags:** Scheduling Pro [See the full glossary →](https://help.servicetitan.com/docs/glossary-overview)