Zarstat

Docs

Django

Django has no official app. Paste the snippet in the base template. Do not invent pageviews in a view. Amount is rand. zarstat() is an alias for cashline().

Markdown · same page for crawlers. index, follow.

templates/base.html

Before </body> on the template every public page extends.

<script>
  window.cashline = window.cashline || function () {
    (window.cashline.q = window.cashline.q || []).push(arguments);
  };
</script>
<script src="https://YOUR_ORIGIN/cashline.js" data-site="YOUR_SITE"></script>
<script>cashline('pageview');</script>

Paystack visitor_id

Pass cashline('identity').visitor_id on Paystack initialize metadata. Fire purchase only after verify. See /docs/paystack.

const id = cashline('identity');
cashline('purchase', { amount: 199, currency: 'ZAR', reference: 'PS_REF' });