Marketing Cloud SDK / / AnalyticsManager / setPiIdentifier


abstract fun setPiIdentifier(@Nullable @Size(1) piIdentifier: String?): Unit

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.


piIdentifier - String?: the Predictive Intelligence Identifier for your PI Analytics.

See Also