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

# Show GitHub commits on the traffic chart

> Connect the CrispStats GitHub App to one repository and branch. Each commit becomes a marker on the Overview chart, so you can see what shipped next to what your traffic did.

Connect GitHub and every commit on one branch of one repository becomes a marker on the Overview chart. Hover a marker, or focus it with the keyboard, to read the commit titles; each one opens the commit on GitHub.

| | |
| - | - |
| You connect | The CrispStats GitHub App, installed on your account or organization |
| It reads | Contents and metadata, read only |
| History | The last 90 days of commits on the chosen branch, up to 1,000 |
| New commits | Within seconds of a push, by webhook |
| Shown on | The Overview chart of the site you connected, for people in your workspace |

## Set it up

You need to be an owner or admin of the site.

1. Open **Settings**, then **Integrations**, and find **GitHub**.
2. Select **Connect GitHub**. GitHub asks where to install the app and which repositories it may read. Choose only the repositories you want on the chart.
3. Back in CrispStats, choose the repository. Its default branch is selected for you; pick another branch if you deploy from one.
4. Select **Show these commits**. The last 90 days appear on the chart straight away.

If you belong to a GitHub organization but cannot install apps there, GitHub sends a request to the organization's owners. Connect again once they approve it.

## What the app can read

The app asks GitHub for two permissions, both read only:

* **Contents: read.** To list commits on the branch you choose.
* **Metadata: read.** To list the repositories you shared with it and their branches.

It cannot push, open pull requests, read issues or change settings. It only sees the repositories you shared with it when you installed it.

## What is stored

For each commit on the chosen branch, CrispStats keeps:

* the commit's id (its SHA)
* the first line of its message, cut to 120 characters
* the time it was committed
* the link to the commit on GitHub

It does not keep the rest of the message, the author's name or e-mail, or any code or diff. For the connection itself it keeps the installation id, the GitHub account name and the repository and branch you chose. The sign-in token GitHub gives during setup is used once, to check that your GitHub account can see the installation, and then discarded.

A commit is stored once, however many times it is pushed. A forced push that rewrites history leaves the commits already on the chart in place and adds the new ones. Pushes to other branches, tags and deleted branches are ignored.

## Private repositories

Private repositories work the same way. Their commit titles are visible to everyone in your workspace who can see the site, so check the titles you write if the repository holds things your workspace should not read.

## Public dashboards and embeds

Commit markers never appear on a [public dashboard](https://docs.crispstats.com/share/public-dashboard.md) or an embed, even when the dashboard shows the chart. Commit titles can describe unreleased work, so they stay inside your workspace.

## Turn the markers off

Switch off **Show commits on the chart** on the GitHub card. The connection stays, new commits keep being recorded, and the markers come back when you switch it on again.

## Change the repository

Select **Change repository** on the card and choose another repository or branch. The markers from the previous one are removed and replaced by the new one's last 90 days.

## Disconnect

Select **Disconnect** on the card. CrispStats removes every commit marker for the site and forgets the repository. The app stays installed on GitHub: CrispStats never uninstalls it for you. To remove it, open your GitHub settings, go to **Applications**, then **Installed GitHub Apps**, and uninstall it there. The card links to that page.

If the app is uninstalled or suspended on GitHub, or the repository is removed from it, the card says so and the markers stop. Connect again, or choose the repository again, to bring them back.

## Troubleshooting

**The repository is not in the list.** The app only sees the repositories you shared with it. Select **Repository missing? Share it with the app** on the card, add the repository on GitHub, then come back.

**A commit is missing.** Only commits on the chosen branch appear. Commits merged from another branch appear once they reach it. Commits older than 90 days at the time you connected are not imported.


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