Marketing Cloud SDK / com.salesforce.marketingcloud.analytics / AnalyticsManager / trackPageView

trackPageView

abstract fun trackPageView(@NonNull url: String): Unit

Track page views within your application

Parameters

url - String: - a non-null String to identify the location within your app traversed by your customers. For example: com.your.package.activity.name

abstract fun trackPageView(@NonNull url: String, @Nullable title: String?): Unit

Track page views within your application

Parameters

url - String: - a non-null String to identify the location within your app traversed by your customers. For example: com.your.package.activity.name

title - String?: - a String (null if n/a) to identify the title of the location within your app traversed by your customers. For example: Activity Name

abstract fun trackPageView(@NonNull url: String, @Nullable title: String?, @Nullable item: String?): Unit

Track page views within your application

Parameters

url - String: - a non-null String to identify the location within your app traversed by your customers. For example: com.your.package.activity.name

title - String?: - a String (null if n/a) to identify the title of the location within your app traversed by your customers. For example: Activity Name

item - String?: - a String (null if n/a) to identify an item viewed by your customer. For example: UPC-1234

abstract fun trackPageView(@NonNull url: String, @Nullable title: String?, @Nullable item: String?, @Nullable searchTerms: String?): Unit

Track page views within your application

Parameters

url - String: - a non-null String to identify the location within your app traversed by your customers. For example: com.your.package.activity.name

title - String?: - a String (null if n/a) to identify the title of the location within your app traversed by your customers. For example: Activity Name

item - String?: - a String (null if n/a) to identify an item viewed by your customer. For example: UPC-1234

searchTerms - String?: - a String (null if n/a) to identify search terms used by your customer. For example: blue jeans