I am trying to find a way to conditionally adding the co-browse scripts on the page of the website. I have this need
1- Help page, where the co-browse session starts, will always have the co-browse script
2- once the user starts the session, I will inject a cookie, which will tell me that there is an active co-browse session
3- once the user goes to any page of the website, the co-browse script will be conditionally on cookie value
4- once the user closes the session, the cookie value will be turned off
Now in order to achieve the above, I need callbacks in my code on session start and session end. I am unable to find those callbacks. I have an implementation based on this guide
https://developer.genesys.cloud/api/digital/cobrowse/