Export your data
Take a site's events, the days imported from other tools and its labels out of mettr as a zip, on every plan, within the plan's history. What each file holds, field by field.
Your data is yours to take. An export holds every event of the days you pick, with all mettr keeps about it, the days you imported from other tools and the site's labels, in one zip. It comes with every plan, Free included, as far back as the plan keeps history.
Export a site
- Open the site's Settings, then Export, and choose New export.
- Pick the days: by default all your plan keeps, up to today.
- Choose Start export.
The export is written in the background; the page shows how many events have gone in, and you get a notification and an email when it is ready, or if it could not be finished. Download zip gives you the file. It is kept for 7 days, then deleted; Delete removes it sooner. One export of a site is written at a time.
Only people who manage the site can export, as an export holds every event with your users' ids. Starting, downloading and deleting an export are recorded in mettr's audit log.
What is in the zip
| File | What it holds |
|---|---|
events/YYYY-MM.ndjson.gz |
Every event of the month, one JSON object a line, oldest first. Months follow the site's time zone |
imported.csv.gz |
The days imported from other tools, as their sums, if the site has any |
site.json |
The site's name, domains and time zone, the days exported and the site's labels |
README.txt |
What the files are, and a link to this page |
The .gz files are gzip: open them with gunzip, zcat, or any language's gzip reader. Each is written in pieces, as gzip allows (one member after another); gunzip, Python's gzip, Node's zlib, Go and DuckDB read them as one file.
unzip mettr-docs-2026-01-01-2026-12-03.zip zcat events/2026-11.ndjson.gz | head -n 3
Events
Each line is one event. A field with no value is left out.
| Field | What it is |
|---|---|
id |
mettr's id of the event |
ts |
When it happened, UTC, to the millisecond (2026-11-02T08:00:00.250Z) |
type |
pageview, event, error, revenue, engagement, vital or crawl, as the Events API tells them |
name |
The event's name: signup, a status code, a vital |
url, path, referrer |
The page and where the visit came from, secrets taken out |
source, utm_source, utm_medium, utm_campaign, utm_term, utm_content |
The source as mettr names it, and the campaign tags |
source_id |
Your own id of an event sent through the Import API |
visitor_hash, session_hash |
The visitor of the day and the visit, as hashes that change every day |
user_id |
Your own user id, when you sent one |
country, region, region_code, city, city_id, lat, lon |
Where the visit came from: ISO codes, the city's GeoNames id and its centre, never the address |
asn |
The network it came from |
device, browser, os |
What it was seen on |
bot_reason |
Why mettr took it for a bot; such events are left out of the dashboard but kept |
props |
Your event's properties, as sent |
revenue_amount, revenue_currency |
A payment's amount (a decimal, as text) and its currency |
mettr keeps no IP address and no user agent, so an export has neither: the place and the device are already worked out. That is also why an export is not in the shape of the Import API, which takes the raw address and user agent.
Imported days
imported.csv.gz has a header row and these columns:
| Column | What it is |
|---|---|
day |
The day, on the site's clock |
tool |
Where it came from: ga4, plausible, simple_analytics, umami, matomo, goatcounter |
type, name |
pageview, event or all, and an event's name |
dimension, value |
The field a row breaks down by and its value; both empty for the day's totals |
country, code |
A region's or a city's country, and its ISO or GeoNames code |
count, visitors, visits |
The sums of that day |
bounces, seconds |
Bounced visits and the visits' seconds, empty where the tool does not count them |
Copy to S3 or BigQuery
On Business, a manager connects a site to an Amazon S3 bucket or a BigQuery table under its settings, Export, and mettr copies its events there every hour: a few minutes past, everything up to the hour just ended. The events are the export's, field for field (Events), bots with their reason. Tick Copy the history the plan keeps first to start with the past, or the copy starts from the moment you connect. A site has up to five destinations.
The key is tried before anything is kept: mettr writes a small file to the bucket, or makes the table in the dataset, and tells you on the form what failed. Keys are kept encrypted and never shown again.
Amazon S3. Give the bucket, its region, a folder if you like, and an access key whose policy allows s3:PutObject on that folder, no more. Each hour's events land as gzipped NDJSON at folder/events/dt=YYYY-MM-DD/<first event>.ndjson.gz, a folder a day in UTC, as Athena, Glue and most warehouses read partitions. A file written again (a run retried) replaces itself, never doubles. Only AWS's own addresses are used: S3-compatible stores with an address of their own are not offered.
BigQuery. Make a dataset, give a service account BigQuery Data Editor on it, and paste the account's JSON key; mettr keeps only its email and private key. The table (events unless you name another) is made for you, partitioned by day on ts, with a column a field; props is JSON text, read with JSON_VALUE(props, '$.plan'). Rows go by streaming insert, each with its event's id as insertId, so a row sent again within a minute or so is not kept twice.
If a copy fails (a key revoked, a bucket gone), the destination shows why under the site's settings, whoever connected it (or the team's owner) gets one email, and every hour mettr tries again from the last event copied: nothing is skipped once it is put right. Events stored after their hour was copied, such as history imported later, are not copied: export those. Removing a destination deletes its key here; what was copied stays where it is. Below Business, copies pause and pick up where they stopped on upgrading.
Where it is kept
The zip is kept private, with the storage providers named among our subprocessors, until it expires. Every download first checks that you manage the site; a link to the file itself, where there is one, works for five minutes.
Delete everything
To remove the data from mettr once you have it, delete the site (its settings, General, Danger zone): its events and exports go at once. See privacy and your data.
Updated · This page as Markdown · Something unclear? [email protected]