AnalyticsControllerInterface
public protocol AnalyticsControllerInterface
Analytics methods
-
Update analytics with current screen in view
Declaration
Swift
func updateScreen(currentSreen: String)
Parameters
currentSreen
An identifier for the current screen
-
Update analytics with current screen in view
Declaration
Swift
func updateScreen(currentScreen: String, bundleContent: MNAnalyticsBundle)
Parameters
currentSreen
An identifier for the current screen
bundleContent
An identifier for the data content
-
Add a search event for screen with content
Declaration
Swift
func addSearchEvent(searchBarId: String, searchString: String, selectedString: String, bundleContent: MNAnalyticsBundle)
Parameters
searchBarId
An identifier for the search bar
searchString
Text enetered in the search bar
selectedString
Text selected from suggestions
bundleContent
An identifier for the data content
-
Add a marketing event for screen
Declaration
Swift
func addMarketingEvent(eventType: MapstedMarketingEventType, campaignId: String, interactionType: MapstedMarketingInteractionType)
Parameters
eventType
Type of event (popup, etc)
campaignId
An identifier the campaign
interactionType
User interactcion type (dismiss, etc)
-
Add a marketing event for screen
Declaration
Swift
func addMapEvent(eventType: MapstedMapAnalyticsActionType, wayPoint: Searchable)
Parameters
eventType
Type of event (popup, etc)
wayPoint
A particular waypoint that generated the event
-
Add a analytics email to the SDK
Declaration
Swift
func setAnalyticsEmail(email: String)
Parameters
email
Email for the user which will be used to track the analytics.