Adds Helper Methods for Google Website Optimizer.
NOTE: Assumes using you are already using ga.js for google analytics tracking.
NOTE: Will output urchin.js tracking code when in development environment for validation but will output ga.js tracking in production. See www.google.com/support/websiteoptimizer/bin/answer.py?hl=en&answer=77083 for explanation.
Add your Website Optimizer account id to config/environment.rb
WebsiteOptimizerHelper.account_id = 'UA-xxxxx-x'
Add/Verify yields in templates.
<%= yield :head %>
<%= yield :website_optimizer_tracking %>
<% gwo_multivariate 'TEST_ID', 'DESCRIPTION' do -%> CONTROL CONTENT <% end -%>
<% gwo_conversion_script('TEST_ID') -%>
<% gwo_ab_control('TEST_ID') -%>
<% gwo_ab_variation('TEST_ID') -%>
<% gwo_conversion_script('TEST_ID') -%>
Copyright © 2008 KidZui inc., released under the MIT license