Enables or disables PI (Predictive Intelligence) analytics tracking for the SDK.
Syntax
Future<void> setPiAnalyticsEnabled(bool analyticsEnabled)
Parameters
analyticsEnabled(bool) -trueto enable PI analytics,falseto disable
Returns
Future<void>- Completes when the PI analytics setting has been updated.
Example
try {
await SfmcSdk.setPiAnalyticsEnabled(true);
print('PI Analytics enabled');
} catch (e) {
print('Failed to set PI analytics: $e');
}