User Profiling

Apptics allows you to associate the tracking data with a user id of an individual using your app. Setting a user id is not mandatory for Apptics to work normally.

Setting the user ID

All the data tracked after calling the below method will be associated with the given user id, with respect to the current Apptics tracking state.

If the tracking state is USAGE_AND_CRASH_TRACKING_WITHOUT_PII, the user id will not be associated with the tracked data even on calling the below method. Read more about tracking states here.

Apptics also provides in-built consent pop-ups which allow app users to control the tracking states.

CopiedAppticsUser.setUser(userId: String)

Remove the user ID

On calling the below method, the user ID will not be associated with the tracking data. Already associated data will not be affected by this.

CopiedAppticsUser.removeUser(userId: String)

Fetch the current user ID

Use the below snippet to fetch the current user ID.

CopiedAppticsUser.getCurrentUser()