You or your web team can encode various parameters to pass through different data points into Google Analytics and Schedule Engine Dashboard for lead attribution.  For ST clients, we can insert a campaign for revenue generation reporting in ST.   


ServiceTitan Campaign Tracking 


Sample direct link to Maintenance with campaign coding

https://www.insertdomain.com/?se_campaign=insertcampaignname&se_action=eyJ0eXBlIjoic2Utc2hvdy1tb2RhbCIsIm9wdGlvbnMiOnsicm9vbUtleSI6InByZXZlbnRhdGl2ZV9tYWludGVuYW5jZSJ9fQ%3D%3D 


Sample direct link to Home Screen with Affiliate coding

http://example.com/?se_affiliate=affiliatename&se_action=eyJ0eXBlIjoic2Utc2hvdy1tb2RhbCJ9


Example with multiple parameters

https://www.insertdomain.com/?utm_source=newsletter&utm_medium=email&utm_campaign=tune&utm_id=se&utm_term=ppctune&se_campaign=insertSTcampaign&se_action=eyJ0eXBlIjoic2Utc2hvdy1tb2RhbCIsIm9wdGlvbnMiOnsicm9vbUtleSI6InByZXZlbnRhdGl2ZV9tYWludGVuYW5jZSJ9fQ%3D%3D


You can simplify the url by inputting the parameters with Base 64. https://www.base64decode.org/ 


Sample website to build utm parameters into url. https://ga-dev-tools.web.app/campaign-url-builder/  


Parameters available for lead attribution

clid 

A general purpose click ID

fbclid 

Facebook Click ID

gclid 

Google Click ID

se_affiliate 

Schedule Engine Affiliate ID

se_campaign 

Schedule Engine Campaign ID

se_custom_field_1 

Schedule Engine Custom Field

se_lead_source 

Schedule Engine Lead Source

utm_campaign 

UTM Campaign

utm_content 

UTM Content

utm_medium 

UTM Medium

utm_source 

UTM Source

utm_term

UTM Term



In addition to encoding the parameters into an URL, you can also code them into the script for Scheduler and/or chat


These above parameters can be passed into the Schedule Engine booking .show() method or into the

Schedule Engine webchat .loadChat() or .open() methods.


Example

<button onclick="ScheduleEngine.show({

campaign: 'Your_Campaign_Name'

})">Book Now</button>


Example


ScheduleEngine.show({campaign: 'Internet- PPC'}) 


Example 


<button class="se-widget-button" type="button" onclick="ScheduleEngine.show({campaign: 'Internet- PPC'})">

  Book Now!

</button>


Note: setting tracking values using the .show() method will override the values passed through the URL.


For the Schedule Engine webchat, use:


WebChat.loadChat({

apiKey: 'YOUR API KEY',

sourceTracking: {

campaign: 'Campaign Value',

}

});


OR


WebChat.open({

sourceTracking: {

campaign: 'Campaign Value',

}

});