AnalyticsLogger
object AnalyticsLogger
A singleton object responsible for handling analytics logging throughout the Airwallex SDK. Provides methods to log various types of events including page views, errors, API errors, actions, and payment views.
Types
Functions
Link copied to clipboard
Link copied to clipboard
Initializes the analytics tracker with the provided context.
Link copied to clipboard
Check if analytics session is already set up for the given session. Returns false if session has changed, allowing re-initialization.
Link copied to clipboard
Logs an API error event.
Link copied to clipboard
Logs a page view event.
Link copied to clipboard
Logs a payment method view event.
Link copied to clipboard
Link copied to clipboard
fun setupSession(session: AirwallexSession, launchType: String, layout: String? = null, showsGooglePayAsPrimaryButton: Boolean? = null)
Helper function to set up analytics session information from an AirwallexSession.
Link copied to clipboard
Updates the account ID in the analytics tracker.
Link copied to clipboard
Updates extra common data in the analytics tracker. This allows cross-platform SDKs (e.g., Flutter, React Native) to set custom fields.