使用Google Web优化程序进行A / B测试;什么cookie告诉我访客有A或B [英] A/B test with Google Web optimizer; what cookie tells me visitor got A or B
问题描述
使用Google网站优化工具A / B分割测试时,是否有一种方法可以读取Cookie以查看用户获得的是哪个版本A或B.
When using Google Website Optimizer A/B split test, is there a way I can read a cookie to see which version A or B did the user get? I need to know this from a page other than the control page.
推荐答案
使用JavaScript,您可以提取变体号客户端并将其放入Cookie中,详情请参阅我的讯息( http://www.optimisationbeacon.com/testing/how-to-integrate-google-website-optimizer-with-google-analytics/ ),但您需要以下代码(未定义表示测试未运行,0表示A,1表示B,依此类推...):
Using JavaScript, you could extract the variation number client side and place it into a cookie, see my post here for details ( http://www.optimisationbeacon.com/testing/how-to-integrate-google-website-optimizer-with-google-analytics/ ), but you'll need the following code to get the combination number (undefined means the test is not running, 0 is A, 1 is B, and so on...):
utmx('combination')
否则,您可以从Cookie__utmx中提取它:
That will get you the variation number. Otherwise, you can extract it from the cookie "__utmx":
222149575.00015140143722727739:2:0
结尾的数字,0表示这是版本A或原始。
The number on the end, "0" indicates this is version A or the original.
这篇关于使用Google Web优化程序进行A / B测试;什么cookie告诉我访客有A或B的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!