Hide the chat widget for specific countries

You can use our JavaScript API to hide the chat widget for website visitors from specific countries based on IP-address.

Example:

window.chaportConfig = {
  appId: '',
  countries: {
    include: ['US']
  }
}

The example above shows how to hide the chat widget for all countries except the United States.

You can also use the exclude property instead of include. In this case, you should list the countries for which you want to hide the chat widget.

All countries should be written as a 2-letter ISO code.

Please note: Javascript API is only available on our paid plans.