Choose where you want your Live Chat to be
We get it – not every business wants live chat to appear on mobile devices. If you’re one of them, keep reading and follow our simple steps:
To remove Live Chat on mobile devices, you need to wrap your Moneypenny code in a JavaScript “if” statement which should be checking if the visitor is on a mobile browser:
(!navigator.userAgent.match(/(iPhone|iPod|iPad|BlackBerry|Android|IEMobile)/)) {
}
This is how the code would look on your website:
(function() {
if (!navigator.userAgent.match(/(iPhone|iPod|iPad|BlackBerry|Android|IEMobile)/)) {
var se = document.createElement('script'); se.type = 'text/javascript'; se.async = true;
se.src = '//storage.googleapis.com/moneypennychat/js/xxxx-xxxxx-xxxxx-xxxxx.js';
var done = false;
se.onload = se.onreadystatechange = function() {
if (!done&&(!this.readyState||this.readyState==='loaded'||this.readyState==='complete')) {
done = true;
// Place your Moneypenny JS API code below */
// Moneypenny.allowChatSound(true); // Example JS API: Enable sounds for Visitors. */
}
};
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(se, s);
}
})();
Please note that the widget id will have to be updated to replace „xxxx-xxxxx-xxxx-xxxxx‟.
For any technical support, feel free to give us a call on
Our experts have tons of experience and knowledge and are here to help you with whatever you need.Your own PA to look after calls, qualify leads, book appointments, and lots more.
Discover >Our team of PAs capturing every new enquiry and qualifying them during the call.
Discover >