Protect your messaging deployment from spam bots using reCAPTCHA verification. Learn more about reCAPTCHA. This feature is available only for API and Web customers—not yet for Mobile.
- Enable reCAPTCHA for your deployments by following the steps detailed in the Adding reCAPTCHA to Your Messaging Deployment page.
- Follow Google's reCAPTCHA v3 page to implement the client side. For
siteKey, ensure you add the correct site key you got from step 1 for this messaging deployment. - Add the client generated reCAPTCHA token using the
captchaTokenproperty for both authenticated and unauthenticated users.
Troubleshoot Errors
Troubleshoot common errors when setting up reCAPTCHA.
ERROR for site owner: Invalid Domain for Site Key
This error is shown on the chat button.
- Navigate to reCAPTCHA admin site.
- Select the reCAPTCHA site you configured.
- Click on the gear icon to go to the settings page.
- Under Domains, verify that the correct domain name of your parent website is displayed. For example, for the website
https://abc.xyz/ab/bc, you addabc.xyzas the domain name. - Click Save.
Reload your website.