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
- Log in to your Kajabi dashboard
- Go to Products and select the product you want to track
- 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
- Save your thank you page
- Make a test purchase to verify the tracking works
- Check your DataFast dashboard for revenue data
Alternative: Use Kajabi's custom code section
If you have access to Kajabi's theme editor:
- Go to Website > Themes > Customize
- Find the Custom Code or Footer Code section
- 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.