Revenue attribution guide

Attribute revenue with Kajabi

Make sure you've added DataFast tracking to your Kajabi site and connected your Stripe account first.

1. Access your Kajabi thank you page

  1. Log in to your Kajabi dashboard
  2. Go to Products and select the product you want to track
  3. Click Edit > Checkout > Thank You Page

2. Add the DataFast tracking code

Add this JavaScript code to your thank you page:

<script>
// Get customer email from Kajabi's checkout data
if (typeof window.datafast === "function") {
  // Kajabi usually stores customer email in the URL or page data
  const urlParams = new URLSearchParams(window.location.search);
  const customerEmail = urlParams.get('email') || 
                       document.querySelector('[data-customer-email]')?.textContent ||
                       document.querySelector('input[name="email"]')?.value;

  if (customerEmail) {
    window.datafast("payment", { email: customerEmail });
  }
}
</script>

3. Save and test

  1. Save your thank you page
  2. Make a test purchase to verify the tracking works
  3. Check your DataFast dashboard for revenue data

Alternative: Use Kajabi's custom code section

If you have access to Kajabi's theme editor:

  1. Go to Website > Themes > Customize
  2. Find the Custom Code or Footer Code section
  3. Add the tracking code there instead

After a successful purchase, you should see revenue data in your DataFast dashboard. If you don't see attribution data, contact us at marc@datafa.st.

Something missing? Suggest features ✍️