# Import, export and delete website data

> Download every event of a website as CSV, import history from Google Analytics 4 or an earlier export, and delete traffic from a range of days.

All three live in **Site settings → General**: **Import data**, and **Export all data** and **Delete data in a date range** in **Danger zone**.

## Export all data

Press **Export data**. Reveata prepares two CSV files: every pageview and event of the website, and every payment. When they are ready, usually in a few minutes, **Download events CSV** and **Download payments CSV** appear in the same row. You can leave the page meanwhile. The files are kept for 7 days; **Export again** makes new ones.

Each row is one event, with its time, type, visitor and session ids, page, referrer, channel, UTM tags, location (country, region, city), browser, device, goal name and properties, payment amount, and the user id you set with [identify](https://reveata.com/docs/identify-visitors). Admins and the owner can export, because the file contains the details of identified visitors.

## Import data

Bring in history from before you installed Reveata, so your charts start earlier:

1. Under **Import data**, pick the **Source**:
   - **Google Analytics 4**: connect Google and pick a property.
   - **Google Analytics 4 BigQuery export**, **Plausible CSV export**, **Fathom CSV export** or **Umami data export**: a file from that tool.
   - **Reveata events export**: a file from **Export data** above (CSV, or JSON with the same columns).
2. Choose the file (up to 500 MB) and press **Start import**.

The steps for each tool are in [Import your data](https://reveata.com/docs/import-your-data).

The import runs in the background. The list below shows the latest imports with the events and sessions added, sessions skipped because they were already there, and rows that could not be read. Importing the same file twice never counts sessions twice.

Plausible, Fathom and Google Analytics 4 bring daily totals rather than single visits; see [Import your data](https://reveata.com/docs/import-your-data) for what that means. Only admins and the owner can import.

## Delete data in a date range

Use this to remove a spike from a test or a misconfigured script. Only the owner can do it.

1. In **Danger zone**, press **Choose dates**.
2. Pick **From** and **To** (days in the website's time zone, up to today) and press **Delete range**.
3. Type the website's domain to confirm.

The deletion runs in the background; the row shows its progress and, at the end, how many events, visits and visitors were removed. Reports update a minute later.

What is removed and what stays:

- Removed: pageviews and custom events (goals included) on those days, the visits that started on those days, and visitors who are left with no visit and no payment.
- Kept: payments, visits that led to a payment (with their pages, so the journey to the payment stays), and all settings, including goal settings and funnels.

This can't be undone. One deletion runs at a time per website.

## Delete everything

To remove a website and all of its data, the owner presses **Delete website** in **Danger zone** and types the domain. This deletes the tracking code and every pageview, goal, payment and visitor profile, and team members lose access right away. An import or payment sync still running stops within moments, and Reveata keeps deleting the website's data until nothing is left and nothing can write to it any more. To stop tracking but keep the data for 30 days instead, use **Archive website**.

To export or delete your whole Reveata account, see [Export or delete your account](https://reveata.com/docs/export-or-delete-your-account).
