AnalyticsManager
AnalyticsManager
Package: com.salesforce.marketingcloud.analytics
Type: interface
SDK Version: 11.0.0
Overview
Public facing interface for interacting with the Marketing Cloud SDK’s analytics features.
Methods
areAnalyticsEnabled
1abstract fun areAnalyticsEnabled(): BooleanIndicates whether the ET analytics are enabled or disabled.
Returns: Boolean
arePiAnalyticsEnabled
1abstract fun arePiAnalyticsEnabled(): BooleanIndicates whether the Pi analytics are enabled or disabled.
Returns: Boolean
disableAnalytics
1abstract fun disableAnalytics()This method allows you to disable the collection of ET Analytics through the SDK.
disablePiAnalytics
1abstract fun disablePiAnalytics()This method allows you to disable the collection of Pi Analytics through the SDK.
enableAnalytics
1abstract fun enableAnalytics()This method allows you to activate the collection of ET Analytics through the SDK.
enablePiAnalytics
1abstract fun enablePiAnalytics()This method allows you to activate the collection of Pi Analytics through the SDK.
getPiIdentifier
1@Nullable
2abstract fun getPiIdentifier(): StringReturns the value set by setPiIdentifier.
Returns: String (nullable)
setPiIdentifier
1abstract fun setPiIdentifier(
2 @Nullable @Size(min = 1) piIdentifier: String
3)Set the Predictive Intelligence Identifier to be associated with your Predictive Intelligence analytics.
Parameters:
piIdentifier:String(nullable, minimum size = 1)
trackCartContents
1abstract fun trackCartContents(@NonNull cart: PiCart)PI Analytics Convenience method to track a shopping cart.
Parameters:
cart:PiCart(non-null)
trackCartConversion
1abstract fun trackCartConversion(@NonNull order: PiOrder)PI Analytics Convenience method to track a purchase.
Parameters:
order:PiOrder(non-null)
trackInboxOpenEvent
1abstract fun trackInboxOpenEvent(@NonNull message: InboxMessage)Track the opening of an InboxMessage in ETAnalytics.
Parameters:
message:InboxMessage(non-null)
trackPageView
1abstract fun trackPageView(@NonNull @Size(min = 1) url: String)
2
3abstract fun trackPageView(
4 @NonNull @Size(min = 1) url: String,
5 @Nullable title: String
6)
7
8abstract fun trackPageView(
9 @NonNull @Size(min = 1) url: String,
10 @Nullable title: String,
11 @Nullable item: String
12)
13
14abstract fun trackPageView(
15 @NonNull @Size(min = 1) url: String,
16 @Nullable title: String,
17 @Nullable item: String,
18 @Nullable searchTerms: String
19)Track page views within your application
Parameters:
url:String(non-null, minimum size = 1) - Required page URLtitle:String(nullable) - Optional page titleitem:String(nullable) - Optional item identifiersearchTerms:String(nullable) - Optional search terms
DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!