.afterReady()
The .afterReady() function helps you customize the chat window based on the geo-information of the visitors hitting your website.
Note: You can get the geo-information from .afterReady() function only if you have used the .getGeoDetails() API inside the .ready() function.
The param you retrieve, will be structured as given below.
visitorgeoinfo = { City : "LOS ANGELES", Country : "UNITED STATES", State : "CALIFORNIA" }
Syntax
Copied$zoho.salesiq.afterReady=function(visitorgeoinfo)
{
}
Example
Copied<script>
$zoho.salesiq.ready=function()
{
$zoho.salesiq.visitor.getGeoDetails();
}
</script>
<script>
$zoho.salesiq.afterReady=function(visitorgeoinfo)
{
if(visitorgeoinfo.Country == "UNITED STATES") {
$zoho.salesiq.floatbutton.visible("hide");
}
}
</script>