WebAnalytics

object WebAnalytics

An analytics handler for the Spend Manager UI.

This handler will send all Spend Manager UI analytics events to every subscribed WebAnalyticsListener listener as they occur.

In order to receive analytics events from the user's actions in the Spend Manager UI, please add a listener with the addListener method. This listener will then be notified when any Spend Manager UI analytics events are created.

It is also advised that, when analytics events no longer need to be received (eg. when the Spend Manager UI is no longer running), that the listener be removed by calling removeListener

See also

Functions

addListener
Link copied to clipboard
fun addListener(listener: WebAnalyticsListener): Boolean
Add a WebAnalyticsListener listener to receive Spend Manager UI analytics events
removeListener
Link copied to clipboard
fun removeListener(listener: WebAnalyticsListener): Boolean
Remove a WebAnalyticsListener listener from the list of subscribed listeners