If the Blue Tracely snippet is on your pages but no visitors arrive, your website's Content Security Policy (CSP) may be blocking the script.
A CSP is a security setting that tells browsers which scripts may run on your pages and which addresses those scripts may contact. It's sent with your pages, usually as a Content-Security-Policy header, or sometimes as a <meta> tag in the page. A strict policy can block legitimate tools, including Blue Tracely, until you allow them.
Step 1: Check for CSP errors in your browser console
- Open a page of your website that carries the snippet.
- Open your browser's developer tools: right-click the page and choose Inspect, or press
F12. - Open the Console panel and reload the page.
- Wait about 10 seconds, so the script has time to make its requests.
- Look for error messages that mention the Content Security Policy, for example:
Refused to load the script '<address>' because it violates the following Content Security Policy directive: "script-src 'self'".
Refused to execute inline script because it violates the following Content Security Policy directive: ...
Refused to connect to '<address>' because it violates the following Content Security Policy directive: ...
The exact wording depends on your browser. Messages like these, naming an address the Blue Tracely script loads or contacts, mean your policy is blocking it. If Test script reports "Error: We were unable to find the script on your website. Please ensure you have installed the script correctly." and you see these messages, the policy is the likely cause.
Step 2: Know what the script needs
The Blue Tracely script needs your policy to allow these things:
| What | Directive | Details |
|---|---|---|
| The snippet itself | script-src | The snippet is an inline script. Allow it the way your policy allows your other inline scripts, for example with a nonce or a hash. |
| The script file | script-src | The script loads from the address after s.src= in your snippet. Allow that host. |
| Our servers | connect-src | The script sends each visit it can report to our servers. |
| Location lookup | connect-src | The script looks up the visitor's approximate location. |
| Identity partners | script-src, connect-src, img-src | The script asks our identity partners whether they recognize the visitor's browser. Depending on the partner, this loads a script, makes a request or loads an image. |
For the exact list of hosts to allow, write to us at hello@bluetracely.com and ask for the current list for your policy. If visitor numbers drop after you change your policy, check the list with us again.
Without the requests in connect-src and img-src, the script loads but can't identify visitors or report visits, so allowing the script file alone isn't enough.
Step 3: Update your Content Security Policy
- Add the hosts and the inline-snippet permission to the matching directives in your policy.
- Deploy the change to your live website, and clear any cache your site or content delivery network uses.
Where your policy lives depends on your setup: your web server's configuration, your hosting provider's settings, a security plugin, or your application's code. If you're not sure, your web developer or hosting provider can make the change.
Final check
- Reload your website and open the Console again. The CSP errors about Blue Tracely should be gone.
- On the Script page, select Test script next to your domain.
- Wait for visitors: your domain shows Installed · last signal once a visit has been reported.
If you still see CSP errors, compare them with the list we sent, or forward them to hello@bluetracely.com. For other reasons the script may not run, see Troubleshooting: Script Verification Error Messages.