Target a wider audience and provide personalized content based on visitors' location.

Target a wider audience and provide personalized content based on visitors' location.

If your website has broader demographics and if you wish to show customized widget and functionality based on the visitor's location, you can use the .afterready() API.

With .afterReady() API enabled, you can customize the functionality and content of the SalesIQ widget based on the visitor's location. This can be very effective in providing content when you have a wider audience. Now, let us see all the ways we can use this API to provide personalized content. 

Personalize the language of your SalesIQ chat window 

Make your brand's support experience much smoother and understandable for your international audience by using the .salesiq.language() API. 

For example, if a visitor from Paris visits your website you can use French as the widget language so the visitors can feel more comfortable and increase the chance of starting the conversation. 


Different privacy policies based on the country of the visitors 

Provide personalized tracking policy banner content based on the visitors' location using the Privacy APIs to improve the customer's security and inform them how you are handling the data collected from the customers. 

For example, Visitors from the EU region are governed by different customer data protection laws. So if your privacy policy varies a bit in these regions, you can show a different policy message using the Privacy APIs along with the After ready API.

<script>
   $zoho.salesiq.ready=function()
   {   
       $zoho.salesiq.visitor.getGeoDetails();
   }
</script>
<script>
   $zoho.salesiq.afterReady=function(visitorgeoinfo)
   {
      if(visitorgeoinfo.Country == "UNITED KINGDOM")   {
        $zoho.salesiq.privacy.trackingbannercontent(
   {
   'description' : 'Privacy policy text goes here',
   'acceptbutton': 'Accept',
   'declinebutton': 'Decline',
   'policytextandlink': {
    'text' : 'LearnMore',
    'link' : 'www.zylker.com/privacy'
     }
   }
   );
     }
   }
</script>

Note: Modify the content and link in the code and paste it below your SalesIQ widget code on your website's source code. 

Route visitors to a default operator based on the visitor location:

If you have head operators in charge of various countries and if you wish to route a visitor to the head operator of that country, you can do so by using the .chat.agent() API.

For example, if a visitor from Japan initiates a chat, you can route the conversation to Japan's head operator by using the following code.

<script>
   $zoho.salesiq.ready=function()
   {   
       $zoho.salesiq.visitor.getGeoDetails();
   }
</script>
<script>
   $zoho.salesiq.afterReady=function(visitorgeoinfo)
   {
      if(visitorgeoinfo.Country == "JAPAN")   {
         $zoho.salesiq.chat.agent("sakura@zylker.com");
     }
   
   }
</script>
Note: Modify the operator email and country in the code and paste it below your SalesIQ widget code on your website's source code. 

For more details, check our help guide here.

Regards,
Naveen

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now