TapCub is live — analytics, insights and live chat, free on one platform
Help center

Which Content Security Policy rules does TapCub need?

If your site sends a Content-Security-Policy header, allow the TapCub script host in script-src and the collect host in connect-src. How to spot a block and which hosts to use.

Getting started1 min readLast updated Nov 4, 2026TapCub teamPart of Install TapCub on your website

Short answer

Add the TapCub script host (https://static.pathclue.com in the Americas region) to script-src and the collect host (https://api.pathclue.com) to connect-src. Without connect-src, the script loads but sends nothing, with no error on the page.

The rules to add

A Content Security Policy (CSP) tells the browser which hosts a page may load scripts from and send data to. TapCub needs two:

DirectiveHostWhy
script-srchttps://static.pathclue.comLoads the analytics script
connect-srchttps://api.pathclue.comSends pageviews and events

For example:

script-src  'self' https://static.pathclue.com
connect-src 'self' https://api.pathclue.com

These are the hosts for the Americas region. Other regions use the same names with a region suffix, such as static-eu and api-eu. Use the host shown in your snippet on Web analyticsConfigurationSDK code.

Extensions such as identity, autocapture, errors and replay load from the same directory as the script, so the script-src rule covers them. If you also use live chat, it needs additional hosts listed in the developer docs.

How to tell CSP is blocking

  • Realtime stays empty even though the snippet is in the page source.
  • The browser console shows a CSP violation naming script-src or connect-src.
  • The network panel shows no request to the collect host. When connect-src blocks it, the send fails silently and the page itself shows no error.

Adding the script host to script-src but forgetting connect-src is the most common mistake: the script loads, but nothing is sent.

Policies set in a meta tag or by a platform

The policy can come from a response header, a <meta http-equiv="Content-Security-Policy"> tag, a framework config or your hosting provider. Add the hosts wherever your policy is defined. If you use report-only mode first, check the reports for TapCub hosts before switching to enforcing.

Confirm it works

Reload the page, check the console for violations, then open Web analyticsRealtime. If the visit still does not appear, check that data is arriving.

See also: do ad blockers block TapCub and check your installation.

Did this answer your question?

We use your answers to fix and expand this page.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics