Cashline

Docs

Google Tag Manager

GTM is fine as a loader. Cashline still talks to your collect endpoint from the browser. Do not use a GTM preview as proof of revenue.

Custom HTML tag

Trigger: All Pages. Tag type: Custom HTML.

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

Purchase tag

Fire only on a trigger that means the processor confirmed payment — not on the checkout button click. Pass amount and reference from the data layer if you already put them there.

<script>
  cashline('purchase', {
    amount: {{dlv - value}},
    currency: 'ZAR',
    reference: {{dlv - transaction_id}}
  });
</script>