Visitor
Get Visitor
Visitor Name
Get the name of the visitor.
Sample Code
<script>
window.acquire = window.acquire || [];
window.acquire.push(function(app){
app.userDetails.subscribe(function(){
alert(app.userDetails().name);
});
});
</script>
Visitor Email
Get the email address of the visitor.
Sample Code
<script>
window.acquire = window.acquire || [];
window.acquire.push(function(app){
app.userDetails.subscribe(function(){
alert(app.userDetails().email);
});
});
</script>
Visitor Phone
Get the phone number of the visitor.
Sample Code
<script>
window.acquire = window.acquire || [];
window.acquire.push(function(app){
app.userDetails.subscribe(function(){
alert(app.userDetails().phone);
});
});
</script>
Set Visitor
Set Customer Tracking
Set the visitor’s name, email address, phone number and remark. Use the script at right to update visitor details.
Step 1: Embed tracking code
Copy the sample customer tracking code under <HEAD>
section of your webpage before widget code.
Step 2: Reload Webpage
Save your code and reload webpage.
A convenience function to set multiple settings at once. Accepts a settings object.
Parameters userDetails key detail:
Attribute
Type
Description
name
string
Visitor’s name
email
string
Visitor’s email address
phone
string
Visitor’s phone number
remark
string
Visitor’s remark
Visitor Page Update
Programmatically update visitor’s web-path.
Attribute
Type
Description
title
string
title of page
url
string
Url for page
Optional - If not specified, the current page’s location and title will be used; if specified, the updated page url and title will be taken from the options object.
Update visitor’s path with current page’s location and title:
<script>
// update visitor's path with current page's location and title
acquireIO.visitorPageUpdate(title, url);
</script>
Last updated