A place to ask questions, connect with others, and stay in the know
I would check the browser console logs to see what is actually coming through as the sf_urlPop attribute. I suspect there is something odd about the way it's coming through (using what's in your post above, there's only one set of double quotes, which would cause problems).
Another option worth exploring would be to insert your code in an Apex file to leverage with the client extension points, documented here: https://help.mypurecloud.com/articles/extension-points-in-genesys-cloud-for-salesforce/ This approach might be a little more straightforward and process faster than relying on loading a visualforce page that must then process your code.
Every year, Genesys® delivers more than 70 billion remarkable customer experiences for organizations in over 100 countries. Through the power of the cloud and AI, our technology connects every customer moment across marketing, sales and service on any channel, while also improving employee experiences. Genesys pioneered Experience as a ServiceSM so organizations of any size can provide true personalization at scale, interact with empathy, and foster customer trust and loyalty. This is enabled by Genesys Cloud™, an all-in-one solution and the world's leading public cloud contact center platform, designed for rapid innovation, scalability and flexibility. Visit www.genesys.com.