I am using the Javascript Chat API module to implement embedded chat on a page. I am also using the standard Monitor Tag provided by the admin interface. Both are working fine independently, but they appear as two different sessions in the console.
From the Chat API documentation I see that I need to pass a visitorSessionId parameter to the chat in order to link the sessions, however none of the id's I can get at from the monitor tag are working. I have tried passing the values of lpMTagConfig.FPC_SKEY and .FPC_VID but neither worked.
This seems to be the same issue as in https://connect.liveperson.com/message/7262 but the variable mentioned there (lpMTagConfig.LPSID_VAR) does not exist on my page.
I did find a number that worked by looking at the LPAC logs from the monitored session
2014-01-09 15:41:19,192 DEBUG [AWT-EventQueue-0] [humanclick.prep.protocol.RepEventDispatcher] |COM IN: addVisitor 15115016949148 8388920 1589443094 "Chrome 31.0.1650.63" -1 -1 "" "Windows 7" 1389274876866 0
2014-01-09 15:41:19,193 INFO [AWT-EventQueue-0] [humanclick.prep.ui.SelectionWorker] Recieved Value change selected rowcount is 1
2014-01-09 15:41:19,193 INFO [AWT-EventQueue-0] [humanclick.prep.ui.SelectionWorker] lastSelctedItem is: Visitor:94.188.250.22 currentSelectedItem is null
2014-01-09 15:41:19,193 DEBUG [AWT-EventQueue-0] [humanclick.prep.protocol.RepEventDispatcher] Handling event = |addVisitor| took =|1| ms.
2014-01-09 15:41:19,193 DEBUG [AWT-EventQueue-0] [humanclick.prep.protocol.RepEventDispatcher] |COM IN: visitorState 8388920 1 0 repNick - -
2014-01-09 15:41:19,193 DEBUG [AWT-EventQueue-0] [humanclick.prep.protocol.RepEventDispatcher] |COM IN: visitorVoiceState 8388920 0 -1 - 0
2014-01-09 15:41:19,193 DEBUG [AWT-EventQueue-0] [humanclick.prep.protocol.RepEventDispatcher] |COM IN: visitorConversationState 8388920 1 1 1 -1
2014-01-09 15:41:19,193 DEBUG [AWT-EventQueue-0] [humanclick.prep.protocol.RepEventDispatcher] |COM IN: visitorConversationState 83889202 1 0 -1
2014-01-09 15:41:19,194 DEBUG [AWT-EventQueue-0] [humanclick.prep.protocol.RepEventDispatcher] |COM IN: setVisitorParm 8388920 "blockedForChat" "0"
Passing in this 8388920 as the visitorSessionId does work, and the sessions are linked. But I have not found a way to pull that number out of the monitor tag. (I think this might be the number referred to in other places as the visit-session-uri)
How can I get at this ID on the page in order to pass it to the chat session?