gwo
gwo copied to clipboard
Rails plugin integrating Google Web Optimizer for AB tests
GWO
Rails plugin for Google Website Optimizer which easily allows AB testing. http://www.google.com/websiteoptimizer
This plugin also allows dynamic content, which GWO doesn't natively support.
The 'Usage' may look long - but it's fairly straightforward and shouldn't take 5 mins.
Alex MacCaw - [email protected]
Usage
To use GWO, you need two pages:
- A test page containing the AB sections
- A page that signifies conversion (i.e. account creation page)
Signup for GWO and:
- Click create another experiment
- Click multivariate experiment
- Name it and enter the test/conversion urls
- Select 'You will install and validate the JavaScript tags'
- Ignore the scripts that are offered, but strip out your account id (uacct) and test id (in the Tracking Script). They look like this: _uacct = 'UA-6882082-1'; urchinTracker("/1662461989/test"); So, in this example the uacct is 'UA-6882082-1' and the test id is 1662461989.
- Add the gwo_start tag after your opening tag, passing your uacct.
- Create your gwo_sections, as in the example.
- Add the helper method 'gwo' before the closing tag, passing the default section, uacct and test id as arguments.
- Deploy and validate the scripts in GWO
- Enter sections for each of the named gwo_section helper tags, the content of the section should look like this: GWO("section_name")
- Add a gwo_conversion helper tag on your conversion page passing in your uacct and test id.
- Deploy and complete GWO wizard
- Start recording stats & profit!
Example
<% gwo_section(:main) do %> Some default dynamic content <%= Time.now.to_i %> <% end %>
<% gwo_section(:main2) do %> Some different dynamic content <%= Time.now.to_i %> <% end %>
<% gwo_section(:main3) do %> Some really good dynamic content <%= Time.now.to_i %> <% end %>
<%= gwo(:main, 'UA-23902382-1', 1909920434) %>
Conversion page
<%= gwo_conversion('UA-23902382-1', 1909920434) %>
Copyright (c) 2009 Made by Many, released under the MIT license