Skip to main content
Use the APIs below to control what the MoEngage SDK tracks, based on the consent a user has given.

Enable or Disable Data Tracking

To stop the SDK from tracking custom events and user attributes, call disableDataTracking().
The SDK rejects all events and user attributes until you call enableDataTracking(). Data tracking is enabled by default.

Enable or Disable the SDK

To stop the SDK from tracking any user information or sending any data to MoEngage, call disableSdk().
All SDK APIs are non-operational until you call enableSdk(). The SDK is enabled by default, so call enableSdk() only if you disabled it earlier.

Delete User Data

To delete the current user’s profile from the MoEngage server, refer to Delete User From MoEngage Server.