A class to access the Mappedin Analytics platform. Correct usage will improve Smart Search results, and lead to more accurate insights. This will be created for you as part of Mappedin.initialize, but you can also create one manually. You are mostly going to use locationSelected.

Show:
categorySelected
(
  • category
)

Whenever a category is selected, you should fire this event.

Parameters:

getDirections
(
  • start
  • end
)

Whenever a user requests directions, you should fire this event.

Parameters:

locationSelected
(
  • location
)

Whenever a location is selected, you should fire this event. What "selected" means can vary by venue, but a good rule of thumb is that you fire the event whenever you would show the location's details. Typically this is when the user taps it's polygon on the map, picks it from search results or a category list. or deep links directly into the map.

Parameters:

trackBlueDotEvent
(
  • event
)

Track an event.

Parameters:

BLUEDOT_EVENT

Object

Enum of valid bluedot events. Pass a property of this into the trackBlueDotEvent method. Valid properties are: ATTEMPT_BLUEDOT, FOUND_POSITION, FOUND_FLOOR.

Example:

Analytics.trackBlueDotEvent(Analytics.BLUEDOT_EVENT.ATTEMPT_BLUEDOT)