你如何选择几个内容实验的变体? [英] How can you choose variations for several content experiments?

查看:126
本文介绍了你如何选择几个内容实验的变体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为Google Analytics内容实验使用Javascript API,看起来您有两种选择:


  1. Google会分配变体,您可以使用 chooseVariation()

  2. 一次运行多个实验,使用 setChosenVariation()

(1)让您自己分配变体分配给每个变体的用户数量,这是我需要的,但我有几个实验。这看起来很基本。我错过了什么?

解决方案

我不认为你错过了任何东西。我的理解是GA实验API允许您使用选择Variation命令

  cxApi.chooseVariation(); 

但是,此功能只有在加载api.js时指定实验ID页。



如果您想要同时在一个页面上运行多个A / B测试,这实际上是多变量测试,但遗憾的是,这在GA内容实验中并非开箱即用(以前可用于Google网站优化工具)。您仍然可以使用自己的bucketing伪造它,并使用如下代码:

 <! -  1.加载内容实验JavaScript客户端 - > 
< script src =// www.google-analytics.com/cx/api.js\"> ;</script>

<! - - 2.查看访问者是否已经看过实验 - >
< script>
//通过服务器端的所有活动实验循环。
cxApi.getChosenVariation(
$ experimentId
);

<! - - 3.如果访客已经不在柜台上,
//通过您的现场实验循环
cxApi.setChosenVariation(
$ selectedVariation,//显示给访问者的变化索引
$ experimentId //实验的ID用户已经暴露于
);
< / script>

您需要决定是否让访客一次只查看一个实验或输入多个同时进行实验。

第一个选项可能更可靠,但意味着您必须将访问者分成很多存储桶,这意味着您的测试在返回结果之前需要很长时间。如果您使用第二个选项,则需要小心:如果您的实验不是独立的,那么您将无法信任Google Analytics的测试结果。 ,因为内容实验中使用的统计测试假设独立性。即使您的实验是独立的,您需要在所有变体组合之间进行平等分配。



我希望这有所帮助!

I'm using the Javascript API for Google Analytics Content Experiments and it seems like you have two choices:

  1. Run one experiment at a time and have Google assign the variation, which you can get using chooseVariation(), or
  2. Run several experiments at a time and assign the variation yourself using setChosenVariation()

(1) lets Google control the number of users assigned to each variation, which I need, but I have several experiments. This seems pretty basic. What am I missing?

解决方案

I don't think you're missing anything. My understanding is that the GA Experiments API allows you to allocate a visitor to any version of a single A/B/N test with the Choose Variation command :

cxApi.chooseVariation();

However, this function is only available if you specify the experiment ID when loading the api.js on the page.

If what you want to do is to run several A/B tests on one page at the same time, this is really multi-variate testing and unfortunately this is not available 'out-of-the-box' in GA Content Experiments (it used to be available with Google Website Optimizer). You can still 'fake' it using your own bucketing, with code like :

<!-- 1. Load the Content Experiments JavaScript Client -->
<script src="//www.google-analytics.com/cx/api.js"></script>

<!-- 2. See if the visitor has seen an experiment already -->
<script>
// loop through all active experiments server-side. 
cxApi.getChosenVariation(
 $experimentId
 );

<!-- 3. Bucket the visitor if he isn't bucketed already -->
// loop through your live experiments 
  cxApi.setChosenVariation(
    $chosenVariation,             // The index of the variation shown to the visitor
    $experimentId                 // The id of the experiment the user has been exposed to
  );
</script>

You will need to decide whether you want a visitor to only view one experiment at a time or enter multiple experiments concurrently.

The first option is probably more reliable but means you will have to split your visitor in quite a lot of buckets, meaning your tests will take a long time before returning a result.

If you use the second option, you need to be careful : if your experiments are not independent, you won't be able to trust the test results from Google Analytics, as the statistical tests used in the Content Experiments assume independence. Even if your experiments are independent, you'll need to have an equal split among all variation combinations.

I hope that helps !

这篇关于你如何选择几个内容实验的变体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆