Dashboard
Access your Activa Live Chat account here »
Activa Live Chat Features
888–4–CHAT–44
(888–424–2844)
Free Trial
Get full access to Activa Live Chat for 14-days with a trial sign up.
Professional Services
Inquire about Activa Live Chat's professional services for your custom needs.
Modifying the URLs displayed inside the operator console
Activa Live Chat Support » Customization » How To
Article ID: 22 | Last Modified: 03/31/2008
There are times when you may not want your visitor's actual URLs to show up in the operator console. For example, you may want to filter out session identifiers from the URL, or provide a friendly name for a dynamic URL.
You can change the URL that appears in the operator console by defining a javascript function with the name __ALC_GET_URL inside your deployed page. This function should return the URL that you want to appear in the operator console. If this function is undefined, the default behavior is to use the browser's document.location.href property.
As an example, if you wanted to change the displayed URL by removing everything after the string "session_id", you could add the following code between the <head></head> tags on your page:
<script type="text/javascript">
function __ALC_GET_URL() {
var realUrl = document.location.href;
if ( realUrl.search('session_id' ) {
return realUrl.substr(0, realUrl.search('session_id'));
} else {
return realUrl;
}
}
</script>
Chat with us Now
Contact Us by E-mail