AnalyticsManager

Public facing interface for interacting with the Marketing Cloud SDK's analytics features.

Functions

Link copied to clipboard
Indicates whether the ET analytics are enabled or disabled.
Link copied to clipboard
Indicates whether the Pi analytics are enabled or disabled.
Link copied to clipboard
abstract fun disableAnalytics()
This method allows you to disable the collection of ET Analytics through the SDK.
Link copied to clipboard
abstract fun disablePiAnalytics()
This method allows you to disable the collection of Pi Analytics through the SDK.
Link copied to clipboard
abstract fun enableAnalytics()
This method allows you to activate the collection of ET Analytics through the SDK.
Link copied to clipboard
abstract fun enablePiAnalytics()
This method allows you to activate the collection of Pi Analytics through the SDK.
Link copied to clipboard
Returns the value set by setPiIdentifier.
Link copied to clipboard
abstract fun setPiIdentifier(@Nullable @Size(min = 1) piIdentifier: String)
Set the Predictive Intelligence Identifier to be associated with your Predictive Intelligence analytics.
Link copied to clipboard
abstract fun trackCartContents(@NonNull cart: PiCart)
PI Analytics Convenience method to track a shopping cart.
Link copied to clipboard
abstract fun trackCartConversion(@NonNull order: PiOrder)
PI Analytics Convenience method to track a purchase.
Link copied to clipboard
abstract fun trackInboxOpenEvent(@NonNull message: InboxMessage)
Track the opening of a InboxMessage in ETAnalytics.
Link copied to clipboard
abstract fun trackPageView(@NonNull @Size(min = 1) url: String)
abstract fun trackPageView(@NonNull @Size(min = 1) url: String, @Nullable title: String)
abstract fun trackPageView(@NonNull @Size(min = 1) url: String, @Nullable title: String, @Nullable item: String)
abstract fun trackPageView(@NonNull @Size(min = 1) url: String, @Nullable title: String, @Nullable item: String, @Nullable searchTerms: String)
Track page views within your application