Reputation: 1112
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?
Upvotes: 0
Views: 1289
Reputation: 116
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:
Create normal A/B test
Create Variant A
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.
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.
Upvotes: 0
Reputation: 1112
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.
Upvotes: 0
Reputation: 120
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:
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.
Upvotes: 1