How can I pass-thru visitor information?
LiveZilla allows you to pass visitor related information (like name, email ...) from your website into the chat (login) form. This information can also be used with the visitor monitoring to identify your visitors on your website.
To make use of this, please follow the steps below:
- Open the Link Generator and create a new chat button code.
- Switch to Data tab.
- You can either pass static (=same for all visitors) or dynamic (=different data for each visitor) information. If you want to pass-thru static information, please fill the regarding fields with the information you like to pass to your operators. If you like to pass-thru dynamic information (from your website), please check I want to pass-thru dynamic data from my website and placeholders will be set. Hit Ok and copy the script.
- Embed the script into your website's source code (static) or template file (dynamic).
If you pass dynamic information, please replace each placeholder (like <!--replace_me_with....-_>) when dynamically generating your website "pages" on php/asp/perl/java side.
Depending on the element type you like to use (Onsite Widget, Floating Button or Classic Chat button) you may need to encode the data. The placeholder will indicate if base64url encoded data is expected.
Related PHP Function to base64UrlEncode your data:
$name = "Name of the website visitor";
$html = "HTML code of your website";
$code = "LiveZilla code";
$code = str_replace("<!--replace_me_with_base64_url_encoded_name-->",base64UrlEncode(utf8_encode($name)),$code);
$html = str_replace("<!--code-->",$code,$html);