Launch your Joonbot only when people need it! You can now trigger your Joonbot when a visitor clicks on a specific button on your website.
Looking to launch the Joonbot widget interface when your visitors click on a button like in the example below? Follow this guide!
Here are the steps to follow:
1. Add in your widget Joonbot script the element -> window.JB_IS_HIDDEN = true;
/!\ It only works with the widget format. You need to take the widget code snippet to make it work.
<script async type="text/javascript"> !function () {
if (window.JOONBOT_WIDGET_ID) {
console.warn("Joonbot snippet included twice"); } else {
window.JOONBOT_WIDGET_ID = "826e986a-9e15-4226-8957-80dcf2c1286a";
window.JB_IS_HIDDEN = true;
var n, o;
o = document.createElement("script");
o.src = "https://js.joonbot.com/init.js", o.defer = !0, o.type = "text/javascript", o.async = !0, o.crossorigin = "anonymous";
n = document.getElementsByTagName("script")[0], n.parentNode.insertBefore(o, n);
} }()
</script>
2. On the button that will trigger your Joonbot, add the function -> onclick="joonbot.launch()"
<button onclick="joonbot.launch()">Click me</button>
3. You are now ready to boost your engagement and conversions! 🚀
Comments
0 comments
Please sign in to leave a comment.