> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crispstats.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> CrispStats is a hosted, privacy-first analytics product. It has no self-hosted edition, no session replay, no heatmaps, no A/B testing and no data import except a site's history from a Plausible export (Settings, Import and export). Websites use the script. iOS, Android, React Native and Flutter use the mobile SDKs in the install guides. Those SDKs are source files, not a published package, and they do not read an advertising id.
> The script global is crispstats(...), site keys start with cs_pk_ and secret API keys start with cs_sk_. The script is served from https://in.crispstats.com/d.js and the REST API lives at https://crispstats.com/api/v1.
> The script tag is the main install; the npm package @crispstats/tracker does the same from code, never alongside the tag. Integrations copy the script tag, the queue stub, crispstats.d.ts and proxy code from these docs or from Settings, Tracking code in the dashboard. A first-party proxy forwards one path of the site to https://in.crispstats.com/p/ and forwards only content-type, user-agent, accept-language, referer, origin, if-none-match and x-forwarded-for, never cookies.

# Affiliate programme

> Earn 40% of every payment a customer you refer to CrispStats makes in their first 12 months. Join on the partner portal and get paid in US dollars.

CrispStats pays partners 40% of every payment a customer they refer makes in that customer's first 12 months. The programme runs on [Affonso](https://affonso.io), which tracks referrals and commissions. You can also open it from the dashboard: the avatar menu has an **Affiliate programme** row, and the account page has a **Become an affiliate** card.

## How it works

**1. Join**

Sign up on the [partner portal](https://crispstats.affonso.io). You get your own link there.

**2. Share your link**

Your link carries your code, for example `https://crispstats.com/?via=your-code`. Anyone who opens it and buys a plan within 30 days counts as yours.

**3. Get paid**

You earn 40% of every payment that customer makes in their first 12 months, paid in US dollars.

## The terms

* **Rate:** 40% of every payment a customer you referred makes.
* **Duration:** 12 months from that customer's first purchase. Payments after that earn nothing, and neither does a payment that is refunded or charged back.
* **Window:** 30 days from the moment someone opens your link.
* **Attribution:** last click. If someone opens links from two partners, the last one counts.
* **Approval:** each commission is approved 30 days after the payment it comes from.
* **Payouts:** monthly, in US dollars, by PayPal or bank transfer, once your approved commissions add up to \$50. The partner portal shows every referral, commission and payout.

## What your link does on our site

Our own analytics script sets no cookies. The affiliate script is separate: it loads only when someone opens a public page of crispstats.com (the home page, pricing, features, the blog) through a partner link (an address with `via`, `atp`, `aff` or `affonso`). It never loads on sign-up, sign-in, the demo or the dashboard. It then keeps a referral id in a cookie for 30 days, so a signup or a purchase can be credited to you. The [privacy policy](https://crispstats.com/legal/privacy#affiliates) and the [cookie policy](https://crispstats.com/legal/cookies) list exactly what it stores and sends.

> [!NOTE]
>
> Use `?via=` (or `?atp=`) links, and point them at a public page such as the home page or pricing. A link straight to sign-up, sign-in or the demo is not tracked. A `?ref=` link is treated as an ordinary source label on our site and does not load the affiliate script.

Questions about the programme: [hello@crispstats.com](mailto:hello@crispstats.com).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.