I'm trying to push some custom data to the chat console from pre chat from but without success. I've tried hidden form elements like this:
<input type="hidden" name="liveagent.prechat:Username" value="Anonymous" />
liveagent.addCustomDetail('Username', "Anonymous", true);
But the agent sees only most recently viewed pages when hovering over "Accept" chat button. Also no custom variables are displayed after chat is initialized.
The pre-chat form is embedded on a client site. To submit the form I just use this code:
How can I debug this? What is the correct way to pass this custom data?