interface AnalyticsManager
Public facing interface for interacting with the Marketing Cloud SDK's analytics features.
getPiIdentifier |
Returns the value set by abstract fun getPiIdentifier(): String? |
setPiIdentifier |
Set the Predictive Intelligence Identifier to be associated with your Predictive Intelligence analytics. This value can be cleared by setting it to null. By default, if unset, the SDK will use the Contact Key. You can decide whether or not you want this default, legacy behavior by setting MarketingCloudConfig.Builder#setUseLegacyPiIdentifier(boolean). This default behavior will be removed in an upcoming SDK release and you will be required to explicitly set the identifier. abstract fun setPiIdentifier(piIdentifier: String?): Unit |
trackCartContents |
PI Analytics Convenience method to track a shopping cart. abstract fun trackCartContents(cart: PiCart): Unit |
trackCartConversion |
PI Analytics Convenience method to track a purchase. abstract fun trackCartConversion(order: PiOrder): Unit |
trackInboxOpenEvent |
Track the opening of a abstract fun trackInboxOpenEvent(message: InboxMessage): Unit |
trackPageView |
Track page views within your application abstract fun trackPageView(url: String): Unit abstract fun trackPageView(url: String, title: String?): Unit abstract fun trackPageView(url: String, title: String?, item: String?): Unit abstract fun trackPageView(url: String, title: String?, item: String?, searchTerms: String?): Unit |