LogoLogo
  • LeadBoxer — Lead Data Platform —Documentation
  • 🛠️Getting Started
  • Lead Management Workflow
    • Cold outbound email campaigns
  • How does it all work?
  • 🏗️Fundamentals
    • Leads & Accounts
      • Lead card: Complete lead details in one page
      • Batch operations
    • LeadBoard
    • Reports
    • Definitions & Glossary
    • Elements
      • Filters
      • Segments
      • Workflow Automation
      • Notifications
      • Users
      • Datasets
      • Clients (agents)
      • Lists
      • Enrichment
      • Leadscore
      • Lead & Account Tags
      • Import & Export
        • Upload Leads
        • download data
        • LinkedIn Matched Audiences export
        • Custom Properties
        • LeadBoxer User Interface Placeholder Names
      • Roles & Permissions
  • 🧩Integrations
    • 🌐Website
      • Lead Tracking Pixel
      • WordPress plug-in
        • track my WordPress user logins?
      • Google Tag Manager (GTM)
      • Drupal module
      • Gravity Form Tracking
      • Change website content based on behaviour
      • Track meta data using JSON-LD
      • Cross device tracking
      • Tracking marketing campaign data (UTM tags)
      • UTM tags for Google Adwords
      • How to track user logins
      • Automatic form tracking
      • Manual form tracking
      • How to get (raw) lead data
      • Magento
      • Adobe Tag Manager
      • Unbounce landing pages
      • Tracking pixel into Wix
    • ✉️Email
      • Individual emails
        • Gmail Email tracking
        • G Suite email tracking
        • Official Outlook Add-in
        • Advanced Outlook Add-in
        • Manually Identify leads using email
        • Legacy Outlook plugin
        • Linkedin InMail or Invite Link Tracking
      • marketing emails
        • 1. Setup Tracking Pixel
        • 2. Track Email Opens
        • 3. Track Email Clicks
        • Mailchimp
        • HubSpot
        • Sharpspring
        • ActiveCampaign
        • Pipedrive Campaigns
        • Eloqua
        • Copernica
        • Intercom
        • Mailup
        • Brevo
        • Poppulo
        • Reply.io
        • Spotler mail+
        • Prospect.io
        • Woodpecker
        • Instantly
        • Mailerlite
        • Lemlist
        • Autopilot
        • Constant Contact
        • dotdigital
        • Apollo.io
        • LaPosta
        • Customer.io
        • Campaign Monitor
        • QuickMail
        • Outreach
        • Mail Merge (MS Word)
    • Other
      • Active Campaign
      • HubSpot
      • Marketo
      • LinkedIn
        • LinkedIn job titles search
      • Google Places
      • Calendly
      • How to get LeadBoxer data into Intercom
      • Zapier
        • Advanced Zapier usage
        • Zapier webhook
        • Connect Leadboxer to Pipedrive with Zapier
        • Connect Leadboxer to Slack with Zapier
        • Connect Leadboxer to Salesforce with Zapier
      • Pipedrive
        • Pipedrive Workflow Automation with LeadBoxer
      • Whatagraph
      • Google BigQuery
      • Single Sign On (SSO)
  • 🦮Guides
    • Creating your first Segment
    • Creating your first LeadBoard
    • How to add a user
    • How to upload a List (ABM)
    • How to add a datasets
    • How to create a notification
    • How to set your Leadscore
    • How to hide & unhide Leads
    • Filter Leads from ad campaigns
    • How to create a Workflow Automation
    • How to mask IP addresses
  • 🏆Solutions
    • Lead Identification
    • Lead Qualification
    • Lead Managment
  • Extras
    • Changelog
    • Email tracking info
    • linkedIn industries
    • LeadBoxer reseller getting started
    • How to contact leads
    • LeadBoxer cookies
  • Terms of Service
  • Privacy Policy
Powered by GitBook
On this page
  • Speed and loading time
  • Example

Was this helpful?

  1. Integrations
  2. Website

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

<!-- Load LeadBoxer tracking pixel 
-- can be removed if pixel is already loaded using another method -->    
<script src="//script.leadboxer.com/?dataset=ee84d5e06e8811e79a2675ee660df0b1"></script> 

<!-- Load jQuery 
-- can be removed if lib is already loaded using another method -->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>  



<script type="text/javascript">

// first we add a 3s delay to make sure the lead is created before we can access the details
setTimeout(function(){   
  //   Variables for lead details API
  var leadId = ot_uid();                         // get current LeadBoxer userID
  var site = "ee84d5e06e8811e79a2675ee660df0b1"; // define your datasetID
  
  // Construct url for lead_details API
  var url = "https://kibana.leadboxer.com/api/views/lead_detail?email=&leadId=" + leadId + "&site=" + site;


  // In this example, we will get the lead details and output the last_city using jQuery to parse the json data
  $( document ).ready(function() {

    jQuery.ajax({
    url: url,
    dataType: 'jsonp',
    success: function(data) {
      last_city = data.resultsList[0].last_city;
      console.log(last_city);
	  }
	});
  });

}, 3000); // end of timeout function	

</script>
PreviousManual form trackingNextMagento

Last updated 2 years ago

Was this helpful?

🧩
🌐