heyday/silverstripe-abtesting 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

heyday/silverstripe-abtesting

最新稳定版本:0.2.0

Composer 安装命令:

composer require heyday/silverstripe-abtesting

包简介

Google Analytics A/B Testing in SilverStripe

README 文档

README

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

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

Decorate the object/page you wish to test with the ABTestingExtension

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

Set up the variations for the test

For SilverStripe 2.4

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

For SilverStripe 3

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

Where st is a GET variable like /?st=b

Unit testing

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

统计信息

  • 总下载量: 34
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 6
  • Watchers: 23
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-11-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固