Test script is a convenience. The script collects visitors whether or not the check passes, and the Script page shows Installed · last signal once visits arrive.
Test script opens your domain's home page in a small window and waits for the script on that page to answer. Some website setups get in the way of that, even when the script works. This article covers the most common ones.
How the check works
When you select Test script, the dashboard opens https://<your domain>/ with a short code added to the address. The script on the page sees that code, answers the dashboard, and closes the window. Anything that stops the page from loading the script, or that removes that code from the address, makes the check fail.
Redirects
Redirects that drop the address code
If your home page redirects, for example to a language or region page or to a different path, and the redirect drops the code the dashboard added to the address, the script doesn't know a check is running. The window stays open, and after about 15 seconds the check reports that it couldn't find the script.
What to do: Confirm the script some other way: see Manually Verifying Your Script Installation. If your redirects can keep the address's query string, the check works again.
Redirects to another domain
A redirect from your domain to its www address, or the other way around, is fine. A redirect to any other address, such as a different domain or a subdomain, isn't: if the script answers from there, the check reports "Error: The authorized domain does not appear to match."
What to do: Add the domain your visitors actually land on as a domain of its own, install its snippet there, and test that domain. See Add Multiple Domains to Your Blue Tracely Account.
Domain structure
The check always opens your domain without www, and only its home page:
- The snippet is only on some pages. If your home page doesn't carry the snippet, the check fails, even if other pages report visitors. Install the snippet on every page, ideally in a shared header template.
- The snippet is on a subdomain. A domain covers
https://<your domain>andhttps://www.<your domain>only. A site such asapp.example.comisn't covered byexample.com: visits there aren't reported, and the check doesn't look there. Add the subdomain as its own domain and install the snippet made for it. - Your site only answers at
www. Ifhttps://<your domain>withoutwwwdoesn't load in a browser, the check can't reach your site. Use the manual check instead.
Snippets that don't match
- More than one copy of the same snippet. This is harmless: the snippet does nothing when the script is already on the page.
- A snippet from another domain or workspace. If a page carries another snippet before yours, only the first one runs. When that's the wrong one, the check reports "Error: The website is running a different version of our script. Please validate that the script is installed properly and try again." Remove the snippets that don't belong to this domain.
- A plain script tag instead of the snippet. A page that loads the script file directly, without the snippet, gets the same "different version" error. Replace it with the snippet from the Install page.
Frames
The script only runs in the top page. A snippet placed in an embedded frame, such as some website builders' embed boxes, doesn't work and doesn't answer the check. Put the snippet in the page's <head> instead.
Cookie consent tools
- The snippet loads before anyone answers the banner, as in the usual CookieYes setup, where the script itself waits for consent before collecting: the check works without accepting. Answering the check doesn't depend on consent.
- Tools that hold the snippet back until consent, such as a Google Tag Manager consent trigger: the script isn't on the page until someone accepts. Accept the banner in the window the check opens, or accept it on your site in the same browser first, then run Test script again.
See Troubleshooting: Cookie Policy Banner Blocking Blue Tracely.
Other causes
- The domain is inactive. While a domain is under Inactive domains, its script isn't served, so the check can't find it. Select Make active.
- The script couldn't be published. If the domain shows "Script could not be published," select Retry publishing.
- Caching and unpublished changes. Clear your site's and your content delivery network's caches, and publish your website builder or tag manager changes.
- Delayed scripts. Plugins that load scripts only after the visitor scrolls or clicks stop the script from answering. See Why WP Rocket's "Delay JavaScript Execution" Can Break Blue Tracely Visitor Identification.
- A Content Security Policy. See Troubleshooting: Check for Content Security Policies (CSP) Issues.
Solution: confirm that the script works
The quickest proof is in the dashboard:
- On the Script page, check the line under your domain. Installed · last signal means visits are being reported.
- Look for new visitors under Person-level visitors and Company-level visitors.
If neither shows activity yet, check a page in your browser as described in Manually Verifying Your Script Installation: that the snippet is in the page's <head>, that the script file loads, and that the script starts.