Revenue from Kajabi
View as MarkdownWhat Reveata can and cannot attribute for Kajabi sales, and how to get them into your revenue reports.
On this page
Reveata has no Kajabi integration, and Kajabi creates its checkouts itself, so the visitor id cannot travel with a Kajabi purchase. The snippet can still count visits to checkout pages, through Settings → Checkout → Checkout tracking code (Install on Kajabi). Kajabi sales can still reach Reveata and be credited to visits, through the buyer's email. This page explains the two routes and their limits, so you can pick the one that fits.
Route 1: connect the Stripe account behind Kajabi
If your Kajabi sales are charged through a Stripe account you own and can log in to, connect that account in Reveata (Settings → Payments → Stripe, with a restricted key or Connect with Stripe). Reveata imports the payments, renewals and refunds of that account, and receives new ones within seconds.
Check first: open your Stripe dashboard and look for a recent Kajabi sale. If it isn't there, this route does not apply; use route 2. That is the case for Kajabi Payments, which runs on an account Kajabi manages rather than one you can connect, and for PayPal.
Everything else that account takes is imported too, so this works best when the Stripe account is only used for Kajabi.
Route 2: send each sale with the Payments API
Kajabi sends a webhook for every payment on the Growth and Pro plans. In Kajabi, open Settings → Integrations & Webhooks (or an offer's Purchase Webhook URL) and point the Payment Succeeded event at a server function you control. That event fires for first payments, renewals and cart orders. Its data includes the amount (amount_paid_decimal, in major units), the currency, the transaction id and the member's email. With several order bumps, Kajabi can send one event per offer for the same transaction: use the transaction id as transactionId so the sale is stored once, and check that the amount is the order's total (Kajabi's webhook reference names the total fields).
Forward each one to the Payments API with the buyer's email:
// Inside the function that receives your purchase notification.
// purchase.* stands for whatever fields your notification contains.
await fetch('https://reveata.com/api/v1/payments', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.REVEATA_SITE_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
transactionId: `kajabi_${purchase.id}`, // unique per sale: retries are then safe
amount: purchase.amount, // major units, without tax, e.g. 97.00
currency: purchase.currency, // e.g. "USD"
email: purchase.email,
}),
});Create the website API key (dt_site_…) in Settings → Developer and keep it on the server. A no-code tool that can send an HTTP POST with custom headers can do the same. Reveata's own Zapier and Make apps don't have a payment action, so they can't.
Pick one route per sale. If you connect Stripe and also send the same sales through the API, they are two different payments to Reveata and are counted twice.
Link sales to visits: identify buyers by email
Both routes give Reveata the buyer's email. A sale is credited to a visit when that email belongs to a visitor you identified on your site. The usual moment is an opt-in form on a page where you can add code, before people buy:
<script>
document.querySelector('#optin-form').addEventListener('submit', function (e) {
var email = (e.target.querySelector('input[type=email]') || {}).value;
if (email && window.reveata) {
email = email.trim().toLowerCase();
window.reveata('identify', { userId: email, email: email });
}
});
</script>Replace #optin-form with your form. Then:
- The sale is credited to that visitor's visits, following your attribution model, including the visit that first brought them.
- If the sale arrives before the person is identified, Reveata retries unattributed payments every hour for 90 days.
- Matching by email from the browser uses Match payments using browser identify calls in Settings → Payments, on by default.
Only identify people when your privacy policy covers it. See Identify visitors.
Limits
- Buyers who never gave their email on a page with the snippet stay unattributed. Their sales still count in revenue.
- When the same email is identified on several devices, the most recently seen one gets the credit.
- Tracking visits works without any of this: only the revenue link needs it.
Check it works
- Open your site in a private window from a link ending in
?ref=test, and submit your opt-in form. - Buy a cheap offer with the same email (refund it afterwards if you like).
- Within the hour, the sale appears under Revenue with the source
test.