We are implementing Live Agent with a pre-chat form to capture and display information from the customer. The pre-chat form works great but we also want capture the URL the customer was on when they clicked the chat button.
This works fine from a test HTML page on my desktop, but when we put the code on our testing website the URL doesn't get passed through.
On the webpage the code is in the
<body> tag and looks like this.
Also using FireFox firebug I see this error when I refresh the page
ReferenceError: liveagent is not defined
I suspect this is caused by the
addCustomDetail function but I'm not sure exactly how to find exactly where it is happening.