How to get (raw) lead data
If you would like to retrieve all the data we have collected for a specific lead, you can do so using the LeadDetail API call.
This API call will return all the user data we currently have, including all the custom fields.
You can use this API call in your site to generate dynamic or fluid content, pass data to another service or use this server-side to sync with another solution.
Speed and loading time
LeadBoxer data is captured and available in realtime and the lead details api returns data within a few milliseconds (eg 50). However, you should take into account that on the first initial pageview there could be a few seconds of overhead before we populate the lead or customer across our distributed datastore.
Meaning that you should always build in some delay before you can access the lead details after the initial (first) event.
Workarounds If many of your visitors click away or to another page quickly (eg within 2 seconds) you can try to load the lead details on the second pageview or process the data server-side with a few seconds delay.
Example
In below example we will load the city for the current browser and show this in the console
Last updated