Kony Fabric console User Guide: SDKs > Kony Visualizer SDK > Setting User ID

Setting User ID

The setUserID API sets the user ID for the data gathered from an application. The user ID allows the data to be tracked on a user basis for broad analysis like how many different users used the application. It also helps to track activities of a specific user, which can help in seeing what activities were done before a crash, or what events led to a transaction not passing through. The user ID allows the same user to be tracked across different devices as well.

// Sample code for the setUserID API
kony.setUserID("userID");

Note: KNYMetricsService.setUserId has been removed from apps built with Kony Visualizer Enterprise.

Copyright © 2020 Kony, Inc. All rights reserved.