UnifiedAnalyticsJsInterface

Handles JavaScript-based analytics events in the prepurchase flow by delegating to a com.ticketmaster.foundation.UnifiedAnalyticsListener.

Parameters

listener

The com.ticketmaster.foundation.UnifiedAnalyticsListener to receive analytics events.

mapper

The com.ticketmaster.prepurchase.internal.mapper.UALPageViewMapper used to convert JSON data for page view events.

Constructors

Link copied to clipboard
constructor(listener: UnifiedAnalyticsListener, mapper: UALPageViewMapper)

Functions

Link copied to clipboard
open override fun appviewAddToCartEvent(json: String)

Logs an event when items are added to a cart.

Link copied to clipboard
open override fun appviewLogAction(json: String)

Logs an action performed by the user.

Link copied to clipboard
open override fun appviewLogPageView(json: String)

Logs a page view event.

Link copied to clipboard
open override fun appviewTmPromotedClick(json: String)

Logs a click event for a Ticketmaster-promoted item.

Link copied to clipboard
open override fun appviewTransactionEvent(json: String)

Logs a transaction event.

Link copied to clipboard
open override fun displayNativeLocationSelector(json: String)

Logs the display of a native location selector.

Link copied to clipboard

Sets the com.ticketmaster.foundation.UnifiedAnalyticsListener for testing purposes.