具有动态 url 和多个转换页面的 A/B GWO 测试页面

发布于 2024-11-30 18:40:22 字数 783 浏览 1 评论 0原文

我有一个显示有关产品信息的网站。我有遵循以下 URL 结构的动态产品页面: http://www.site.com/product- title/id 其中 id 是产品 id(如果重要的话,这些 url 实际上是使用 apache mod-rewrite 重写的 url)。

我有两个 Coldfusion 页面模板,product.cfm 和模板变体 Product_v1.cfm,我希望 GWO 分割我们的流量并向用户显示另一个页面,但保留 URL(product.cfm 和 Product_v1.cfm 的 URL 相同)。此外,对于每个测试页面,我们都有多个转换页面。

总结:

  • 我们有product.cfm 和模板变体product_v1.cfm。

  • 当给定用户访问产品 url 域之一时,我们希望 http:// www.site.com/product-title/id,维护 url gwo 显示原始页面(由product.cfm 生成)或变体页面(由product_v1.cfm 生成)。

  • 对于每个产品页面,我们都有多个转换页面,也就是说,在产品页面内,我们有一个链接列表,这些链接指向由转换页面模板 (conversion_page.cfm) 生成的其他页面

可以使用 GWO 来实现这一点吗?

I have a site which shows information regarding products. I have dynamic product pages that follow this URL structure: http://www.site.com/product-title/id where id is a product id (if it matters, these urls are actually rewritten urls using apache mod-rewrite).

I have two coldfusion pages templates, product.cfm and the template variation product_v1.cfm and I want GWO to split our traffic and show users to an alternate page but mantaining the url (the same url for product.cfm and product_v1.cfm). Also for each test page we have a multiple conversion pages.

summing-up :

  • We have product.cfm and the template variation product_v1.cfm.

  • We want, when a given user access to one of the products url domain, http://www.site.com/product-title/id, mantaining the url gwo shows the original page (generate by product.cfm) or the variation page (generate by product_v1.cfm).

  • For each product page we have multiple conversion page that is to say within the product page we have a list of links which point to other pages generate by the convesion page template (conversion_page.cfm)

It is possible to achieve this with GWO?

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

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

发布评论

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

评论(3

窗影残 2024-12-07 18:40:22

不容易,除非您想使用 Ajax。您可以进行重定向,没问题,但 URL 将会发生变化。以下是您的选择:

  1. 创建多变量测试(不是 AB)。
  2. 在页面头部添加页面部分。
  3. 创建一种插入 javascript 的变体,该 javascript 将读取当前 URL 并重定向到适当的 URL(解析当前 URL)。
  4. 确保跟踪代码位于该页面的两个版本上。
  5. 将目标跟踪添加到您的转化页面(他们如何到达那里并不重要,重要的是他们到达那里)。

避免 URL 更改的唯一方法(如果从 SEO 的角度来看,您不应该担心,但如果您的客户共享您的链接,那么这就是一个问题),您必须使用一些魔法。

一种选择是根据添加到 URL 的参数进行 URL 重写(接近,但不是相同的 URL)。

另一种选择是让头部的 javascript 简单地对新 URL 进行 ajax 调用,并用新 URL 替换整个文档的内容。应该很简单,但我不是那个告诉你如何做的人 - 不知道。

Not easily, unless you want to use Ajax. You can do the redirect, no problem, but you're going to get a URL change. Here are your options:

  1. Create a multivariate test (not an AB).
  2. Add a page section in the page's head.
  3. Create a variation that inserts javascript that will read the current url and redirect to the appropriate one (parsing the current URL).
  4. Make sure the tracking code is on both versions of the page.
  5. Add the goal tracking to your conversion page (how they get there doesn't matter, only that they get there).

The only way to avoid the URL change (and if you're worried from an SEO standpoint you shouldn't be, but if your customers share your links then it is a problem) you'll have to use some magic.

One option would be to do a URL rewrite based on a parameter added to the URL (close, but not the same URL).

The other option would be to have the javascript in the head simply do an ajax call for the new URL and replace the contents of the entire document with the new one. Should be straightforward, but I am not the guy to tell you how - no idea.

小鸟爱天空丶 2024-12-07 18:40:22

多变量测试它是适合本实验的 gwo 类型。使用 A/B 测试不可能实现这个实验,因为我需要两个不同的 url。思考这个问题的方法不是根据我在服务器端使用的模板,而是根据我输出给用户的页面。所以我设置了这样的内容:

对于每个产品页面,我们都有多个转换页面,也就是说,在产品页面中,我们有一个链接列表,这些链接指向由转换页面模板 (conversion_page.cfm) 生成的其他页面

我只需将转换脚本添加到每个页面即可。

Multivariate test it is the right type of gwo for this experiment. With A/B Testing It is not posible to achieve this experimente because I need two different urls . The way to think of this is not in terms of the templates I use server-side, but instead the pages I output to users. So I set up something like this:

For each product page we have multiple conversion page that is to say Within the product page we have a list of links which point to other pages generate by the convesion page template (conversion_page.cfm)

I simply add the conversion script to each page.

太阳哥哥 2024-12-07 18:40:22

有一种方法,你有点肮脏。我偶然发现了与您相同的问题,并通过创建简单的 A/B 测试解决了它。在每个变体(除了原始变体)中,我只做了一个更改 - 添加小 JS 片段以在标签中重定向。步骤如下:

  1. 创建正常 A/B 测试

  2. 创建变体 A

  3. 进入 UI 编辑器,然后在左上角会找到正方形
    弹出“选择元素”模式的图标。
  4. 输入“head”,然后在模态的右下角,
    选择“添加更改->” Javascript'
  5. 您面前应该有编辑器,您可以在其中添加代码片段:

    if (document.location.search.indexOf('variant=a') === -1) {
      文档.location.href = 文档.location.href + '?variant=a'
    }
    

    这将通过重定向来实现重定向。如果您需要保留其他 GET 参数,则需要使此代码段更加智能。

  6. 确保选择“打开标签后”选项。
  7. 现在,您可以转到“定位”选项卡并设置正则表达式匹配,以匹配要运行测试的动态 URL。在您的情况下,这将是“http://example.com/product-title/([\w-]+)”。

这里的权衡是用户将看到初始眨眼。但是,您应该能够使用 Google Optimize 定位、客观测量、分析和报告。

There's a way, bit dirty one thou. I've stumbled across the same issue as you did, and solved it with creating simple A/B test. At the each variant (expect for the original), I've made just one change - adding small JS snippet for redirect in tag. Here are the steps:

  1. Create normal A/B test

  2. Create Variant A

  3. Go into UI editor, and in the top left corner you'll find square
    icon which pops up 'Select Elements' modal.
  4. There enter 'head', and in the bottom right corner of the modal,
    select 'Add Change -> Javascript'
  5. You should have editor in front of you, where you can add snippet:

    if (document.location.search.indexOf('variant=a') === -1) {
      document.location.href = document.location.href + '?variant=a'
    }
    

    This will redirect do the trick with redirecting. You'll need to make this snippet bit more smarter if you'll need to preserve other GET parameters.

  6. Make sure you select 'after opening tag' option.
  7. Now, you can go to 'Targeting' tab and set a regex matching for matching dynamic URLs you want to run tests on. In your case that would be 'http://example.com/product-title/([\w-]+)'.

Tradeoff here is that user will see initial blink. However, you should be able to get use of Google Optimize targeting, objective measuring, analytics and reports.

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