Have you ever found yourself in a situation where you're receiving chat requests from locations where your business isn't operational? Having to set routing rules or manually delete chats from your logs can be tedious and time-consuming, hampering your day-to-day operations.
Wouldn't it be great if you could simply hide your chat widget and prevent visitors from non-operational locations from initiating chats?
You can achieve this by using the visitor.getGeoDetails() API, which allows you to hide the SalesIQ chat widget based on location.
You can add all the mentioned code after the Zoho SalesIQ widget code or above the </body> tag in your website's source code.
Let's take a look at the code snippet below:
<script>
$zoho.salesiq.ready = function(embedinfo) {
$zoho.salesiq.floatbutton.visible("hide");
$zoho.salesiq.visitor.getGeoDetails();
}
$zoho.salesiq.afterReady = function(info) {
if (info.Country == "AUSTRALIA") {
$zoho.salesiq.floatbutton.visible("show");
}
}
</script>
The above code is used to hide your SalesIQ chat widget for visitors in all countries except Australia.
If you want to hide the chat widget for only a particular country, use the code below:
<script>
$zoho.salesiq.ready = function(embedinfo) {
$zoho.salesiq.floatbutton.visible("show");
$zoho.salesiq.visitor.getGeoDetails();
}
$zoho.salesiq.afterReady = function(info) {
if (info.Country == "CHINA") {
$zoho.salesiq.floatbutton.visible("hide");
}
}
</script>
The above code is used to hide your SalesIQ chat widget for visitors in China. Likewise, you can replace the country name to hide the chat widget for the following country.
How do I hide widgets in multiple locations?
<script>
$zoho.salesiq.ready = function(embedinfo) {
$zoho.salesiq.floatbutton.visible("show");
$zoho.salesiq.visitor.getGeoDetails();
}
$zoho.salesiq.afterReady = function(info) {
if (info.Country == "CANADA"|| info.Country=="INDIA") {
$zoho.salesiq.floatbutton.visible("hide");
}
}
</script>
Note: The country name should be in all caps. Ex: INDIA
Tip 2: How do I increase chat wait time?
In certain business conditions, there may be only a few operators available, making it difficult for them to respond within the maximum configurable time of 2 minutes allowed in the SalesIQ app.
For such cases, you can use the chat wait time API to set additional wait time as per your business requirements.
Did you find this post helpful? Would you like to see more posts like this in the future? Please let us know in the comments below, and feel free to ask any questions you may have! We're here to help.
Sticky Posts
Plug Sample #10 - Simplify Ticket Management (Zoho Desk) with Chatbots
Hi everyone! We're here with another simple yet effective plug for your chatbot to integrate with Zoho Desk. When a customer reports an issue/request during chat, it's logged as a ticket on Desk. When they return for updates, you end up searching through
OpenAI Alert - Plug Sample #6: Reach maximum potential with SalesIQ Zobot and ChatGPT Integration
In recent times, AI-powered tools have seen a remarkable surge in usage due to their exceptional capacity to enhance overall performance across diverse industries and sectors. One such tool is ChatGPT which businesses have started to use predominantly
Plug Sample #5 - Read and write values/data in a Google sheet with Zobot
We all know google sheets are one of the widely used spreadsheet software. It helps us to make data-driven decisions. When connecting the Zobot with sheets, the bot can display values/data from a spreadsheet, like the available stock details (Item price,
Speak Your Customers' Language: SalesIQ's chatbots now support 30 languages 🤖
We're unveiling some major upgrades to our chatbot that are set to revolutionize your experience! Now SalesIQ support 30 languages for both Zobot and Answer bot. By speaking your customers' language, you can enhance engagement, improve customer satisfaction,
Attention Deluge Developers: Important Update Regarding "Send Email Deluge Task"
Hi Deluge Users, We hope this message finds you well. We would like to inform you about a recent update on the Send emails deluge task. If you are using this deluge task (SalesIQ Scripts) for your Zobot, widgets, or form controllers to send emails, please