Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  How to control web messenger only show on specific web pages

    Posted 05-27-2025 20:40

    We integrated web messenger to our website. The issue is the web messenger currently show up on all web pages. The requirement is the messenger should only show up in specific web pages, and hide in most other web pages (same domain)

    In Messenger Configuration, we use 'Hide until triggered by business logic'

    the web developer uses genesysInit() and genesysHide() JS functions, but seems only after refresh or reload each web page, hide() function works.

    Any suggestions or experience for fixing this issue? Thanks!


    #WebMessaging

    ------------------------------
    Lei Cao
    Consultant, Software Engineer
    ------------------------------


  • 2.  RE: How to control web messenger only show on specific web pages

    Posted 05-28-2025 02:36

    Hi Lei - have you tried using Predictive Engagement Action Maps to solve this?



    ------------------------------
    Angelo Cicchitto
    Genesys - Employees
    ------------------------------



  • 3.  RE: How to control web messenger only show on specific web pages

    Posted 05-28-2025 09:56

    No. Our web team use angular framework, show and hide web messenger by using JS SDK. But not consistent when web users navigate different pages.

    Genesys('subscribe', 'Launcher.ready', function () {

          Genesys('command', 'Launcher.show', {});

        });

     

    export function genesysHide() {

        Genesys('subscribe', 'Launcher.ready', function () {

          Genesys('command', 'Launcher.hide', {});

        });

      }



    ------------------------------
    Lei Cao
    Consultant, Software Engineer
    ------------------------------



  • 4.  RE: How to control web messenger only show on specific web pages

    Posted 05-28-2025 10:03

    I may suggest to review samples here > https://developer.genesys.cloud/commdigital/digital/webmessaging/messengersdk/pluginExamples

    Also, see the recommendation here, the recommendation is to subscribe to Messenger.ready > https://developer.genesys.cloud/commdigital/digital/webmessaging/messengersdk/SDKCommandsEvents/messengerPlugin

    On top of that, I would suggest to explore the Predictive Engagement Action Maps approach.



    ------------------------------
    Angelo Cicchitto
    Genesys - Employees
    ------------------------------



  • 5.  RE: How to control web messenger only show on specific web pages

    Posted 05-29-2025 09:04
    Edited by Bronze Cooley 05-29-2025 09:09

    Hey Lei,

    First time caller, here. I, too, have experienced a similar issue with web message. Partly due to the Launcher.ready and partly due to cache. I ultimately decided to wrap everything in a function so that I can have full control over when it is presented. I also have created a github repository. The intended design is to bring the form back like what was in Web Chat V2. You can also look at a HERE

    My github repository consist of one directory and one line of code that you put on per page where you want chat. 

    The other listeners appear to run successfully and await a command. However, something with Launcher causes the icon to pop. Hopefully what I have provided gives some direction. 

    Cheers!



    ------------------------------
    Bronze Cooley
    Principal Engineer, Client Service Desk • US-PUBLIC SECTOR

    github
    Demo Page
    ------------------------------



  • 6.  RE: How to control web messenger only show on specific web pages

    Posted 05-30-2025 03:37

    Hey Bronze - thanks for sharing. We are adding inline forms later this year > https://genesyscloud.ideas.aha.io/ideas/CEWMM-I-516 

    As for Messenger scripting, we do recommend to subscribe to Messenger.ready event, as this ensures all other plugins have properly initialized > https://developer.genesys.cloud/commdigital/digital/webmessaging/messengersdk/SDKCommandsEvents/messengerPlugin

    As mentioned earlier, the recommended approach for website behavior is to use Predictive Engagement Action Maps, in combination with Messenger.



    ------------------------------
    Angelo Cicchitto
    Genesys - Employees
    ------------------------------



  • 7.  RE: How to control web messenger only show on specific web pages

    Posted 05-30-2025 12:16

    Thank you Angelo and Bronze for sharing. 

    Our web team tried the Messenger plugin, while navigating through web pages, see these js error (not see this error at 1st time messenger show or hide, after switch to different pages, these errors show up in console) any insights?

    10:48:00.957 Uncaught TypeError: o.subscribers is undefined
        r https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" href="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" rel="noreferrer noopener" target="_blank" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6">https://apps.mypurecloud.com/cxbus/cxbus.min.js:6
        r https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" href="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" rel="noreferrer noopener" target="_blank" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6">https://apps.mypurecloud.com/cxbus/cxbus.min.js:6
        r https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" href="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" rel="noreferrer noopener" target="_blank" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6">https://apps.mypurecloud.com/cxbus/cxbus.min.js:6
        r https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" href="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" rel="noreferrer noopener" target="_blank" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6">https://apps.mypurecloud.com/cxbus/cxbus.min.js:6
    <anonymous> https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" href="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" rel="noreferrer noopener" target="_blank" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6">https://apps.mypurecloud.com/cxbus/cxbus.min.js:6
        n https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" href="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" rel="noreferrer noopener" target="_blank" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6">https://apps.mypurecloud.com/cxbus/cxbus.min.js:6
    <anonymous> https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" href="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" rel="noreferrer noopener" target="_blank" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6">https://apps.mypurecloud.com/cxbus/cxbus.min.js:6
    <anonymous> https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" href="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" rel="noreferrer noopener" target="_blank" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6">https://apps.mypurecloud.com/cxbus/cxbus.min.js:6
    <anonymous> https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" href="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" rel="noreferrer noopener" target="_blank" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6">https://apps.mypurecloud.com/cxbus/cxbus.min.js:6
    <anonymous> https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" href="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" rel="noreferrer noopener" target="_blank" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6">https://apps.mypurecloud.com/cxbus/cxbus.min.js:6
    6 cxbus.min.js:6:18728
        r https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" href="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" rel="noreferrer noopener" target="_blank" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6">https://apps.mypurecloud.com/cxbus/cxbus.min.js:6
        r https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" href="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" rel="noreferrer noopener" target="_blank" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6">https://apps.mypurecloud.com/cxbus/cxbus.min.js:6
        (Async: EventListener.handleEvent)
        r https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" href="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" rel="noreferrer noopener" target="_blank" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6">https://apps.mypurecloud.com/cxbus/cxbus.min.js:6
        r https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" href="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" rel="noreferrer noopener" target="_blank" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6">https://apps.mypurecloud.com/cxbus/cxbus.min.js:6
    <anonymous> https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" href="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" rel="noreferrer noopener" target="_blank" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6">https://apps.mypurecloud.com/cxbus/cxbus.min.js:6
        n https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" href="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" rel="noreferrer noopener" target="_blank" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6">https://apps.mypurecloud.com/cxbus/cxbus.min.js:6
    <anonymous> https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" href="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" rel="noreferrer noopener" target="_blank" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6">https://apps.mypurecloud.com/cxbus/cxbus.min.js:6
    <anonymous> https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" href="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" rel="noreferrer noopener" target="_blank" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6">https://apps.mypurecloud.com/cxbus/cxbus.min.js:6
    <anonymous> https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" href="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" rel="noreferrer noopener" target="_blank" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6">https://apps.mypurecloud.com/cxbus/cxbus.min.js:6
    <anonymous> https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" href="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6" rel="noreferrer noopener" target="_blank" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://apps.mypurecloud.com/cxbus/cxbus.min.js:6">https://apps.mypurecloud.com/cxbus/cxbus.min.js:6
    10:48:00.963
    Object { type: "CXBus.remoteExecution", subType: "registerPlugin", busID: "28d0c2f3-ab57-4435-b4ce-66bf1e40cb16", pluginName: "SubMessenger", id: "ed5a8e60-10f7-48a7-9674-e6d5dd525573", resolution: "fail" }
    cxbus.min.js:6:13614
    10:48:00.964 Uncaught (in promise) 
    Object { type: "CXBus.remoteExecution", subType: "registerPlugin", busID: "28d0c2f3-ab57-4435-b4ce-66bf1e40cb16", pluginName: "SubMessenger", id: "ed5a8e60-10f7-48a7-9674-e6d5dd525573", resolution: "fail" }



    ------------------------------
    Lei Cao
    Consultant, Software Engineer
    ------------------------------



  • 8.  RE: How to control web messenger only show on specific web pages

    Posted 06-03-2025 10:42

    Lei - would recommend to open case with Genesys Care > https://help.mypurecloud.com/articles/contact-genesys-cloud-care/



    ------------------------------
    Angelo Cicchitto
    Genesys - Employees
    ------------------------------