Features · SQL query
Your own SQL, over a website’s visits.
When no report answers the question, ask it yourself. The Query tab runs your SQL over a website’s sessions, hits and people. It only reads, shows up to 1,000 rows, and downloads as CSV.

How it works
Write it, run it, download it.
Pick a period at the top, write a query, and press Run. Or start from an example and change it.
- Write
:fromand:tofor the period picked, so one query works for any period. - Examples to start from, such as Visits by hour of day and Landing pages that sell.
- Run it with the button, or with Ctrl or ⌘ + Enter.
- The result shows how many rows it found and how long it took, with a CSV button.
SELECT entry, COUNT(*) AS visits
FROM sessions
WHERE started >= :from AND started < :to
GROUP BY entry ORDER BY visits DESCSELECT path, COUNT(*) AS views,
COUNT(DISTINCT visitor) AS visitors
FROM hits
WHERE kind = 'v' AND ts >= :from AND ts < :to
GROUP BY path
ORDER BY views DESC
LIMIT 50What you can query
Three tables, and the list of every column.
Times are in milliseconds, like started and ts, and so are :from and :to. Queries are SQLite.
sessions
Each visit, such as the page it started on (entry) and when it started (started).
hits
Each page view and event in a visit, such as path, visitor, kind and ts.
people
The visitors behind the visits. Tables and columns, in the tab, lists every column you can use.
Good to know
Read only, and for your agency only.
A query can’t change or delete anything: it only reads. The Query tab is for your agency, not for clients, and a result shows up to 1,000 rows, so group or limit big questions.
Which kind of SQL is it?
SQLite. Tables and columns, in the Query tab, lists what you can use: sessions, hits and people.
Can a query change my data?
No. Queries only read.
How many rows does a result show?
Up to 1,000. For bigger questions, group the rows or add a limit.
How do I use the period I picked?
Write :from and :to in the query. They hold the start and end of the period picked, in milliseconds, like the started and ts columns.
Can my clients use it?
No. The Query tab is for your agency only.
Ask the question no report answers.
Unlimited websites, every feature, one license.