> ## 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 web analytics product. It has no self-hosted edition, no session replay, no heatmaps, no A/B testing, no mobile SDKs and no data import except a site's history from a Plausible export (Settings, Import and export).
> 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.
> There is no npm package to install. 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.

# Export your analytics and payments as CSV files

> Download CrispStats traffic over time, breakdowns by any dimension and attributed payments as CSV files, from Settings, the Overview and the Revenue page.

CrispStats exports your numbers as CSV files you can open in Excel, Numbers or Google Sheets. There are three places to export from: **Settings**, **Import and export** for traffic over time and breakdowns, the export menu on the **Overview** for exactly what the dashboard shows, and **Export CSV** on the **Revenue** page for individual payments. Anyone in your workspace who can open the site can export.

For every event as it was recorded, one row each, download [raw events](https://docs.crispstats.com/share/raw-events.md) from the same settings tab. To bring history in from Plausible, see [import from Plausible](https://docs.crispstats.com/switch/import-from-plausible.md).

## Export from Settings

Use this when you want a whole date range without filters.

**1. Open the export tab**

Open your site, then **Settings** and the **Import and export** tab.

**2. Pick the date range**

Use the **Range** menu at the top of the **Export** panel. It defaults to **Last 30 days**. The other choices are Today, Yesterday, Last 24 hours, Last 7 days, Last 90 days, Month to date, Last month, Year to date, Last 12 months and All time.

**3. Download a file**

* **Traffic over time**: select **Download CSV** for one row per period with visitors, visits and pageviews. The period depends on the range: hours for up to 2 days, days for up to 92 days, weeks for up to 366 days and months beyond that.
* **Breakdown**: choose a dimension in the **By** menu (it defaults to **Page**), then select **Download CSV** for one row per value.

Days follow the site's timezone, which the panel names. You set it in **Settings**, **General**. When the site has imported history, traffic and breakdown files include imported days, and the panel says so.

## Export from the Overview

Use this when you want the file to match what you see, with the same range, comparison and filters.

On the **Overview**, open the download menu in the top bar. Under **Export CSV**:

* **Chart data** downloads the traffic over time for the current view.
* One item each for the **Sources**, **Pages**, **Locations** and **Devices** cards downloads the breakdown that card is showing right now, for example **Sources: channels** or **Pages: entry pages**. Switch a card's tab first to export a different dimension. The **Goals** and **Events** cards have no export item.
* **Copy link to this view** copies the page address, with the range, comparison and filters in it.

The **See all** table behind each card also has an **Export CSV** button. That file follows the table's search and sort too.

When a comparison is on, the files gain extra columns for the earlier period. See [the column reference](#traffic-over-time-columns).

## Export payments from the Revenue page

On the **Revenue** page, select **Export CSV** in the top bar. On a narrow screen the button shows only a download icon. The file holds every payment in the current range and filters, for the kind you have selected in the payments table (All, New, Renewals, One-time or Refunds). It ignores the table's page and sort: rows are in time order, oldest first. The comparison period is not included.

The button is greyed out when the range has no payments.

> [!NOTE]
>
> A payments file holds at most 50,000 rows. When the range has more, CrispStats loads the 50,000 most recent payments and then applies the kind filter. Pick a shorter range to export older payments.

## File format

All files are UTF-8 with a byte order mark, so Excel reads accented characters correctly, and use CRLF line endings. Fields that contain a comma, a quote or a line break are quoted.

Text that a spreadsheet would run as a formula, because it starts with `=`, `+`, `-`, `@`, a tab or a carriage return, gets a leading apostrophe. Paths, referrers and campaign names come from your visitors, so this keeps a crafted value from running in your spreadsheet. Numbers are written as they are.

* Money is in major units (`49.00`, not `4900`), with the currency in its own column.
* Rates are fractions: `0.42` means 42%.
* Durations are in seconds.

File names start with your domain and end with the first and last day of the range, for example `example.com-timeseries-day-2026-10-17-2026-11-15.csv`. Payment files are named like `payments-example.com-2026-10-17-to-2026-11-15.csv`.

## Column reference

### Traffic over time columns

| Column | Meaning |
| - | - |
| `period_start` | Start of the period, as an ISO 8601 timestamp. |
| `visitors` | Unique visitors in the period. |
| `sessions` | Visits in the period. |
| `pageviews` | Pageviews in the period. |
| `conversions` | Goal conversions in the period. |
| `revenue` | Revenue in the period. |
| `currency` | The currency of `revenue`. |

When the site has history [imported from Plausible](https://docs.crispstats.com/switch/import-from-plausible.md), the file from **Settings** also has an `imported` column: `true` for a period that holds imported days, `false` otherwise.

With a comparison on (Overview export only), each row also has `previous_period_start`, `previous_visitors`, `previous_sessions`, `previous_pageviews` and `previous_revenue` for the matching period.

### Breakdown columns

The first column is named after the dimension, such as `page`, `entry_page`, `country` or `utm_source`.

| Column | Meaning |
| - | - |
| first column | The value, such as `/pricing` or `Germany`. |
| `visitors` | Unique visitors with this value. |
| `sessions` | Visits with this value. |
| `pageviews` | Pageviews with this value. |
| `share_of_visitors` | This value's share of all visitors, from `0` to `1`. |
| `bounce_rate` | Share of visits that bounced, from `0` to `1`. |
| `avg_visit_duration_seconds` | Average visit duration in seconds. |
| `conversions` | Goal conversions. |
| `conversion_rate` | Conversion rate, from `0` to `1`. |
| `revenue` | Revenue attributed to this value. |
| `currency` | The currency of `revenue`. |
| `visitors_change` | Only with a comparison on. Change in visitors against the earlier period, as a ratio: `0.12` means 12% more. |

A breakdown file holds at most 10,000 rows, sorted by visitors unless the **See all** table was sorted otherwise.

You can break down by page, entry page, exit page, hostname, channel, source, referrer, UTM source, UTM medium, campaign, UTM term, UTM content, country, region, city, browser, OS, device, language, event and AI assistant.

### Payment columns

| Column | Meaning |
| - | - |
| `payment_id` | The payment's id. |
| `time_utc` | When the payment happened, in UTC. |
| `amount` | The amount in major units, with two decimals. |
| `currency` | The payment's currency. |
| `kind` | `new`, `renewal`, `one-time` or `refund`. |
| `product` | The product name, when the provider sent one. |
| `provider` | The payment provider: `stripe`, `polar`, `paddle`, `dodo`, `creem`, `whop`, `razorpay`, `freemius`, `lemonsqueezy`, `shopify`, `revenuecat`, `superwall`, `appstore`, `shopify_partners`, or `api` for the payment API. |
| `customer` | The customer's email, masked. |
| `visitor_id` | The visitor the payment is attributed to. |
| `visitor` | The visitor's name, when one is known. |
| `country` | The visitor's country code. |
| `source` | The source of the first visit that brought this customer. |
| `channel` | The channel of that first visit. |
| `campaign` | The campaign of that first visit. |
| `landing_page` | The page that first visit started on. |
| `days_to_convert` | Days from the first visit to the payment. |
| `touches` | Number of visits before the payment. |

Columns are empty when a value is not known, for example the visitor of a payment that could not be tied to a visit.

## Limits and errors

* Viewers of a [public dashboard](https://docs.crispstats.com/share/public-dashboard.md) cannot export.
* If a file cannot be built, the download returns a short text message instead of a CSV: "The export could not be built. Try again in a moment." for traffic files, or "The payments could not be loaded. Try again in a moment." for payment files. Try again, or pick a shorter range.
* To pull data on a schedule or into another tool, use the [REST API](https://docs.crispstats.com/api-reference/introduction.md) with a secret API key instead.

## Next steps

> [card] [Use the REST API](https://docs.crispstats.com/api-reference/introduction.md)
>
> Read the same numbers programmatically with a secret API key.

> [card] [Filter and compare](https://docs.crispstats.com/dashboard/filters-and-comparison.md)
>
> Narrow the dashboard before you export from the Overview.

> [card] [Attribute revenue](https://docs.crispstats.com/revenue/overview.md)
>
> Connect a payment provider so payments carry their source and campaign.


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