How can I pass-thru visitor information?
Please make sure that you are using the static code if you want to pass data through from your website to the Chat Button. Since data pass-thru will only be possible with a static code.
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 or text link.
- Hit Data and choose the input field(s) you want to pass data to.
- 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 with the base64Url-encoded data when dynamically generating your website "pages" on php/asp/perl/java side.
Please note that all data needs to be UTF-8 encoded first, in order to get base64Url encoded correctly.
Related PHP Function:
$name = "Name of the website visitor";
$html = "HTML code of your website";
$code = "LiveZilla code";
$code = str_replace("<!--replace_me_with_b64url_name-->",base64UrlEncode(utf8_encode($name)),$code);
$html = str_replace("<!--code-->",$code,$html);