# Zarstat docs

Cookieless first-party attribution for South African sites. The snippet stores a visitor ID in localStorage. It does not set cookies. Amount is rand, not cents. `zarstat()` is an alias for `cashline()`.

HTML twin: https://www.zarstat.co.za/docs

## Install

```html
<script src="https://YOUR_DOMAIN/cashline.js" data-site="YOUR_SITE"></script>
<script>
  cashline('pageview');
  cashline('purchase', {
    amount: 199,
    currency: 'ZAR',
    reference: 'ORD-1042'
  });
</script>
```

Guides: /docs/install/html · /docs/install/nextjs · /docs/install/wordpress · /docs/install/webflow · /docs/install/shopify · /docs/install/gtm

## Calls

- pageview
- purchase (rand, after the processor confirms)
- goal: `cashline('goal', { name: 'signup' })`
- identify: `cashline('identify', { id: 'user_1042' })`
- scroll: `cashline('scroll', { depth: 50 })`

## Read API

`GET https://www.zarstat.co.za/api/read?site=YOUR_SITE&range=7d`

Same site id as the dashboard. Overview, pages, first-touch channels. Empty sites stay empty. No extra secret. No CLI.

MCP JSON-RPC: /docs/mcp

## Paystack

Put visitor_id on initialize metadata. Verify before counting rand. See /docs/paystack.

Billing on Paystack TEST: Starter R149, Growth R299. 14-day trial, no card.
