Zarstat

Docs

CSP

If pageviews never arrive, check Content-Security-Policy before assuming the snippet is broken.

Markdown · same page for crawlers. index, follow.

What the snippet needs

It loads one JS file and POSTs JSON to /api/collect on the script origin. No eval. No extra hosts unless you load the file from Zarstat.

script-src 'self' https://www.zarstat.co.za;
connect-src 'self' https://www.zarstat.co.za;

First-party

If you proxy /cashline.js and /api/collect onto your origin, 'self' is enough. Do not add Maps, Ads, or PageSpeed hosts — Zarstat does not call them.

Still empty

Collect also needs a real visitor_id and session_id. Ad blockers that drop third-party collect need the proxy. Hash routes need the Setup checkbox. Amount is rand.