Skip to main content

Enable/Disable Data Tracking

To stop the MoEngage SDK from tracking custom events or user attributes, use the disableDataTracking() API. The SDK continues to collect analytical data even when data tracking is disabled.
Once the above API is called, no custom events or user attributes will be tracked. SDK will reject all events until enableDataTracking() is called.
Once you want to track events or user attributes, call the below API.

Enable/Disable SDK

To stop the MoEngage SDK from tracking any user information or sending any data to the MoEngage system, use the disableSdk() API.
Once this API is called, all the SDK APIs will be non-operational. SDK will be disabled until enableSdk() is called.
Once you have the user’s consent use the below API to enable the SDK.

Delete User Data

In April 2023, Google Announced the User Account Deletion Policy, according to which if your app allows you to create an account within your app, it must also allow the user to delete their account within the app. Calling this API will delete the User Data/Profile from the MoEngage Server. You need to have a minimum SDK version of 12.10.00 or aboveto call this API.
For more information, refer to the API Documentation.