Legacy Dev Forum Posts

 View Only

Sign Up

Web Messaging does not appear

  • 1.  Web Messaging does not appear

    Posted 06-05-2025 18:35

    ChristofD | 2021-09-23 12:27:53 UTC | #1

    Hello All,

    • I have created a Messenger Configuration (which is active and configured "Always Show")
    • I have created a Messenger Deployment (which is active, Linked to the Messenger Configuration and for all domains)
    • I have copied the Code Snippet to my webpage in the <head>

    <script type="text/javascript" charset="utf-8"> (function (g, e, n, es, ys) { g['_genesysJs'] = e;

    g[e] = g[e]

    function () {

    (g[e].q = g[e].q

    []).push(arguments)

    }; g[e].t = 1 * new Date(); g[e].c = es; ys = document.createElement('script'); ys.async = 1; ys.src = n; ys.charset = 'utf-8'; document.head.appendChild(ys); })(window, 'Genesys', 'https://apps.mypurecloud.ie/genesys-bootstrap/genesys.min.js', { environment: 'euw1', deploymentId: 'a0ae8b0f-84d1-4da3-9202-c0283ec33cb6' }); </script>

    But I don't see anything on my webpage.

    Does anybody know what is missing/wrong?

    Thanks in advance


    Angelo_Cicchitto | 2021-09-23 17:19:02 UTC | #2

    Hello! Is your web page hosted on public internet or running on your local environment? Is it a production page you can share here? Chrome's Dev tools might give you more insight.


    ChristofD | 2021-09-24 07:21:32 UTC | #3

    Hello Angelo

    I just created a local html page with the following content

    <html> <head> <script type="text/javascript" charset="utf-8"> (function (g, e, n, es, ys) { g['_genesysJs'] = e;

    g[e] = g[e]

    function () {

    (g[e].q = g[e].q

    []).push(arguments)

    }; g[e].t = 1 * new Date(); g[e].c = es; ys = document.createElement('script'); ys.async = 1; ys.src = n; ys.charset = 'utf-8'; document.head.appendChild(ys); })(window, 'Genesys', 'https://apps.mypurecloud.ie/genesys-bootstrap/genesys.min.js', { environment: 'euw1', deploymentId: 'a0ae8b0f-84d1-4da3-9202-c0283ec33cb6' }); </script> </head> <body> Test Page </body> </html>

    Mvg, Christof


    Albert_Nan | 2021-10-12 00:51:43 UTC | #4

    Any update on this question please? I got the same problem. Thank you.


    ChristofD | 2021-10-12 06:55:08 UTC | #5

    Yes I got it working together with Genesys by using Tampermonkey to inject the snippet. You can find the explanation on how to use tampermonkey on the following page: https://gdemo.demo.genesys.com/demos/5ee00cd56aebe80ccee745a5


    Angelo_Cicchitto | 2021-10-12 07:42:15 UTC | #6

    Hello. I believe this was not working initially because the html page was not being served via HTTP, but rather hosted locally and accessible vial file:///<path> type of URL: this schema is not supported for now. For testing purposes, you can either use tampermonkey, which is very easy to setup and excellent for demos, or you can also easily host your demo index.html page on web server from your local machine. I've used a Chrome Extension like Web Server for Chrome that is super-easy to enable/disable locally, or you can also quite easily start a local http server instance via Python, which is natively available on MacOS and you can install on Windows too. With all these approaches, you just need to configure the Messenger Deployment to run on any domain (for testing purposes), then browse to http://127.0.0.1:<port> and your index.html page should appear. With all this being said, we will look into making it easier to test a Messenger Deployment directly within Genesys Cloud UI.


    Albert_Nan | 2021-10-12 22:02:59 UTC | #7

    Thank you for your help. I got it working too!


    mohannad_haddad | 2021-10-16 12:05:22 UTC | #8

    guys could any one give me a hand, I still got this empty page on the test

    can anyone show us a clarify steps for testing the web messaging ,,,, thanks


    Angelo_Cicchitto | 2021-10-18 08:13:48 UTC | #9

    Hi - I have impression you are missing a comma symbol , between deploymentId and debug Other than that, it should be OK, and you should have configured that deployment without any domain restriction, for testing purposes.


    This post was migrated from the old Developer Forum.

    ref: 12108