Setup Convrs in 4 steps

Convrs works on any website, you just need a simple script file that's on every page

1
Install tracking script

Add the script to your website inside the <head> of every page.

Replace data-website-id with your project token.

1
2
3
4
5
6
<script
  defer
  data-website-id="dfid_******"
  data-domain="your_domain.com"
  src="https://datafa.st/js/script.js"
></script>
2
Track goals

Track important user actions like signup, checkout, or button clicks.

1
window?.convrs("signup");

Track with metadata

1
2
3
4
window?.convrs("initiate_checkout", {
  plan: "pro",
  price: 49,
});

Use metadata to segment users, analyze funnels, and improve attribution.

3
Track button clicks (no JS needed)

You can track events directly using HTML attributes.

1
2
3
<button data-fast-goal="initiate_checkout">
  Buy Now
</button>

With custom parameters

1
2
3
4
5
6
7
<button
  data-fast-goal="initiate_checkout"
  data-fast-goal-plan="pro"
  data-fast-goal-price="49"
>
  Subscribe
</button>
4
Ensure reliable tracking (recommended)

Add this snippet before the main script to queue events early.

1
2
3
4
5
6
7
8
<script id="convrs-queue">
  window.convrs =
    window.convrs ||
    function () {
      window.convrs.q = window.convrs.q || [];
      window.convrs.q.push(arguments);
    };
</script>

This ensures events are not lost if triggered before the script loads.

5
Track revenue

To attribute revenue correctly, connect your payment provider.

Do not track payments as normal goals.

See: /docs/revenue/stripe