Remove the Chat on specific page(s) of the storeUpdated 7 months ago
This suggestion isn't an official feature of our Chat widget, so our support for it is limited - we recommend that it be implemented by someone with a technical background.
1<script>2 var pagesToHide = [3 'INSERT_PAGE_URL_ONE',4 'INSERT_PAGE_URL_TWO',5 ]6 var initGorgiasChatPromise = (window.GorgiasChat) ? window.GorgiasChat.init() : new Promise(function (resolve) { window.addEventListener('gorgias-widget-loaded', function () { resolve();})});78 initGorgiasChatPromise.then(function() {9 if (pagesToHide.includes(window.location.href)) {10 GorgiasChat.hideChat(true);11 }12 })13</script>