I need your help in a doubt, I’m checking a test sample provided in the Genesys widgets docs, specifically for chat, I can see that when I fill the required fields to create a chat session I get a script and I can copy/paste it in the index.html in my other page, but I do not understand where to set it, I tried to put it into the window.onload event, but it did not work, any suggestion you may have?
The reason for doing this is to maintain the chat session alive when the user is moving across the website pages.
It is in the same doc, and it loads correctly, but the script does not do anything else, maybe I’m waiting for something that won’t happen, I think I should see the same open window chat, Am I wrong?
You should see a side bar.
Check with the debug mode (developer) on your browser, maybe a missing reference? You should be able to see what is wrong in there
Well, I’m still working on this because for some reason the cookies seem not to be working fine when creating a chat session, after moving to another website page from the one where the chat session is, the chat window is gone and then after this, the chat button is displayed again, but I still have the chat alive in the other end, it’s confusing, if you can provide any other suggestion it would be great.
You are keeping the chat session at agent side only because there was no close event.
You need to manage it in your side, after you change the page you are creating a new instance of that script.
As far as I know you can’t keep the same session when this happens. Your Web site would have to keep the unique page and via Ajax or similar do the navigation possible.
Maybe a frame for the chat?
I’d like to close this thread, we got some advice from the Genesys developers, first we saw that our sample was working in Firefox as it was, but it did not in Chrome or IE, the issue was that we were not accessing to the webpage from a fully qualified domain name in order for cookies to work, accessing that way that worked for us and now the chat session persists in all the website pages.