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

Rails移行によって実現できたA/Bテストを用いた高速なサイト改善

 Rails移行によって実現できたA/Bテストを用いた高速なサイト改善

「ふつう」のRuby on Rails ウェブサービス開発(Clipla x みんなのウェディング)
クリニカル・プラットフォーム株式会社 × 株式会社みんなのウェディング共同開催勉強会にて使われたスライド資料

presented by みんなのウェディング

kei aihara

May 23, 2017
Tweet

Other Decks in Technology

Transcript

  1. Today's topics • ABテストを用いたサイト改善 • What for? • What kinds

    of tests patten? • How to build ab testing? • 終わりに
  2. KPIの設定 • 訪問予約人数への寄与は何をもって見る? ◦ ① CVR ▪ 訪問予約人(UB)数 / エリア一覧UB数 ◦ ②

    一式場あたりの件数ベースのCVR ▪ 訪問予約件数 / 閲覧された式場数 • 閲覧式場数 ◦ ③ 式場配下UB数 / エリア一覧UB数
  3. ab testing on Ruby on Rails • 特定の表示比率で、A/Bパ ターンのデザインの切り替 え

    • クライアント側での特定の イベント(クリック)計測
  4. problem1 • 既存のCSSとは切り分けて、テストデザイン用のCSSが当てられない ◦ Motorheadの中にCSSも入れる ◦ CSSをviewで当て直す ▪ - =

    stylesheet_link_tag :shikijo_smartphone + = stylesheet_link_tag 'new_area_search/places' ◦ config/initializers/assets.rbへも追加 ▪ -Rails.application.config.assets.precompile += %w( *.js *application.css *_smartphone.css static_css_pages.css) +Rails.application.config.assets.precompile += %w( *.js *application.css *_smartphone.css static_css_pages.css new_area_search/places.css)
  5. 1.

  6. class XXXXController < ApplicationController before_action :set_place, :detect_testing_xxx def index :

    if @testing_xxx # test pattern else # not test pattern end : end def detect_testing_xxx test = TestingXXX.new(params, request, cookies) return false unless test.available_env? return false unless test.available_device? if test.test_mode_enable? cookies[TestingXXX::COOKIE_NAME] = { value: params[:test_mode], expires: 1.year.from_now } end test.new_design_mode? end def detect_testing_xxx test = TestingFairs.new(params, request, cookies) @testing_xxx = detect_testing_xxx end end