How do I disable Auto Invitations on mobile-optimized websites?

April 13th, 2018 | Settings & Customizations

With Comm100 Live Chat, you can automatically invite visitors to chat with you based on pre-defined rules. However, in some scenarios, you might only want to target visitors who are accessing your desktop websites, and remove auto-invitation capabilities for visitors accessing your website from a mobile device.

You can disable Auto Invitation for mobile websites by setting up Custom Variable, which check whether your visitors are visiting your websites from mobile devices. Then you can use this Custom Variable value as a Condition in the Auto Invitation.

Step by Step Instructions

  1. Log into your Comm100 account.

  2. Click Integrations & API, then Custom Variable, and Settings.

    Custom Variable Setting
  3. Click on New Custom Variable.
  4. Define a Variable Name of your choice. Following example is defined as “From Mobile”.
  5. Select Type as Text, and Value as:



    /mobile|android|ipad/.test(navigator.userAgent.toLowerCase()) ? "Yes": "No"
    

    Custom Variable Editing
  6. Click Save.
  7. Now go the Campaign, then Invitation menu.
    Editing Auto Invitation
  8. Click on the Auto Invitation that you wish to disable on mobile-optimized websites.
  9. Add one more Condition using Custom Variable as From Mobile is No.
    Editing Auto Invitation Condition
  10. Click Ok.
  11. Click Save Changes.
  12. The configuration is now complete and your live chat system will not send Auto Invitations when visitors access your websites via mobile devices.

    Be the 1st to vote.