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
  • How to track and identify user/ clients/ customers when they log-in
  • Submit data on load (preferred)
  • Submit data on event

Was this helpful?

  1. Integrations
  2. Website

How to track user logins

Identify individuals that are known to you

How to track and identify user/ clients/ customers when they log-in

In order to track user logins form your website, you can to collect client data from your system and pass this to their user profile:

Submit data on load (preferred)

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 executed. This function needs to be loaded before the script itself and needs to include ot_log_state() - to actually append all data before the default request to our logging servers is made.

A example looks like this:

<script type="text/javascript"> 
function ot_onload() {
  // define variables
  var customerId = "12345";
  var customerType = "Reseller";
  var customerEmail = "jack@website.com";

  // add variables to map (_otmap)
  _otmap.put("Customer ID", customerId);  
  _otmap.put("Customer Type", customerType);
  _otmap.put("email", customerEmail);

  ot_log_state();
}
</script>

Above example will add 3 additional properties to the lead or customer fields when the page loads.

Submit data on event

Alternatively, if you cant or do not want to submit details on page load, but want to trigger based on an event, you can use the Map function to submit data:

Paste the below snippet inside the page/file to add a custom tag. For example: use this to send us a signal when a user logs in to your system. We will add that information to visitor profiles. Send us login events; email addresses, usernames, LoginID, etc. You can also send us social media login events.

Make sure that: a. the default LeadBoxer javascript loads before the execution of below script b. the default LeadBoxer javascript should not contain the 'defer' tag. Alternatively you can wrap the script in a timeout or onPageLoad.

A simple example looks like this:

<script type="text/javascript">

// define an empty variable called 'map' 
var map = new OTMap();

//define one or multiple properties to be added to the visitor profile, you need to replace the actual values with dynamic placeholders.
map.put("firstName", "Brad"); 
map.put("lastName", "Shaw"); 
map.put("email", "login@mysite.com"); 
map.put("companyName", "LeadBoxer"); 

//send (submit) the data to LeadBoxer 
OTLogService.sendEvent("Login added", map, false);

</script>

notes:

  • Do not forget to replace the values of the lead or customer with dynamic data. eg {{ firstName }} (this depends on your language /platform)

  • You can add as many properties as you like.

  • You can change all the words that are inside quotes to suit your needs. For example you can dynamically generate the tag from your CMS

  • To retrieve the data, you can use the LeadBoxer interface or our API

PreviousUTM tags for Google AdwordsNextAutomatic form tracking

Last updated 1 year ago

Was this helpful?

Here is a list of recommend field-names:

🧩
🌐
https://docs.leadboxer.com/article/54-leadboxer-user-interface-placeholder-names