> For the complete documentation index, see [llms.txt](https://dev.pointr.tech/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.pointr.tech/v9/features/analytics/analytics-events.md).

# Analytics Events

An **event** is anything that a user actively does using Pointr Maps. It is how customers are interacting with our platform, searching, wayfinding, or even just browsing the map.

{% hint style="info" %}
If you have not already seen the base data we capture for every event, please refer to the [Analytics Overview](https://dev.pointr.tech/v9/features/analytics.md) section.
{% endhint %}

## Common Data Fields <a href="#persistent-data-points" id="persistent-data-points"></a>

The Configuration and Current Location fields are present at every analytics event.

<details>

<summary>Configuration</summary>

<table><thead><tr><th width="147.16015625">Field</th><th width="332.03515625">Description</th><th>Example</th></tr></thead><tbody><tr><td><code>platform</code></td><td>Whether the user is on Web, Mobile or Express</td><td>Mobile</td></tr><tr><td><code>appid</code></td><td>What app the user is coming from</td><td>com.pointrlabs.sample</td></tr><tr><td><code>clientid</code></td><td>The id of the client</td><td>29e8e3b7-303-4C45-89FD-EE57606BD5D7</td></tr><tr><td><code>userAgent</code></td><td>Browser user agent string or Mobile SDK version</td><td>MobileSDK/9.7.0</td></tr><tr><td><code>osVersion</code></td><td>OS version of the user</td><td>IOS 17.0.1</td></tr><tr><td><code>phoneMake</code></td><td>Make of the phone</td><td>apple</td></tr><tr><td><code>phoneModel</code></td><td>Model of the phone</td><td>iPhone 13</td></tr><tr><td><code>baseURL</code></td><td>BaseUrl of Pointr Cloud instance used</td><td><a href="https://example.pointr.cloud/">https://example.pointr.cloud/</a></td></tr><tr><td><code>country</code></td><td>The user's country</td><td>USA</td></tr><tr><td><code>language</code></td><td>The language of the user's device</td><td>en</td></tr></tbody></table>

Example JSON:

```json
{
 "configuration" : { 
     "platform": "mobile", 
     "appId": "com.pointrlabs.sample", 
     "clientId": "29e8e3b7-30a3-4c45-89fd-ee57607bd5d7", 
     "userAgent": "MobileSDK/9.7.0", 
     "osVersion": "IOS 17.0.1", 
     "phoneMake": "Apple", 
     "phoneModel": "iPhone 13", 
     "baseURL": "https://client_pointr_cloud_api_url/", 
     "country": "USA", 
     "language": "en" 
 }
}
```

</details>

<details>

<summary>Current Location</summary>

Location is captured whenever available for all events unless the user is off-site. We never record the location as we at Pointr respect our users' privacy.

<table><thead><tr><th width="179.50390625">Field</th><th width="367.078125">Description</th><th>Example</th></tr></thead><tbody><tr><td><code>onsite</code></td><td>Whether the user is on site or not</td><td>True (boolean)</td></tr><tr><td><code>locationType</code></td><td>What kind of technology was used for location</td><td>“Ble” (string)</td></tr><tr><td><code>sid</code></td><td>Site internal ID</td><td>1 (numeric)</td></tr><tr><td><code>bid</code></td><td>Building internal ID</td><td>1 (numeric)</td></tr><tr><td><code>lvl</code></td><td>Level index</td><td>1 (numeric)</td></tr><tr><td><code>lat</code></td><td>Latitude of the user</td><td>0.5443 (decimal)</td></tr><tr><td><code>lon</code></td><td>Longitude of the user</td><td>0.544354 (decimal)</td></tr></tbody></table>

```json
{
 "currentLocation": {
        "onsite": true,
        "locationType": "ble",
        "sid": 2,
        "bid": 4,
        "lvl": 0,
        "lat": 0.54443,
        "lon": 0.5443543
}
```

</details>

## Events <a href="#events-overview" id="events-overview"></a>

Our events and the data captured are as follows:

### Usage Analytics <a href="#usage-analytics" id="usage-analytics"></a>

<details>

<summary>Start SDK</summary>

<table><thead><tr><th width="128.96875">Event</th><th width="198.89453125">Additional Parameters</th><th>When</th></tr></thead><tbody><tr><td><code>start-sdk</code></td><td>-</td><td>Anytime the Mobile or the Web SDK is started, start-sdk action is sent. Note that for web, after start-sdk, a map is always displayed whereas for mobile, the client app that is implementing the mobile sdk does not have to initialize mapwidget to show the map. This event is only to keep track of Pointr SDKs being initialized to be utilized in client apps.<br><br>Note: Start SDK means the SDK has been started. As the app developer controls the UI of the app, this might or might not mean the end user has started using the SDK.</td></tr></tbody></table>

Example JSON:

```json
{
    "action": "start-sdk",
    "deviceId": "05d9e18a-595d-4f9f-83d6-80527823a17f",
    "timestamp": 1697784992,
    "analyticsVersion": "9.5",
    "configuration" : {
    // See configuration section
    },
    "currentLocation": {
    //  See current location section 
    }
}
```

</details>

<details>

<summary>Use SDK</summary>

#### **Use SDK** <a href="#use-sdk" id="use-sdk"></a>

<table><thead><tr><th width="116.23828125">Event</th><th>Additional Parameters</th><th>When</th></tr></thead><tbody><tr><td><code>use-sdk</code></td><td><code>action-status</code><br>- “session-start”<br>- “session-end”<br>- “activation”<br><code>mobileSessionTimeoutInSec</code><br><br>on <code>action-status</code>="session-start" if available:<br>- <code>deepLink</code><br>- <code>deepLinkParams</code> <br>- <code>deepLinkToken</code></td><td>The first time a device interacts with the Pointr SDK an “activation “event is sent, after that a “start-session” is sent once per unique <code>sessionid</code><br>“session-end” is being deprecated<br><br><code>mobileSessionTimeoutInSec</code><br>refers to the inactive time from when a session times out and a new one begins<br><br><code>deepLink</code> : full url that initiated the session<br><code>deepLinkParams</code> : resolved params from the link, including extra parameters from express links and custom analytics launch attributes<br><code>deepLinkToken</code> : the token used from <code>deepLink</code></td></tr></tbody></table>

Example JSON:

```json
{
    "action": "use-sdk",
    "actionStatus": "activation",
    "deviceId": "05d9e18a-595d-4f9f-83d6-80527823a17f",
    "sessionId": "16b4cacb-20aa-41fb-a841-0c0483c117fd",
    "timestamp": 1697784992,
    "analyticsVersion": "9.5",
    "configuration" : {
       // See configuration section
    },
    "currentLocation": {
   //  See current location section 
    }
}
```

```json
{
    "action": "use-sdk",
    "actionStatus": "session-start",
    "params": {
        "mobileSessionTimeoutInSec": 1800,
        "deepLink": "https://tech.pointr.cloud/?token=c6224535-b07b-4c4f-8ab9-2c8bcb897df9&sid=5",
        "deepLinkParams": "sid=6dff0e36-10aa-475e-bc40-f939c0460001&bid=6dff0e36-10aa-475e-bc40-f939c0460002&lvl=1&poi=6dff0e36-10aa-475e-bc40-f939c0460003&lat=51.0&lon=52.0&category=cat1&destId=6dff0e36-10aa-475e-bc40-f939c0460002&destBuilding=6dff0e36-10aa-475e-bc40-f939c0460006&destLevel=2&destLat=50.6&destLon=50.7&srcId=6dff0e36-10aa-475e-bc40-f939c0460012&srcBuilding=6dff0e36-10aa-475e-bc40-f939c0460013&srcLevel=5&srcLat=53.0&srcLon=54.0&joystick=true&accessibility=true&action=wayfind&lan=es&",
        "deepLinkToken": "c6224535-b07b-4c4f-8ab9-2c8bcb897df9"
    },
    "deviceId": "05d9e18a-595d-4f9f-83d6-80527823a17f",
    "sessionId": "16b4cacb-20aa-41fb-a841-0c0483c117fd",
    "sessionId": "16b4cacb-20aa-41fb-a841-0c0483c117fd",
    "timestamp": 1697784992,
    "analyticsVersion": "9.5",
    "configuration" : {
       // See configuration section
    },
    "currentLocation": {
   //  See current location section 
    }
}
```

</details>

<details>

<summary>Quick Access</summary>

<table><thead><tr><th width="183">Event</th><th>Additional Parameters</th><th>When</th></tr></thead><tbody><tr><td><code>quick-access</code> </td><td><code>action-status</code><br>- “selected”<br>- “expanded”<br><code>resultCount</code> (Numeric)<br><code>category</code> (String)</td><td>Any time quick access is interacted with<br>- “selected” triggers when the menu is brought into focus<br>- “expanded” triggers when a user drills into a category</td></tr></tbody></table>

Example JSON:

```json
{
    "action": "quick-access",
    "actionStatus": "selected",
    "resultCount": 12,
    "category": "dining",
    "deviceId": "05d9e18a-595d-4f9f-83d6-80527823a17f",
    "sessionId": "16b4cacb-20aa-41fb-a841-0c0483c117fd",
    "timestamp": 1697784992,
    "analyticsVersion": “9.5”,
    "configuration" : {
       // See configuration section
    },
    "currentLocation": {
   //  See current location section 
    }
}
```

</details>

<details>

<summary>Geofence</summary>

<table><thead><tr><th width="178">Event</th><th width="272">Additional Parameters</th><th>When</th></tr></thead><tbody><tr><td><code>geofence</code> </td><td><code>action-status</code><br>- “entered”<br>- “exited”<br><br><code>geofence</code> consists of:<br><code>name</code> (string)<br><code>type</code> (string)<br><code>fid</code> (guid)<br><code>eid</code> (guid)<br><code>centerLat</code> (decimal)<br><code>centerLon</code> (decimal)<br><code>coordinates</code> (collection of locations)</td><td>Any time a geofence is entered / exited</td></tr></tbody></table>

Example JSON:

```json
{
    "action": "geofence",
    "actionStatus": "entered",
    "params": {
        "geofence": {
            "geometry": {
                "type": "Polygon",
                "coordinates": [
                    [
                        [
                            29.036130959724893,
                            41.088997465407964
                        ],
                        [
                            29.036013781253416,
                            41.08899312665177
                        ],
                        [
                            29.03589773132073,
                            41.088980152169526
                        ]
                    ]
                ]
            },
            "name": "LevelGeofence1",
            "type": "level",
            "fid": "8cb7ef64-fa87-4fbc-b8a4-f21caf61dbe9",
            "eid": "MyLevelGeofence1",
            "centerLat": 22.302084532295925,
            "centerLon": 114.16707177123519
        }
    },
    "deviceId": "05d9e18a-595d-4f9f-83d6-80527823a17f",
    "sessionId": "16b4cacb-20aa-41fb-a841-0c0483c117fd",
    "timestamp": 1697784992,
    "analyticsVersion": “9.5”,
    "configuration" : {
       // See configuration section
    },
    "currentLocation": {
   //  See current location section 
    }
}
```

</details>

<details>

<summary>Change Language</summary>

| Event             | Additional Parameters | When                                                                                            |
| ----------------- | --------------------- | ----------------------------------------------------------------------------------------------- |
| `change-language` | `lan` (string)        | <p>Whenever the language is changed<br><code>lan</code> refers to the new selected language</p> |

Example JSON:

```json
{
    "action": "change-language",
    "params": {
        "lan": "gr"
    },
    "deviceId": "05d9e18a-595d-4f9f-83d6-80527823a17f",
    "sessionId": "16b4cacb-20aa-41fb-a841-0c0483c117fd",
    "timestamp": 1697784992,
    "analyticsVersion": "9.5",
    "configuration" : {
    // See configuration section
    },
    "currentLocation": {
    //  See current location section 
    }
}
```

</details>

### Rating Analytics

<details>

<summary>Rate Experience</summary>

<table><thead><tr><th width="186">Event</th><th>Additional Parameters</th><th>When</th></tr></thead><tbody><tr><td><code>rate-experience</code></td><td><code>rating</code>:<br>- ”good”<br>- ”bad”<br><br><code>Feedback</code> (string)</td><td>Anytime rate my experience is responded to by an end user across all of our SDKs we record the response.<br>Note for positive feedback we record “good”, for negative feedback we record “bad” and the feedback itself</td></tr></tbody></table>

Example JSON:

```json
{
    "action": "rate-experience",
    "params": {
        "rating": "bad",
        "feedback": "Given feedback"
    },
    "deviceId": "05d9e18a-595d-4f9f-83d6-80527823a17f",
    "sessionId": "16b4cacb-20aa-41fb-a841-0c0483c117fd",
    "timestamp": 1697784992,
    "analyticsVersion": "9.5",
    "configuration" : {
    // See configuration section
    },
    "currentLocation": {
    //  See current location section 
    }
}
```

</details>

<details>

<summary>Show Rating Popup</summary>

| Event                | Additional Parameters | When                                                                                 |
| -------------------- | --------------------- | ------------------------------------------------------------------------------------ |
| `show-rating-pop-up` | -                     | Anytime rate my experience is displayed across all of our SDKs we record this event. |

Example JSON:

```json
{
    "action": "show-rating-pop-up",
    "deviceId": "05d9e18a-595d-4f9f-83d6-80527823a17f",
    "sessionId": "2d1b25d8-5050-4c89-f82d-8aa215107d5a",
    "timestamp": 1697784992,
    "analyticsVersion": "9.5",
    "configuration" : {
    // See configuration section
    },
    "currentLocation": {
    //  See current location section 
    }
}
```

</details>

<details>

<summary>Dismiss Rating Popup</summary>

| Event                   | Additional Parameters | When                                                                                 |
| ----------------------- | --------------------- | ------------------------------------------------------------------------------------ |
| `dismiss-rating-pop-up` | -                     | Anytime rate my experience is dismissed across all of our SDKs we record this event. |

Example JSON:

```json
{
    "action": "dismiss-rating-pop-up",
    "deviceId": "05d9e18a-595d-4f9f-83d6-80527823a17f",
    "sessionId": "2d1b25d8-5050-4c89-f82d-8aa215107d5a",
    "timestamp": 1697784992,
    "analyticsVersion": "9.5",
    "configuration" : {
    // See configuration section
    },
    "currentLocation": {
    //  See current location section 
    }
}
```

</details>

### Map-Interaction Analytics <a href="#map-interaction-analytics" id="map-interaction-analytics"></a>

<details>

<summary>Display Map</summary>

<table><thead><tr><th width="186">Event</th><th>Additional Parameters</th><th>When</th></tr></thead><tbody><tr><td><code>display-map</code></td><td><code>sid</code>: (uuid) of the site shown, can be null<br><code>bid</code>: (uuid) of the building shown, can be null<br><code>lvl</code>: (numeric) of the level shown, can be null<br><code>poiInteracted</code>: poi displayed</td><td>Whenever the display map is called in the API regardless of if it is shown or not</td></tr></tbody></table>

Example JSON:

```json
{
    "action": "display-map",
    "sid": "4271edf8-0cfe-4b59-bdc1-1838e487a4ea",
    "bid": "ae469600-8020-456e-5e0c-063b3a7bb4e5",
    "lvl": 5,
    "poiInteracted": {
        "fid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "eid": "entrance-main",
        "name": "Main Entrance",
        "typeCode": "entrance",
        "centerLat": 51.5074,
        "centerLon": -0.1278
    },
    "deviceId": "05d9e18a-595d-4f9f-83d6-80527823a17f",
    "sessionId": "16b4cacb-20aa-41fb-a841-0c0483c117fd",
    "timestamp": 1697784992,
    "analyticsVersion": "9.5",
    "configuration" : {
    // See configuration section
    },
    "currentLocation": {
    //  See current location section 
    }
}
```

</details>

<details>

<summary>Map Interaction</summary>

<table><thead><tr><th width="185">Event</th><th>Additional Parameters</th><th>When</th></tr></thead><tbody><tr><td><code>map-interaction</code></td><td><code>sid</code>: (uuid) of the site shown, can be null<br><code>bid</code>: (uuid) of the building shown, can be null<br><code>lvl</code>: (numeric) of the level shown, can be null<br><code>poiInteracted</code>: poi interacted<br><br><code>duration</code> (numeric)<br><code>mobileMapSessionTimeoutInSec</code> (numeric)</td><td>Whenever the map is interacted with (pinch, zoom, pan etc)<br><code>mobileMapSessionTimeoutInSec</code> refers to the configured inactivity timeout before an interaction event ends.</td></tr></tbody></table>

Example JSON:

```json
{
    "action": "map-interaction",
    "params": {
        "duration": 382,
        "mobileMapSessionTimeoutInSec": 30
    },
    "sid": "4271edf8-0cfe-4b59-bdc1-1838e487a4ea",
    "bid": "ae469600-8020-456e-5e0c-063b3a7bb4e5",
    "lvl": 5,
    "deviceId": "05d9e18a-595d-4f9f-83d6-80527823a17f",
    "sessionId": "16b4cacb-20aa-41fb-a841-0c0483c117fd",
    "timestamp": 1697784992,
    "analyticsVersion": “9.5”,
    "configuration" : {
       // See configuration section
    },
    "currentLocation": {
   //  See current location section 
    }
}
```

</details>

### Wayfinding Analytics <a href="#wayfinding-analytics" id="wayfinding-analytics"></a>

<details>

<summary>Get Directions</summary>

<table><thead><tr><th width="171">Event</th><th width="270">Additional Parameters</th><th>When</th></tr></thead><tbody><tr><td><code>get-directions</code> </td><td><code>action-status</code><br>- “successful”<br>- “unsuccessful”<br><br><code>startPoi[1]</code> or <code>startLocation[2]</code><br><code>destinationPoi[1]</code> or <code>destinationLocation[2]</code><br>A POI is defined as:<br><code>fid</code> (guid)<br><code>name</code> (string)<br><code>typeCode</code> (string)<br><code>centerLon</code> (decimal)<br><code>centerLat</code> (decimal)<br><br>A Location is defined as:<br><code>sid</code> (numeric)<br><code>bid</code> (numeric)<br><code>lvl</code> (index)<br><code>lon</code> (decimal)<br><code>lat</code> (decimal)<br><br><code>features</code> (Collection of locations)<br><code>error</code> (string)</td><td>Whenever a user initiates static wayfinding this is triggered<br>“Unsucessful” refers to a case where a path cannot be calculated</td></tr></tbody></table>

Example JSON:

```json
{
    "action": "get-directions",
    "actionStatus": "unsuccessful",
     "params": {
        "error": "Cannot find a path to destination Poi",
        "destinationPoi": {
            "fid": "9f4c5dc1-dcab-e8c5-e509-000000927805",
            "name": "Men’s Restroom",
            "typeCode": "facility-services",
            "centerLat": -0.16249744,
            "centerLon": 51.4993839
        },
        "destinationLocation": null,
        "startPoi": null,
        "startLocation": {
            "sid": 2,
            "bid": 4,
            "lvl": 0,
            "lat": 0.54443,
            "lon": 0.5443543
        }
    },
    "deviceId": "05d9e18a-595d-4f9f-83d6-80527823a17f",
    "sessionId": "16b4cacb-20aa-41fb-a841-0c0483c117fd",
    "timestamp": 1697784992,
    "analyticsVersion": "9.5",
    "configuration" : {
    // See configuration section
    },
    "currentLocation": {
    //  See current location section 
    }
}
```

</details>

<details>

<summary>Wayfinding</summary>

<table><thead><tr><th width="151">Event</th><th width="256">Additional Parameters</th><th>When</th></tr></thead><tbody><tr><td><code>wayfind</code> </td><td><p><code>action-status</code><br>- “started”<br>- “completed”<br>- “failedToInitialize”<br>- “failedToComplete”<br>- “canceled”<br>- "startedStatic"<br>- "switchToStatic"<br>- "switchToDynamic"<br>- "failedToInitializeStatic"<br>- "updated"<br></p><p><br><br><code>startPoi[1]</code> or <code>startLocation[2]</code><br><code>destinationPoi[1]</code> or <code>destinationLocation[2]</code><br><br>A Poi is defined as:<br><code>fid</code> (guid)<br><code>name</code> (string)<br><code>typeCode</code> (string)<br><code>centerLon</code> (decimal)<br><code>centerLat</code> (decimal)<br><br>A Location is defined as:<br><code>sid</code> (numeric)<br><code>bid</code> (numeric)<br><code>lvl</code> (index)<br><code>lon</code> (decimal)<br><code>lat</code> (decimal)<br><br><code>duration</code> (numeric) in seconds, how long the dynamic session lasted<br><code>estimatedDuration</code> (numeric) how long the route is estimated to last in seconds<br><code>distance</code> (numeric) how long the route is in meters</p><p><code>routeProgress</code> (numeric, 0-1) percentage of route session completed before cancellation or <code>switchToStatic</code><br><br><code>error</code> (string)</p></td><td>Whenever a user initiates dynamic wayfinding this is triggered<br>- <code>failedToInitialize</code> is when a path is unable to be calculated<br><br>- <code>failedToComplete</code> is anytime wayfinding was not completed or canceled, this can happen if the user abruptly closes the app with no background permissions<br><br>When <a href="https://dev.pointr.tech/v9/features/wayfinding/wayfinding-modes.md">Hybrid Wayfinding</a> is enabled is possible to get these statuses:<br>- <code>startedStatic</code> : started static wayfinding<br>- <code>switchToDynamic</code> : when switching from static wayfinding to dynamic<br>- <code>switchToStatic</code> : when switching from static wayfinding to dynamic <br>- <code>failedToInitializeStatic</code> : when starting static wayfinding and it fails</td></tr></tbody></table>

{% hint style="info" %}
The routeProgress metric represents how much of a route has been completed during a wayfinding session. It is calculated and reported under the following conditions:

* **Wayfinding Cancellation (Dynamic Mode)**

  When a user cancels an active dynamic wayfinding session, a wayfinding event is triggered with the `canceled` action status.

  The `routeProgress` is calculated based on the proportion of the route already completed at the time of cancellation.

  For example, if the initial route distance is 500 meters and the user cancels when 100 meters remain, the routeProgress will be 0.8.
* **Switch to Static Mode (Hybrid Wayfinding)**

  In hybrid wayfinding, when the system transitions from dynamic to static navigation, a wayfinding event is triggered with the `switchToStatic` action-status.

  The `routeProgress` is calculated using the remaining distance at the moment of transition.

  For example, if the route initially measures 500 meters and the switch occurs when 100 meters remain, the routeProgress will be 0.8.
* **Arrival at Destination**

  When the user successfully reaches the destination, the `routeProgress` is set to 1.
* **Ongoing Updates (Dynamic Mode)**

  During active dynamic wayfinding, `routeProgress` is recalculated every 10 seconds (configurable) and emitted as a separate wayfinding event with the `updated` action-status.
  {% endhint %}

{% hint style="warning" %}
The `routeProgress` value may not always reflect the exact percentage value if the wayfinding session ends unexpectedly, such as when the user force-closes or backgrounds the app before the session is properly canceled or completed.

In such cases, it is recommended to rely on the most recent wayfinding event with the update action status to determine progress. Since update events are emitted every 10 seconds during dynamic wayfinding, the reported routeProgress will typically be accurate within a margin of up to 10 seconds.Example JSON:
{% endhint %}

```json
{
  "action": "wayfind",
  "actionStatus": "started",
  "params": {
    "distance": 246, //in meters
    "estimatedDuration": 200, //in seconds
    "destinationPoi": {
      "fid": "9f4c5dc1-dcab-e8c5-e509-000000927805",
      "name": "Men’s Restroom",
      "typeCode": "facility-services",
      "centerLat": -0.16249744,
      "centerLon": 51.4993839
    },
    "destinationLocation": null,
    "startPoi": null,
    "startLocation": {
      "sid": 2,
      "bid": 4,
      "lvl": 0,
      "lat": 0.54443,
      "lon": 0.5443543
    },
   },
  "deviceId": "05d9e18a-595d-4f9f-83d6-80527823a17f",
  "sessionId": "16b4cacb-20aa-41fb-a841-0c0483c117fd",
  "timestamp": 1697784992,
  "analyticsVersion": "9.5",
  "configuration" : {
       // See configuration section
    },
    "currentLocation": {
   //  See current location section 
    }
}
```

```json
{
  "action": "wayfind",
  "actionStatus": "startedStatic",
  "params": {
    "distance": 250, //in meters
    "estimatedDuration": 200, //in seconds

    "destinationPoi": { ... },
    "destinationLocation": { ... },
    "startPoi": { ... },
    "startLocation": { ... }
  }
  ...
}
```

```json
{
  "action": "wayfind",
  "actionStatus": "failedToInitializeStatic",
  "params": {
    "error": "Error message",

    "destinationPoi": { ... },
    "destinationLocation": { ... },
    "startPoi": { ... },
    "startLocation": { ... }
  }
  ...
}
```

```json
{
  "action": "wayfind",
  "actionStatus": "switchToDynamic",
  "params": {
    "distance": 250, //in meters
    "estimatedDuration": 200, //in seconds

    "destinationPoi": { ... },
    "destinationLocation": { ... },
    "startPoi": { ... },
    "startLocation": { ... }
  }
  ...
}
```

```json
{
  "action": "wayfind",
  "actionStatus": "switchToStatic",
  "params": {
    "duration": 198, //in seconds
    "routeProgress": 0.34,

    "destinationPoi": { ... },
    "destinationLocation": { ... },
    "startPoi": { ... },
    "startLocation": { ... }
  }
  ...
}
```

```json
{
  "action": "wayfind",
  "actionStatus": "canceled",
  "params": {
    "duration": 198, //in seconds
    "routeProgress": 0.62,
    
    "destinationPoi": { ... },
    "destinationLocation": { ... },
    "startPoi": { ... },
    "startLocation": { ... }
  }
  ...
}
```

```json
{
  "action": "wayfind",
  "actionStatus": "completed",
  "params": {
    "duration": 198,

    "destinationPoi": { ... },
    "destinationLocation": { ... },
    "startPoi": { ... },
    "startLocation": { ... }
  }
  ...
}
```

```json
{
  "action": "wayfind",
  "actionStatus": "failedToComplete",
  "params": {
    "error": "Error message",
    "duration": 198, //in seconds

    "destinationPoi": { ... },
    "destinationLocation": { ... },
    "startPoi": { ... },
    "startLocation": { ... }
  }
  ...
}
```

```json
{
  "action": "wayfind",
  "actionStatus": "updated",
  "params": {
    "duration": 198, //in seconds
    "routeProgress": 0.62
  }
  ...
}
```

</details>

### Search Analytics <a href="#search-analytics" id="search-analytics"></a>

<details>

<summary>Search</summary>

| Event    | Additional Parameters                                                                                                                                                                                                                                                                        | When                                           |
| -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------- |
| `search` | <p><code>sid</code>: (uuid) of the site filter used, can be null<br><code>bid</code>: (uuid) of the building filter used, can be null<br><code>lvl</code>: (numeric) of the level filter used, can be null<br><br><code>searchTerm</code> (string)<br><code>resultCount</code> (numeric)</p> | Any time a search is performed through the SDK |

Example JSON:

```json
{
    "action": "search",
    "searchTerm": "burger",
    "resultCount": 2,
    "sid": "a3f1b2c4-5d6e-7f80-9a1b-c2d3e4f5a6b7",
    "bid": "e8d7c6b5-a4f3-2e1d-0c9b-8a7f6e5d4c3b",
    "lvl": 5,
    "deviceId": "05d9e18a-595d-4f9f-83d6-80527823a17f",
    "sessionId": "16b4cacb-20aa-41fb-a841-0c0483c117fd",
    "timestamp": 1697784992,
    "analyticsVersion": "9.5",
    "configuration" : {
    // See configuration section
    },
    "currentLocation": {
    //  See current location section 
    }
}
```

</details>

### POI Analytics <a href="#poi-analytics" id="poi-analytics"></a>

<details>

<summary>POI Interaction</summary>

| Event             | Additional Parameters                                                                                                                                                                                                                                                       | When |
| ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---- |
| `poi-interaction` | <p><code>action-status</code><br>- “selected”<br>- “details”<br><br><code>originates</code> (string)<br><code>fid</code> (guid)<br><code>name</code> (string)<br><code>typeCode</code> (string)<br><code>centerLon</code> (decimal)<br><code>centerLat</code> (decimal)</p> |      |

Example JSON:

```json
{
    "action": "poi-interaction",
    "actionStatus": "selected",
    "originates": "map-click",
    "poiInteracted": {
        "fid": "9f4c5dc1-dcab-e8c5-e509-000000927805",
        "name": "Men’s Restroom",
        "typeCode": "facility-services",
        "centerLat": -0.16249744,
        "centerLon": 51.4993839
    },
    "deviceId": "05d9e18a-595d-4f9f-83d6-80527823a17f",
    "sessionId": "16b4cacb-20aa-41fb-a841-0c0483c117fd",
    "timestamp": 1697784992,
    "analyticsVersion": "9.5",
    "configuration" : {
    // See configuration section
    },
    "currentLocation": {
    //  See current location section 
    }
}
```

</details>

### Banner Analytics <a href="#banner-analytics" id="banner-analytics"></a>

<details>

<summary>Banner Interaction</summary>

| Event                | Additional Parameters                                                                              | When                                                                                                                                                                                             |
| -------------------- | -------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `banner-interaction` | <p><code>action-status</code><br>- “clicked”<br>- “dismissed”<br><code>appName</code> (string)</p> | <p>Any time in Pointr Express when the install banner pops up and is interacted with, this includes:<br>- Clicking on the banner to install the full experience.<br>- Dismissing the banner.</p> |

```json
{
    "action": "banner-interaction",
    "actionStatus": "clicked",
    "params": {
        "appName": "Client-IOS-v8.23"
    },
    "deviceId": "05d9e18a-595d-4f9f-83d6-80527823a17f",
    "sessionId": "16b4cacb-20aa-41fb-a841-0c0483c117fd",
    "timestamp": 1697784992,
    "analyticsVersion": "9.5",
    "configuration" : {
    // See configuration section
    },
    "currentLocation": {
    //  See current location section 
    }
}
```

</details>

### Mark My Car Analytics

<details>

<summary>Mark My Car</summary>

| Event         | Additional Parameters                                                                                      | When                                                                                                           |
| ------------- | ---------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| `mark-my-car` | <p>actionStatus:<br>- ”marked”<br>- ”retrieved”<br><br><code>location</code> marked/retrieved location</p> | Anytime a marking or retrieving action is performed by an end user across all of our SDKs we record the event. |

Example JSON:

```json
{
    "action": "mark-my-car",
    "actionStatus": "marked",
    "params": {
        "location": {
            "sid": "a3f1b2c4-5d6e-7f80-9a1b-c2d3e4f5a6b7",
            "bid": "e8d7c6b5-a4f3-2e1d-0c9b-8a7f6e5d4c3b",
            "lvl": 0,
            "lat": 40.16249744,
            "lon": 23.45616242
        }
    },
    "deviceId": "05d9e18a-595d-4f9f-83d6-80527823a17f",
    "sessionId": "16b4cacb-20aa-41fb-a841-0c0483c117fd",
    "timestamp": 1697784992,
    "analyticsVersion": "9.5",
    "configuration" : {
    // See configuration section
    },
    "currentLocation": {
    //  See current location section 
    }
}
```

</details>

### Beacon Upload Analytics

<details>

<summary>Beacon Upload</summary>

The beacon upload feature is configurable using these parameters:

* analytics\_beaconUploadPeriod (**default**: 120 seconds)
* analytics\_shouldUploadBeaconData (**default**: false)

For every unique beacon (based on uuid-major-minor), the rssi, timestamp and position of the reading with the highest rssi is kept.

| Event           | Additional Parameters                                                                                                          | When                                                                                                                             |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------- |
| `beacon-upload` | <p><code>major</code> (numeric)<br><code>minor</code> (numeric)<br><code>rssi</code> (numeric)<br><code>uuid</code> (guid)</p> | Every beaconUploadPeriod and every beacon has to be have readings for at least beaconUploadPeriod seconds before it is uploaded. |

Example JSON:

```json

 {
    "action": "beacon-upload",
    "params": {
        "beacons": [{
           "major": 1,
           "minor": 93,
           "rssi": -113,
           "uuid": "00000000-0000-0037-0000-000000000000"
        }]
    },
    "deviceId": "97324fc7-9f06-4dbd-8aea-7d82629eaf3e",
    "sessionId": "f1261188-dd63-429d-7870-45d7d85948c9",
    "timestamp": 1742987987723,
    "analyticsVersion": "9.5",
    "configuration": {
    // See configuration section
    },
    "currentLocation": {
    //  See current location section 
    }
}

```

**Note:** Beacons will be uploaded in batches every beaconUploadPeriod and every beacon has to be have readings for at least beaconUploadPeriod seconds before it is uploaded. Consequently, the beacon upload read first time during slot N will be uploaded on batch for slot N + 1.

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://dev.pointr.tech/v9/features/analytics/analytics-events.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
