Returns the LeadBoxer user ID that represents the user
Returns an internal ID that identifies the current session
Adding properties on page load
The LeadBoxer tracking script library, once loaded, will immediately check for a function called "ot_onload". This is a hidden function that if defined, gets called. This function needs to be loaded before the script itself and needs to execute ot_log_state() - to actually append all data before the default request to our logging servers is made.
The function needs to be in the html of the page, or if loaded externally, needs to be placed before the loading of Leadboxer script / pixel.
A simple example looks like this:
Above example will add 2 additional properties to the lead or customer custom fields when the page loads.
Reminder: This function needs to be loaded before the default tracking script gets loaded.
The Leadboxer tracking script or pixel is served form a high availability, low latency, geo-ip based custom build Content Delivery Network.
- Replace the variable ot_t0 with a function that generates the current time in unixtime.
For example with the
Important notice / disclaimer