Skip to content

Analytics Export ​

Pro & EnterpriseAnalytics requires a Pro or Enterprise subscription.
Compare plans

Take a map's analytics out of Layota — as a file from the dashboard, or through the API into your own reports and BI tools.

From the Dashboard ​

Go to Dashboard → Analytics, select a project and a period, then Export:

  • Excel — one workbook, a sheet per table.
  • CSV — a zip with one .csv file per table (UTF-8, opens in Excel and Google Sheets).
  • JSON — all tables in one file.

The file covers the project and the period on screen — a preset (7d, 30d) or the days chosen in the calendar, in your timezone — and its totals are the ones the dashboard shows for that period.

Tables ​

TableOne row perColumns
summaryfiguremetric, value — the project, the period and its totals: map_opens, visits, engaged_visits, visits_with_a_pick, visits_with_a_route, visits_with_a_button_tap, picks, map_clicks, searches, button_taps, total_interactions, avg_time_on_map_seconds
dailydaydate, map_opens, area_clicks, marker_clicks, search_picks, searches, searches_without_results, level_switches, zoom_events, button_taps
eventsday and eventdate, event, count — every event counted that day
placesarea or markerplace_id, name, level, kind, clicks_on_map, picks_from_search, picks
searchessearch textquery, searches, picked_a_result
searches_without_resultssearch textquery, searches, last_at (UTC)
routesfrom → to pairfrom_id, from_name, from_level, to_id, to_name, to_level, requests
destinationsroute destinationplace_id, name, level, routes
buttonsplace with a card buttonplace_id, name, level, button, taps
levelslevellevel, views, switches, share_percent
languages, devices, sitesvaluevalue, map_opens

Notes:

  • Every day of the period has a row in daily, with zeros on a day without visits.
  • Places carry their id next to the name, so an export made after a place was renamed still joins with an earlier one. Names are the current ones, in the project's default language.
  • Lists are complete up to 5,000 rows each (the dashboard shows the top of them).
  • No personal data: Layota stores no IP addresses or cookies, and the export holds counts, place names and search texts only.
  • History: a day can be exported for as long as the dashboard can show it — 90 days back by default, longer when your organization keeps analytics longer (see Data Retention). A year takes a few seconds to prepare.

Through the API ​

http
GET /api/projects/{project_id}/analytics/export/?days=30
Authorization: Bearer <token or API key>

Unlike the dashboard endpoints, the export also accepts a writeAPI key of the project's organization, so a script can pull it on a schedule. A read key is refused: read keys are part of the embed code on your public page, and your statistics should not be. With a JWT the caller must be an owner or admin.

Query parameters:

Parameter
daysThe last N days, 1–90 (default 30), in UTC days — or
from, towhole days YYYY-MM-DD (to defaults to from), with
tzthe IANA timezone those days are in (Asia/Dubai; default UTC)
formatjson (default), csv or xlsx
tableOnly this table. With format=csv it is required to get a single CSV; without it the response is a zip of all tables
bash
# One week in Dubai time, daily totals as CSV
curl -H "Authorization: Bearer sk_..." \
  "https://api.layota.app/api/projects/$PROJECT_ID/analytics/export/?from=2026-11-01&to=2026-11-07&tz=Asia/Dubai&format=csv&table=daily"
csv
date,map_opens,area_clicks,marker_clicks,search_picks,searches,searches_without_results,level_switches,zoom_events,button_taps
2026-11-01,112,96,7,31,44,5,12,80,9
2026-11-02,98,75,4,22,35,2,9,61,6

JSON response:

json
{
  "project": { "id": "f1cdf907-…", "name": "University of Sharjah" },
  "period": { "from": "2026-11-01", "to": "2026-11-07", "timezone": "Asia/Dubai", "days": 7 },
  "generatedAt": "2026-11-12T10:15:00+00:00",
  "tables": {
    "summary": [{ "metric": "map_opens", "value": 705 }],
    "daily": [{ "date": "2026-11-01", "map_opens": 112, "area_clicks": 96 }],
    "places": [{ "place_id": "3b5f92e0-…", "name": "Central Laboratories", "level": "Campus", "kind": "area", "clicks_on_map": 237, "picks_from_search": 36, "picks": 273 }]
  }
}

Responses:

StatusWhen
200The export. Files come with Content-Disposition: attachment; filename="layota-analytics-<project>-<from>_<to>.<ext>"
400Unknown format or table; from after to, a period ending in the future or starting before the oldest day kept
403The organization's plan does not include analytics, or the API key is a read key
404The project is not in the caller's organization (or the caller is not an owner / admin)

In a CSV, a text that a spreadsheet would read as a formula (starting with =, +, - or @ — search texts are typed by visitors) is prefixed with '.

Layota Documentation