Google 网站优化工具和用户定义的变量
我正在尝试将我的 Google 网站优化工具 A/B 测试与 Google Analytics 合并(以便了解页面变化如何影响跳出率、网站停留时间等统计数据)。我认为在 GWO 工作的 Eric Vasilik 推荐了一种实现此目的的技术,该技术涉及设置用户定义的 GA 变量,该变量取决于向用户显示的页面变体。他的技术的描述如下:http://www. gwotricks.com/2009/02/poor-mans-gwoanalytics-integration.html
Erik 建议在“原始”和“变体”页面上调用 utmx() 函数,以获取向用户显示的页面。但是当我尝试这样做时,它仅适用于“原始”页面。这是因为如果尚未调用 GWO 控制脚本,则 utmx() 未定义,并且该脚本仅出现在“原始”页面上。
我在这里错过了什么吗?由于 Erik 在 GWO 工作,我确信他是对的,我误解了这项技术,但我不知道我做错了什么。
I'm trying to merge my Google Website Optimizer A/B testing with Google Analytics (in order to see how page variations affect stats like bounce rate, time on site, etc.). Eric Vasilik, who I believe works at GWO, recommends a technique for doing this that involves setting a user-defined GA variable that is dependent on what page variation the user has been shown. The description of his technique is here: http://www.gwotricks.com/2009/02/poor-mans-gwoanalytics-integration.html
Erik suggests calling the utmx() function on the "original" and "variation" pages in order to grab which page the user has been shown. But when I try doing this, it only works on the "original" page. This is because utmx() is undefined if the GWO control script has not been called, and that script only goes on the "original" page.
Am I missing something here? Since Erik works for GWO I'm sure he's right and I'm misunderstanding the technique, but I can't figure out what I'm doing wrong.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这里缺少一些东西,那就是您引用的 GwoTricks 文章实际上只适用于多变量 GWO 实验。有一种方法可以使这项工作适用于 GWO A/B 实验。我更新了这篇文章来描述如何做到这一点。但是,简单地说,设置用户定义变量的代码需要从跟踪脚本之前向上移动到构成 A/B 控制脚本的两个脚本之间。这样,可以在发生任何重定向之前设置用户定义的变量,以便替代页面上的跟踪脚本将正确设置用户定义的变量。
There is something missing here, and that is that the GwoTricks article you reference really only works for multi-variate GWO experiments. There is a way to make this work for GWO A/B experiments. I've updated the article to describe how one does this. But, briefly, the code which sets the user defined variable needs to be moved up from just before the tracking script to be between the two scripts which make up the A/B Control Script. This way, the user defined variable can be set before any redirection takes place so that the tracking script on the alternative pages will have the user defined variable set properly.