Troubleshooting the snippet

Nothing shows up in the portal

  • Wait a minute and reload the portal: numbers are cached for up to 60 seconds.
  • Confirm the script is on the published site, not only in your local copy. Check that it works with the browser’s developer tools.
  • An ad blocker or a privacy extension in your own browser can block the request. Test in a private window with extensions disabled.
  • Check that you didn’t turn off counting in this browser (below), and that your browser doesn’t send Global Privacy Control (below).
  • If the snippet has data-consent="required", nothing is counted until you accept in the site’s consent banner. See Consent and opt-out.

The script loads but /e is blocked

If your site sends a Content-Security-Policy header, allow the service in both directives: script-src https://analytics.writechoice.io and connect-src https://analytics.writechoice.io.

The /e response is {"disabled":true}

The site key is wrong, or the site has been disabled. Copy the code again from Settings → Install, or contact WriteChoice. It’s also the answer to a browser that sends Global Privacy Control (below).

My own visits don’t show up, but others do

Your browser may be sending Global Privacy Control (some browsers do it by default, others through a privacy setting or an extension). The snippet doesn’t measure such browsers, and the service discards what they send: the /e request is not made, or its response is {"disabled":true}. Test in a browser without it. In the developer tools console, navigator.globalPrivacyControl is true when it’s on.

I don’t want my own visits counted

Run this once in the browser console on your site. It applies to that browser only:

wca.optOut()

To count your visits again: wca.optIn().

Visits from automated tools don’t appear

That’s intended. Requests from known bots, crawlers and monitoring tools are not counted.

The heatmap shows a blank background

Your site doesn’t allow being shown inside the portal. See Heatmap preview.