Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ABテストやってる?という問いかけと事例

cocoiti
March 30, 2017
420

 ABテストやってる?という問いかけと事例

cocoiti

March 30, 2017
Tweet

Transcript

  1. ࠓ೔ͷ಺༰ • ࿩͠·͢ • جຊతͳαʔόαΠυͷABςετͷ࣮૷ • iOS/Android ͱ࿈ܞ͢ΔAPI • ϝϧΧϦͰͷ࣮ྫ

    • ۤ࿑࿩ͱ͔ • ࿩͠·ͤΜ • Ұൠతͳπʔϧͷ঺հʢGoogle Optimize/FireBaseͱ͔ʣ
  2. $tracker = new Tracker(); $experiment_name = 'awesome_red_button'; $experiment_result = $tracker->getExperimentResult($experiment_name,

    $user_id, $uuid, ExperimentEvent::CLIENT_TYPE_IOS); $variant = $experiment_result->getVariant(); // Your A/B testing. if ($variant === 0) { // Control group } elseif ($variant === 1) { // Test group 1 } elseif ($variant === 2) { // Test group 2 } elseif ($variant === null) { // Something wrong } // Create Experiment event. $experiment_event = $experiment_result->createEvent(); // Log it. $tracker->sendEvent($experiment_event);
  3. $variant = $experiment_result->getVariant(); // Your A/B testing. if ($variant ===

    0) { // Control group } elseif ($variant === 1) { // Test group 1 } elseif ($variant === 2) { // Test group 2 } elseif ($variant === null) { // Something wrong }
  4. $user_id = 123;
 $ab_test_name = ‘ab_test_name’; hexdec (substr(md5($user_id . $expeliment_name

    . ‘salt’), 5)); // Ϣʔβ͝ͱʹݻఆ͔ͭABςετ͝ͱʹݻఆͷ਺஋͕Ͱ ΔͷͰ͋ͱ͸ྑ͠ͳʹ΍ͬͯ͘Ε͍
  5. ίʔυ͕IFจͩΒ͚ʹ • ے೑Ͱղܾ • class ઃܭͱ͔ • https://github.com/cookpad/chanko తͳΞϓ ϩʔνͱ͔

    • ظؒΛܾΊͯɺίʔυΛ੔ཧͰ͖ΔΑ͏ʹͯ͠ ͓͘ʢاըͷਓͱ͔ͱѲ͓ͬͯ͘ʣ