Zarstat

Docs

Webflow

Webflow sites hosted on webflow.io or a custom domain can load Zarstat from your Zarstat origin. Publish after you save custom code.

Markdown · same page for crawlers. index, follow.

Footer code

Site settings → Custom code → Footer. Paste the queue, script, and pageview. Publish the site.

<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>

Form goals

On a form success page, add an embed that fires cashline('goal', { name: 'signup' }). Do not fire it on every page load of the form itself.

Paystack visitor_id

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

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