User Identifier & Properties
Using Your Own User Identifier
Example
<?php
require 'vendor/autoload.php';
$client = \Hackle\HackleClients::create("YOUR_SDK_KEY");
$user = \Hackle\Common\HackleUser::builder()
->deviceId("ae2182e0")
->build();
$event = \Hackle\Common\HackleEvent::builder("purchase")
->property("pay_method", "CARD")
->property("discount_amount", 800)
->property("is_discount", true)
->build();
//테스트 그룹 분배
$variation = $client->variation(42 , $user);
//사용자 이벤트 전송
$client->track($event, $user);
?>Additional Identifiers
Property
Category
Type
Constraints
Example
Last updated