---
schema_version: "1"
id: a50027b6a2c4456e65304a7819c9207e8b405bf182d298d75d513818e8b48273
title: isPiAnalyticsEnabled
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud-mobilepush/engagement_sdk/references/cordova/isPiAnalyticsEnabled.md
canonical_url: https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/isPiAnalyticsEnabled.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: c20c9a1314fb3c29ac5685060c9432c3fbd73da222af713466922c24770af58e
products:
  - Salesforce Engagement SDK
---
# isPiAnalyticsEnabled

Checks whether Predictive Intelligence (PI) analytics are enabled in the native MobilePush SDK.

## Syntax

`MCCordovaPlugin.isAnalyticsEnabled(successCallback, [errorCallback])`

## Kind

Static method of `MCCordovaPlugin`.

## Parameters

| Parameter         | Type       | Description |
| ----------------- | ---------- | ----------- |
| `successCallback` | `function` |             |
| `errorCallback`   | `function` |             |
