Docs
← Back to site

Query

1 min readUpdated November 11, 2026

The Query tab (agency only) runs your own SQL over a website’s visits. It reads only, returns up to 1,000 rows, and offers examples such as Visits by hour of day and Landing pages that sell. Use :from and :to for the period chosen. Tables and columns lists what you can query: sessions, hits and people.

SELECT entry, COUNT(*) AS visits
FROM sessions
WHERE started >= :from AND started < :to
GROUP BY entry ORDER BY visits DESC
The Query tab with an example query and its result

Was this helpful?