Original Message:
Sent: 05-30-2025 12:15
From: Lei Cao
Subject: How to control web messenger only show on specific web pages
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
Original Message:
Sent: 05-30-2025 03:37
From: Angelo Cicchitto
Subject: How to control web messenger only show on specific web pages
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
Original Message:
Sent: 05-29-2025 09:04
From: Bronze Cooley
Subject: How to control web messenger only show on specific web pages
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
Original Message:
Sent: 05-28-2025 09:56
From: Lei Cao
Subject: How to control web messenger only show on specific web pages
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
Original Message:
Sent: 05-28-2025 02:36
From: Angelo Cicchitto
Subject: How to control web messenger only show on specific web pages
Hi Lei - have you tried using Predictive Engagement Action Maps to solve this?
------------------------------
Angelo Cicchitto
Genesys - Employees
Original Message:
Sent: 05-27-2025 20:40
From: Lei Cao
Subject: How to control web messenger only show on specific web pages
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
------------------------------