Appearance
Analytics Events
Pro & EnterpriseAnalytics requires a Pro or Enterprise subscription.
Compare plansDetailed reference for all trackable events and their parameters.
Event Types
Area Events
| Frontend Event | Backend Mapping | Allowed Parameters |
|---|---|---|
areaClick | area.click | id, name, floor |
areaHover | area.hover | id, name, floor |
areaFocus | area.select | id, name, floor |
areaBookmark | area.select | id, name, floor |
Marker Events
| Frontend Event | Backend Mapping | Allowed Parameters |
|---|---|---|
markerClick | marker.click | id, name, floor |
markerHover | marker.hover | id, name, floor |
markerInfoOpen | marker.select | id, name, floor |
Floor Events
| Frontend Event | Backend Mapping | Allowed Parameters |
|---|---|---|
floorChange | floor.switch | id, name, floor, fromFloor, toFloor |
floorZoomFocus | floor.select | id, name, floor |
floorLoad | floor.select | id, name, floor |
Search Events
| Frontend Event | Backend Mapping | Allowed Parameters |
|---|---|---|
searchQuery | search.query | query |
searchResultClick | search.select | query, id, name |
searchNoResults | search.query | query |
Wayfinding Events
| Frontend Event | Backend Mapping | Allowed Parameters |
|---|---|---|
routeRequest | wayfinding.route | id, name, floor, originId, originName, originLevelId, originType, destinationId, destinationName, destinationLevelId, destinationType |
Button Events
| Frontend Event | Backend Mapping | Allowed Parameters |
|---|---|---|
customButtonClick | button.click | id, name, floor, label, url, lang |
Fires when a visitor taps the custom action button on an object card — the one conversion a map has. id / name / floor identify the place, label is the button text the visitor saw and url where it led.
Other Events
| Frontend Event | Backend Mapping | Allowed Parameters |
|---|---|---|
zoomIn | zoom.in | (none) |
zoomOut | zoom.out | (none) |
zoomChange | zoom.change | (none) |
panMove | zoom.change | (none) |
languageSwitch | language.switch | from, to |
viewSwitch | view.switch | from, to |
share | share.link | kind, id, name, from, to, mode, method |
componentLoaded | general.componentLoaded | device, language |
componentUnmounted | general.componentUnmounted | (none) |
interactionTime | general.interactionTime | durationMs |
componentLoaded carries device (mobile, tablet or desktop, decided by the embed from the pointer type and screen size) and language (the browser's BCP 47 tag, reduced to its primary subtag on the server: de-CH → de). Anything else is stored as unknown. The page the map was embedded on is not a parameter: it is taken from the ?parent= hostname the iframe already forwards for domain checks, so it cannot be set from the body. These three, one per map open, feed the Devices, Browser languages and Embedding sites widgets. interactionTime.durationMs is the time the map's tab was visible — the embed stops the clock while the tab is hidden — capped at one hour per visit when averaged.
Submitting Events
Events are submitted via the public API:
http
POST /api/p/{project_id}/analytics/
Content-Type: application/json
{
"sessionId": "9f2c1c6f0b1d4e7a8c3b5d6e7f8a9b0c",
"events": [
{
"event": "areaClick",
"params": {
"id": "area-uuid",
"name": "Coffee Shop",
"floor": "floor-1"
},
"timestamp": "2024-04-12T14:30:00Z"
}
]
}Session id
sessionId is a random token the map draws once per page load and sends with every batch of that visit. It lets the dashboard tie a visit's events together — engaged sessions, the session funnel, routes that never reached their destination floor — and nothing more: it is kept in memory only (no cookie, no storage), so it cannot recognise a returning visitor, and a page restored from the back/forward cache starts a new one. Accepted values are 8–64 characters of A–Z a–z 0–9 _ -; anything else is stored as empty. Events without a session id are counted everywhere except in the per-session widgets.
Parameter Notes
nameis the entity title in the project's default language. Reports fall back to the current title stored on the area/marker when an event has noname.- For
floorChange,flooris the destination level (fromFloor/toFloorrecord the transition). Reports group floor events byfloor. - The zoom buttons emit
zoomIn/zoomOut; wheel and pinch zoom emitzoomChange. languageSwitchfires when a visitor uses the map's language button;fromandtoare language codes (it→nl). A language set by the page (lang,setLanguage()) is not an event — only the visitor's own switch.viewSwitchfires when a visitor uses the map's 2D / 3D button;fromandtoare2dor3d. A view set by the page (view,setView()) is not an event — only the visitor's own switch.sharefires when a visitor uses the map's Share button.kindisplace(with the place'sidandname) orroute(withfrom,toand, on a map with several route modes,mode);methodisnative(the system share sheet),clipboard(the link was copied),manual(shown to copy by hand) orqr(shown as a QR code). A share sheet the visitor closed is not an event.customButtonClickcarries theurlthat was opened — with{lang}filled in, or the language's own link — andlang, the language the map was in: which language's booking page gets the taps.- For
routeRequest,originType/destinationTypeareareaormarker. The route report resolves each endpoint against both tables rather than trusting the type, so these are stored for consumers of the raw event log (/analytics/events/), which otherwise cannot tell an area id from a marker id. componentLoadedfires once the map is up and its configuration has loaded;componentUnmountedandinteractionTimefire when the visitor leaves — including when they simply close the tab, not only on an SPA unmount.areaFocusfires when a visitor selects an area from search, a deep link or the SDK.areaBookmarkshares the samearea.selectdefinition but is raised only by the editor, so embedded maps never send it.
Parameter Validation
- Only whitelisted parameters for each event type are accepted (see tables above)
- Text is cut to a length by kind: ids (
id,originId,destinationId, the level ids,from,to) 100 characters; names and floors 255;tagsandurl500; short labels (mode,kind,method,source,lang,device,language,originType,destinationType) 40; everything else 200. These are the lengths the editor allows, so nothing the map itself sends is cut - Numbers must be finite, and whole numbers within ±2^53 (what a browser sends exactly); others are dropped
- Only
string,numberandbooleanvalues are kept — no lists or objects - Unknown event types are silently ignored, and so is an event of the wrong shape: the rest of its batch is recorded
Daily Limits
Per project and UTC day there are two: the plan's event quota (500,000 events on Pro, 5,000,000 on Enterprise) and a storage budget for the raw rows — the quota × 400 bytes, counting each row's ids, names and params. A raw row takes 60–220 bytes and a route request about 550, so a map that fills its event quota in ordinary use stays inside the storage budget; it is there for rows filled to the limit of every field.
Once either is spent, the rest of that day's events are not recorded — the endpoint keeps answering 204 — and the dashboard's Dropped events widget counts them.
What Is Stored
Every accepted event — except the hover events below — is added to the project's daily totals (the dashboard's counters, "All events" and /analytics/stats/). An individual raw row — kept 30 days, with its params — is written only for events a report reads one by one:
| Events | Raw row | Read by |
|---|---|---|
componentLoaded | yes | map opens and visits for a chosen day, engaged sessions |
interactionTime | yes | time on the map for a chosen day, activity by hour |
areaClick, markerClick, searchResultClick | yes | picks, most picked places, not picked, funnel |
searchQuery, searchNoResults | yes | top searches, searches with no result |
routeRequest | yes | top destinations, top routes, unfinished routes |
customButtonClick | yes | buttons by place, funnel |
floorChange, floorZoomFocus | yes | floor views and switches, unfinished routes |
floorLoad | only on maps with more than one level | floor views, unfinished routes |
zoomChange, zoomIn, zoomOut, panMove, filterApply, languageSwitch, viewSwitch, share, areaBookmark | yes | zoom and pan per hour of a chosen day, busy hours |
areaHover, markerHover, markerInfoOpen | not recorded — no raw row, no daily total, no quota | desktop mouse traffic, never on a phone (markerInfoOpen fires when a hover shows a marker's tooltip). Still dispatched on <layota-map> for the embedding page when enabled |
areaFocus | no — daily total only | it repeats the search pick or deep link that selected the area |
componentUnmounted | no — daily total only | interactionTime carries the visit's end |
A raw row keeps id, name and floor in its own columns rather than again in params; /analytics/events/ returns them inside params as before. The postMessage / SDK events themselves are unchanged — this is only about what the server keeps.
SDK Events vs Analytics Events
Analytics events are tracked automatically by the embedded map. They are separate from SDK events (areaClick, markerClick, etc.) which are dispatched to your application code.