---
schema_version: "1"
id: f7821406f475367b2adf48d06e9092657dc0452dbd88f0b2cc01f6de942bc3e6
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/react/react_isPiAnalyticsEnabled.md
canonical_url: https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/react_isPiAnalyticsEnabled.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 93a0d81e256a7a4226d0864ce4f5d4a36568b46898cc34e02f9ef10d04d2e30d
products:
  - Salesforce Engagement SDK
---
# isPiAnalyticsEnabled

Checks if PI analytics is enabled in the MobilePush SDK.

## Syntax

```javascript
MCReactModule.isPiAnalyticsEnabled() ⇒ Promise.<boolean>
```

## Returns

- `Promise.<boolean>` - A promise to the boolean representation of whether PI analytics is enabled.

## Example

```javascript
import { MCReactModule } from "react-native-marketingcloudsdk";

const checkPiAnalyticsStatus = async () => {
  try {
    const isEnabled = await MCReactModule.isPiAnalyticsEnabled();
    console.log("PI Analytics enabled:", isEnabled);
  } catch (error) {
    console.error("Error checking PI analytics status:", error);
  }
};
```

## See Also

- [Runtime Toggles](/docs/marketing/mobilepush/guide/runtime-toggles.html)

## Related Methods

- [setPiAnalyticsEnabled()](https://developer.salesforce.com/docs/marketing/mobile-unified-sdk/references/engagement-mobile-sdk-reference/react_setPiAnalyticsEnabled.md)
