Advanced pixel usage

Script option: onload=map

If you want the pixel to collect default data (for instance a value from the URL) you may need to wait before you want to send the data to the logging servers. 

The following script shows how to turn off the default send on load, collect data from a map and then send it. This will enable you to add extra data and trigger the sending of the data at a later stage. 

The following example illustrates this.

<!-- LEAD PIXEL START -->
<script type="text/javascript" src="//script.leadboxer.com/?dataset=yourDatasetId&onload=map"></script>
<!-- LEAD PIXEL END -->

<script> 
_otmap.put("partner","PartnerName");   // setup a map with a name and a value
OTLogService.sendEvent(_otmap);	       // send the map
</script>

The OTLogService.sendEvent() method is called to send events. 

Still need help? Contact Us Contact Us