If you already know information about your visitor, iAdvize allows you to pre-fill their visitor record. This data is then made available to your operators directly in the iAdvize desk, helping them personalize the conversation. Since the information is stored within iAdvize, you can also retrieve it later via our APIs.
1. Available variables
All the variable are string values and will have to respect the following nomenclature:
| Name of the variable | Description | maximum number of characters |
cust_name |
Name of the customer | 100 |
cust_firstname |
First name | 100 |
cust_address |
Address | 200 |
cust_zipcode |
ZIP code | 100 |
cust_city |
City | 100 |
cust_country |
Country | 100 |
cust_phonenumber |
Phone number | 20 |
cust_email |
Email address | 200 |
2. Javascript tag to be installed on your website
Here is the javascript code that you will have to install on your website to fill in all the variables automatically :
<script>
window.iAdvizeInterface = window.iAdvizeInterface || [];
window.iAdvizeInterface.push(function(iAdvize) {
iAdvize.set("customData", {
"cust_name": "Draper",
"cust_firstname": "Don",
"cust_address": "Advertising agency",
"cust_city": "New York City",
"cust_country": "United States",
"cust_phonenumber": "0123456789",
"cust_zipcode": "12540",
"cust_email": "don.draper@iadvize.com"
});
});
</script>
Note:
- It won't be necessary to create the custom data within the iAdvize back office. Except if you wish to use them for the behavioral targeting, or if you don't want to display them to the agents (on the conversation panel).
- The data taken here are examples. They will have to be replaced by your customer's data.
3. Where this information is displayed in iAdvize?
Once the JS code has been installed correctly, you'll then be able to find the information here :
- Within the visitor records
- In the profile part that can be found on the right side of the chat window while an agent is chatting with a visitor.
Other articles which may interest you: