使用 Google 网站优化工具测试动态页面

发布于 2024-07-18 05:51:25 字数 1152 浏览 13 评论 0原文

假设我有一个显示有关餐馆信息的网站。 所有网址均命名为 /restaurants/some-dynamic-restaurant-name/ 例如.../restaurants/somename1/、/restaurants/somename2/ 等。 .. 如何使用 GWO 进行 IA/B 测试或多变量测试,将所有餐厅页面整合到一个实验中?

更新:我在谷歌网站优化器论坛中创建了一个问题,这是我得到的答复:http://www.google.com/support/forum/p/websiteoptimizer/thread?tid=5c6ef8fab27cf719&hl=en&fid=5c6ef8fab27cf719000468877f 441f7b

更新:遵循 http://www.google .com/support/websiteoptimizer/bin/answer.py?hl=en&answer=61201,我采用了示例网址 www.mysite.com/restaurants/dynamic_restaurant_name_here/。 我在该页面中有一个 h1 标题,其中显示餐厅名称。 我按照 GWO 规则将其作为一个部分包含在内。 我使用 h2、h3 创建了它的变体。 因此,它应该为同一餐厅的不同用户显示 h2 标题或 h3 标题。

相反,对于每个其他餐厅页面,它都显示相同(或仅一个)餐厅名称,因为它只知道这一点。 但是您提供的链接向我保证我可以测试类似的场景(检查 GWO 链接内容的前几行),但这并没有发生。 因此,对于每个动态餐厅页面,我想检查不同的标题。 这可能吗?我该怎么办?

更新:我发布了我自己问题的答案。 但有没有更好的方法呢?

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?

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

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.

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?

Update:I posted an answer to my own question. But is there a better way to do it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

我不是你的备胎 2024-07-25 05:51:25

对于你的第一个问题,不,查询参数没有被剥离。 事实上,在重定向到替代 URL 之前,原始页面的参数已与替代 URL 的参数合并。

对于您的第二个问题,请参阅:

http://www.gwotricks.com/2009/02/advanced-ab-experiments.html

这向您展示了如何获得对访问者重定向到的 URL 的控制。 这将允许您测试所有餐厅页面。 本质上,您创建一个多变量实验,挂钩重定向并构建访问者重定向到的适当 URL。

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.

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.

简单 2024-07-25 05:51:25

我按照以下步骤操作:http://www. google.com/support/websiteoptimizer/bin/answer.py?hl=zh-CN&answer=61201
我得到了我想要的。 但后来我开始大规模地使用相同的方法,这意味着,通过在 GWO 结束时翻转一个变量,我想翻转整个模板设计。 即.. version=1 将加载布局1,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>

听起来不错。 但是使用的双引号与 html 内容的双引号发生冲突。 因此 javascript 无法计算变量“content_to_be_loaded”的值。 我可以通过标准化模板文本以仅使用一种引号来解决此问题。 但这是荒谬的。 还有其他方法吗?

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:

<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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文