Client User Identifier
Using the Device Identifier Managed Internally by the SDK
// Variation distribution
const experimentKey = 42
const variation = hackleClient.variation(experimentKey)
// Event tracking
hackleClient.track("purchase")
// Get the internally managed device identifier
const userId = Hackle.getUserId()// Variation distribution
int experimentKey = 42;
Variation variation = hackleApp.variation(experimentKey);
// Event tracking
hackleApp.track("purchase");
// Get the internally managed device identifier
String deviceId = hackleApp.getDeviceId();Using a Custom Identifier
Example: Creating a Custom Identifier
Last updated