# Install on Kajabi

> Add Reveata to a Kajabi site and its checkout pages, serve it from your own subdomain, and get Kajabi sales into your revenue.

Kajabi has two places for scripts: **Header page scripts** for your site, and **Checkout tracking code** for checkout pages, which don’t run the site’s scripts. Add the snippet to both.

Copy the snippet from your Reveata dashboard (it contains your website’s tracking id):

```html
<script
  defer
  data-website-id="ws_your_tracking_id"
  src="https://reveata.com/js/script.js"
></script>
```

## Add it to your site

1. In Kajabi, go to **Settings → Site details**.
2. Under **Page scripts**, paste the snippet into **Header page scripts**, then **Save**. It runs on your website pages, landing pages, sales pages and in the members’ area.
3. Go to **Settings → Checkout** and paste the same snippet into the header box of **Checkout tracking code**, then **Save**. Checkout pages are now counted too, so funnels can show who reached checkout.

Kajabi’s upsell pages and a few system pages (such as account creation) run neither field, so they aren’t counted.

In Reveata, add the website with the address visitors use: your custom domain, or your `.mykajabi.com` address. If your checkout runs on another address than your site, add it under **Settings → General → Additional domains**.

## Serve it from your own subdomain

Kajabi can’t run proxy code, but with a custom domain the [managed proxy](https://reveata.com/docs/managed-proxy) needs none: add one DNS record (for example `stats.example.com`) where your domain’s DNS is managed, then replace the snippet in both fields with the new one Reveata gives you.

## Revenue

Reveata has no Kajabi integration, and a Kajabi checkout can’t carry the visitor id. Sales still reach Reveata, and are credited to visits by the buyer’s email:

- **Your own Stripe account.** If you connected Stripe in Kajabi (not Kajabi Payments, which uses an account Kajabi manages), connect the same account in Reveata.
- **Kajabi webhooks** (Growth and Pro plans). Send each **Payment Succeeded** event to the [Payments API](https://reveata.com/docs/payments-api) from a small server function or a no-code tool.

Then identify people when they opt in on your site, so the email links the sale to their visits. The steps, with code, are in [Revenue from Kajabi](https://reveata.com/docs/revenue-kajabi).

## Check it works

1. Open your site in a normal browser window with ad blockers turned off for it.
2. Open **Realtime** in Reveata: your visit appears within a few seconds.
3. Open a checkout page: it appears too.
4. If nothing arrives, follow [Verify your installation](https://reveata.com/docs/verify-your-installation).

## Goals

Count purchases with a goal that needs no code: in Kajabi, set an offer’s **Post-purchase** step to a landing page of your own (a thank-you page), then in Reveata use **Goals → Add goals → Page visit, no code** with that page’s path. For clicks, add `data-reveata-goal="signup"` to a link or button in a custom code block. See [Custom goals](https://reveata.com/docs/custom-goals).

## Common pitfalls

- **Only the site header.** Without the checkout tracking code, visits stop at checkout and funnels look like nobody bought.
- **Turned off per offer.** An offer’s checkout can switch the tracking code off (**Include header/footer tracking code**). Leave it on.
- **Counting sales twice.** Use the Stripe account or webhooks, not both, for the same sales.
- **Kajabi Payments.** Its payments are not in a Stripe account you can connect: use webhooks.
