사용자 식별자와 속성
마지막 업데이트
// 디바이스 식별자 변경
await hackleClient.setDeviceId("CUSTOM_DEVICE_ID");// 로그인 한 사용자 식별자 추가
await hackleClient.setUserId("LOGIN_ID");const user = {
userId: "LOGIN_ID", // 사용자 ID (핵클 통합 식별자 사용가능)
deviceId: "CUSTOM_DEVICE_ID", // 디바이스 ID (핵클 통합 식별자 사용가능)
identifiers: {
myCustomId: "CUSTOM_IDENTIFIER" // Custom ID
}
};
await hackleClient.setUser(user);import { PropertyOperationsBuilder } from "@hackler/javascript-sdk"
// 속성 설정
const operations = new PropertyOperationsBuilder()
.set("gender", "female")
.build();
await hackleClient.updateUserProperties(operations);<script>
// 속성 설정
const operations = new Hackle.PropertyOperationsBuilder()
.set("gender", "female")
.build();
hackleClient.updateUserProperties(operations);
</script>import { PropertyOperationsBuilder } from "@hackler/javascript-sdk"
const operations = new PropertyOperationsBuilder()
.set("age", 42)
.set("grade", "GOLD")
.setOnce("sign_up_date", "2020-07-03")
.build();
await hackleClient.updateUserProperties(operations);<script>
const operations = new Hackle.PropertyOperationsBuilder()
.set("age", 42)
.set("grade", "GOLD")
.setOnce("sign_up_date", "2020-07-03")
.build();
hackleClient.updateUserProperties(operations);
</script>await hackleClient.resetUser();