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.
The OTLogService.sendEvent() method is called to send events.