2017 © Pedro Peláez
 

library pabtest

AB split tests server side

image

errogaht/pabtest

AB split tests server side

  • Friday, December 25, 2015
  • by errogaht
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

pabtest

  1. composer require errogaht/pabtest:dev-master, (*1)

  2. copy files from vendor/errogaht/pabtest/example/* to project root, (*2)

  3. open in browser index.php, all needed code in this file, (*3)

  4. to view tests list run php vendor\errogaht\pabtest\bin\pabtest list, (*4)

  5. to view results run php vendor\errogaht\pabtest\bin\pabtest result buttonTest, (*5)

Как работает

Пишет в сессию, после показа результата пользователю показывается всегда этот результат, до сброса сессии., (*6)

PABTest::init(); запускаем если в приложении не запускается сессия, соответственно только до того как заголовки оправлены, (*7)

в index.php определяем параметры теста с помощью $buttonTest = new PABTest('buttonTest', ['small' => 50, 'big' => 50]);, (*8)

Когда нужно показать тот или иной вариант - вызываем код $buttonTest->getVariant() и он выдаст нам или small или big примерно с одинаковой вероятностью в 50%, (*9)

Когда пользователь выполнил целевое действие регистрируем конверсию PABTest::reachGoal('buttonTest');, (*10)

в конце смотрим список всех тестов в консоли php vendor\errogaht\pabtest\bin\pabtest list, (*11)

и результаты для конкретного теста php vendor\errogaht\pabtest\bin\pabtest result buttonTest, (*12)

to do

  • возможность запуска get variant не зависимо от того был ли создан тест именно сейчас. Так как получение варианта может быть отделен от инициализации теста

The Versions

25/12 2015

dev-master

9999999-dev https://github.com/errogaht/pabtest

AB split tests server side

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexey Teterin

ab test split test a b test a b split test ab split test

25/12 2015

0.0.7

0.0.7.0 https://github.com/errogaht/pabtest

AB split tests server side

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexey Teterin

ab test split test a b test a b split test ab split test

25/12 2015

0.0.6

0.0.6.0 https://github.com/errogaht/pabtest

AB split tests server side

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexey Teterin

ab test split test a b test a b split test ab split test

25/12 2015

0.0.5

0.0.5.0 https://github.com/errogaht/pabtest

AB split tests server side

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexey Teterin

ab test split test a b test a b split test ab split test

25/12 2015

0.0.4

0.0.4.0 https://github.com/errogaht/pabtest

AB split tests server side

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexey Teterin

ab test split test a b test a b split test ab split test

25/12 2015

0.0.2

0.0.2.0 https://github.com/errogaht/pabtest

AB split tests server side

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexey Teterin

ab test split test a b test a b split test ab split test

25/12 2015

0.0.3

0.0.3.0 https://github.com/errogaht/pabtest

AB split tests server side

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexey Teterin

ab test split test a b test a b split test ab split test

25/12 2015

0.0.1

0.0.1.0 https://github.com/errogaht/pabtest

AB split tests server side

  Sources   Download

MIT

The Requires

 

The Development Requires

by Alexey Teterin

ab test split test a b test a b split test ab split test