> ## 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.

# X link attribution (upcoming)

> Planned: which X post or bio link sent each visitor to your site, and what they bought. Not available yet.

> [!NOTE]
>
> X link attribution is not available yet. It is listed as **Upcoming** in **Settings**, **Integrations**, with nothing to connect.

## What it will do

X sends visitors through `t.co` links, which hide the post they were clicked in. This integration will tell you which post or profile bio link sent each visitor, and, with [revenue](https://docs.crispstats.com/revenue/overview.md) connected, what those visitors bought.

## What works today

Visits from X are counted as the source **X**, and payments from those visitors are credited to it on the Revenue screen. To tell posts apart now, give each link its own UTM campaign or content tag.


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