If you are using the Test JavaScript Snippet tool to check if your snippet is installed correctly, you might see the following: “We’ve encountered an error that is preventing us from verifying if the JavaScript snippet is working on this page.”
This article explains what this error means and what you do to troubleshoot the error.
What does a 403 error mean?
You will see this error message when CallRail has received an HTTP status code of “403: Forbidden”. This means the server understood the request, but will not fulfill it because access is blocked on the client side. Typically this means that your (or your proxy or host’s) security settings are blocking our ability to perform the JavaScript snippet test. Security settings that might block this test include:
- Firewall settings
- Server configuations
- Authentication permission (i.e., a captcha on the page to block access from bots.)
Please note: this error does not necessarily mean that the JavaScript snippet is not working properly. It just means we cannot verify that the JavaScript snippet is working correctly.
How can I fix it?
The most common reason for a 403 error is that your security settings are blocking the user-agent used to test the JavaScript snippet.
Follow the instructions below to ensure the user-agent is not being blocked.
- Check your security settings and server configuration to see if you are blocking access to user-agents that are suspected to be bots.
- Allow the user-agent CallRail-CheckBot.
If these steps do not fix the error, you might need to look into your security settings further to find the cause.
You can find more information on installing the JavaScript snippet and how it works here.