Assume I have a site which shows information regarding restaurants. All the urls are named as /restaurants/some-dynamic-restaurant-name/ eg.../restaurants/somename1/, /restaurants/somename2/ etc... How can I A/B test or Multivariate test using GWO, all the restaurant pages in one single experiment?
假设我有一个显示有关餐馆的信息的网站。所有网址都被命名为/ restaurants / some-dynamic-restaurant-name / eg ... / restaurants / somename1 /,/ restaurants / somename2 / etc ... IA / B如何测试或使用GWO进行多变量测试,所有餐厅页面在一个单一的实验?
Update: I have created a question in google website optimizer forums, and this is the reply I got: http://www.google.com/support/forum/p/websiteoptimizer/thread?tid=5c6ef8fab27cf719&hl=en&fid=5c6ef8fab27cf719000468877f441f7b
更新:我在谷歌网站优化论坛中创建了一个问题,这是我收到的回复:http://www.google.com/support/forum/p/websiteoptimizer/thread?tid = 5c6ef8fab27cf719&hl = en&fid = 5c6ef8fab27cf719000468877f441f7b
Update:Following http://www.google.com/support/websiteoptimizer/bin/answer.py?hl=en&answer=61201, I have taken a sample url www.mysite.com/restaurants/dynamic_restaurant_name_here/. I have a h1-header in that page which displays the Restaurant Name. I included that as a section, following GWO rules. And I created the variations of that using h2,h3. So it is supposed to show h2 header or h3 header for different users for the same restaurant.
更新:在http://www.google.com/support/websiteoptimizer/bin/answer.py?hl=zh-CN&answer=61201之后,我提供了一个示例网址www.mysite.com/restaurants/dynamic_restaurant_name_here/。我在该页面中有一个h1标题,显示了餐馆名称。我把它作为一个部分,遵循GWO规则。我使用h2,h3创建了它的变体。所以它应该为同一家餐馆的不同用户显示h2标题或h3标题。
Instead, for every other restaurant page, it was showing the same(or only one) restaurant name, because all it knows is that only. But the link which you gave assures me that I can test a similar scenario(check the first few lines of the GWO link content), but that didn't happen. So for each dynamic restaurant page, I want to check different headers. Is that possible?What should I do?
相反,对于每个其他餐馆页面,它显示相同(或仅一个)餐馆名称,因为它只知道它。但是你给出的链接向我保证我可以测试类似的场景(检查GWO链接内容的前几行),但这没有发生。因此,对于每个动态餐厅页面,我想检查不同的标题。这可能吗?我该怎么办?
Update:I posted an answer to my own question. But is there a better way to do it?
更新:我发布了自己问题的答案。但是有更好的方法吗?
2 个解决方案
#1
To your first question, no, query parameters are not stripped off. In fact, the params of the original page are merged with the params of the alternative URL before the redirection to the alternative URL.
对于您的第一个问题,不,查询参数不会被剥离。实际上,在重定向到备用URL之前,原始页面的参数与备用URL的参数合并。
To your second question, please see:
关于第二个问题,请参阅:
http://www.gwotricks.com/2009/02/advanced-ab-experiments.html
Which shows you how you can gain control over the URL to which visitors are redirected. This will allow you to test all the restaurant pages. Essentially, you create a multivariate experiment, hook the redirection and construct the appropriate URL to which the visitor is redirected.
其中显示了如何控制访问者重定向的URL。这将允许您测试所有餐厅页面。实际上,您创建了一个多变量实验,挂钩重定向并构造访问者重定向到的相应URL。
#2
I followed this:http://www.google.com/support/websiteoptimizer/bin/answer.py?hl=en&answer=61201 And I got what I wanted. But then I started working with the same approach in a high scale way, meaning, by just flipping one variable at GWO end, I wanted to flip the whole template design. ie.. version=1 will load a layout1 and version=2 will a layout 2. So I was retrieving the templates content in javascript. This is how it will look like:
我遵循了这个:http://www.google.com/support/websiteoptimizer/bin/answer.py?hl = zh-CN&answer = 61201我得到了我想要的东西。但后来我开始以高规模的方式使用相同的方法,这意味着,只需在GWO端翻转一个变量,我就想翻转整个模板设计。 ie .. version = 1将加载layout1而version = 2将是一个布局2.所以我在javascript中检索模板内容。这是它的样子:
<script type='text/javascript'>
if(version==1){
content_to_be_loaded = "<Two pane layout html content>"
}else{
content_to_be_loaded = "<Three pane layout html content>"
}
</script>
This sounds good. But the double quotes used are colliding with the html content's double quotes. So javascript is failing to compute the value of the variable "content_to_be_loaded". I can solve this by standardizing the templates text to use only one kind of quotes. But thats rediculous. Is there any alternative way?
听起来不错。但是使用的双引号与html内容的双引号相冲突。所以javascript无法计算变量“content_to_be_loaded”的值。我可以通过标准化模板文本来解决这个问题,只使用一种引号。但那太荒谬了。还有其他方法吗?
#1
To your first question, no, query parameters are not stripped off. In fact, the params of the original page are merged with the params of the alternative URL before the redirection to the alternative URL.
对于您的第一个问题,不,查询参数不会被剥离。实际上,在重定向到备用URL之前,原始页面的参数与备用URL的参数合并。
To your second question, please see:
关于第二个问题,请参阅:
http://www.gwotricks.com/2009/02/advanced-ab-experiments.html
Which shows you how you can gain control over the URL to which visitors are redirected. This will allow you to test all the restaurant pages. Essentially, you create a multivariate experiment, hook the redirection and construct the appropriate URL to which the visitor is redirected.
其中显示了如何控制访问者重定向的URL。这将允许您测试所有餐厅页面。实际上,您创建了一个多变量实验,挂钩重定向并构造访问者重定向到的相应URL。
#2
I followed this:http://www.google.com/support/websiteoptimizer/bin/answer.py?hl=en&answer=61201 And I got what I wanted. But then I started working with the same approach in a high scale way, meaning, by just flipping one variable at GWO end, I wanted to flip the whole template design. ie.. version=1 will load a layout1 and version=2 will a layout 2. So I was retrieving the templates content in javascript. This is how it will look like:
我遵循了这个:http://www.google.com/support/websiteoptimizer/bin/answer.py?hl = zh-CN&answer = 61201我得到了我想要的东西。但后来我开始以高规模的方式使用相同的方法,这意味着,只需在GWO端翻转一个变量,我就想翻转整个模板设计。 ie .. version = 1将加载layout1而version = 2将是一个布局2.所以我在javascript中检索模板内容。这是它的样子:
<script type='text/javascript'>
if(version==1){
content_to_be_loaded = "<Two pane layout html content>"
}else{
content_to_be_loaded = "<Three pane layout html content>"
}
</script>
This sounds good. But the double quotes used are colliding with the html content's double quotes. So javascript is failing to compute the value of the variable "content_to_be_loaded". I can solve this by standardizing the templates text to use only one kind of quotes. But thats rediculous. Is there any alternative way?
听起来不错。但是使用的双引号与html内容的双引号相冲突。所以javascript无法计算变量“content_to_be_loaded”的值。我可以通过标准化模板文本来解决这个问题,只使用一种引号。但那太荒谬了。还有其他方法吗?