2017 © Pedro Peláez
 

silverstripe-module silverstripe-abtesting

Google Analytics A/B Testing in SilverStripe

image

heyday/silverstripe-abtesting

Google Analytics A/B Testing in SilverStripe

  • Friday, October 9, 2015
  • by heyday
  • Repository
  • 22 Watchers
  • 6 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 12 Versions
  • 0 % Grown

The README.md

SilverStripe ABTesting

Installation (with composer)

$ composer require heyday/silverstripe-abtesting:0.2.0

For 2.4 see the tag 0.1.7

Usage

Add the following to your root level Page SilverStripe template, (*1)

<% if ABTestScript %>
    $ABTestScript
<% else %>
    <% if SiteConfig.ABTestGlobalScript %>
        $SiteConfig.ABTestGlobalScript
    <% end_if %>
<% end_if %>

Decorate the object/page you wish to test with the ABTestingExtension, (*2)

class Page_Controller extends ContentController
{
    public static $extensions = array(
        "ABTestingExtension('a','b')"
    );
}

Set up the variations for the test, (*3)

For SilverStripe 2.4, (*4)

<% if getABTesting(st_b) %>
// State for b
<% else %>
// State for default
<% end_if %>

For SilverStripe 3, (*5)

<% if getABTesting(st,b) %>
// State for b
<% else %>
// State for default
<% end_if %>

Where st is a GET variable like /?st=b, (*6)

Unit testing

$ composer install --dev
$ vendor/bin/phpunit

The Versions

09/10 2015

dev-master

9999999-dev

Google Analytics A/B Testing in SilverStripe

  Sources   Download

The Development Requires

09/10 2015

dev-feature/upgrade-to-ss3.1

dev-feature/upgrade-to-ss3.1

Google Analytics A/B Testing in SilverStripe

  Sources   Download

The Development Requires

09/10 2015

0.2.0

0.2.0.0

Google Analytics A/B Testing in SilverStripe

  Sources   Download

The Development Requires

30/05 2013

0.1.x-dev

0.1.9999999.9999999-dev

Google Analytics A/B Testing in SilverStripe

  Sources   Download

The Development Requires

30/05 2013

0.1.7

0.1.7.0

Google Analytics A/B Testing in SilverStripe

  Sources   Download

The Development Requires

29/05 2013

0.1.6

0.1.6.0

Google Analytics A/B Testing in SilverStripe

  Sources   Download

The Development Requires

29/05 2013

0.1.5

0.1.5.0

Google Analytics A/B Testing in SilverStripe

  Sources   Download

The Development Requires

29/05 2013

0.1.4

0.1.4.0

Google Analytics A/B Testing in SilverStripe

  Sources   Download

The Development Requires

17/05 2013

0.1.3

0.1.3.0

Google Analytics A/B Testing in SilverStripe

  Sources   Download

The Development Requires

16/05 2013

0.1.2

0.1.2.0

Google Analytics A/B Testing in SilverStripe

  Sources   Download

The Development Requires

19/04 2013

0.1.1

0.1.1.0

Google Analytics A/B Testing in SilverStripe

  Sources   Download

The Development Requires

18/04 2013

0.1.0

0.1.0.0

Google Analytics A/B Testing in SilverStripe

  Sources   Download

The Development Requires