moviepilot-gwo 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +77 -70
- metadata +3 -2
data/README.markdown
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
NOTE: CURRENTLY THIS WORKS ONLY WITH HAML ... I HAVE TO FIX IT IN ORDER TO GET IT RUNNING WITH ERB
|
2
|
+
|
3
|
+
|
1
4
|
This is a Ruby on Rails plugin (gem) which simplifies Server-Side Dynamic Section Variations with
|
2
5
|
[Google Website Optimizer](http://www.google.com/websiteoptimizer) as described in the article
|
3
6
|
[Server-Side Dynamic Section Variations on gwotricks.com](http://www.gwotricks.com/2009/05/server-side-dynamic-section-variations.html)
|
@@ -27,94 +30,98 @@ To use GWO, you need two pages:
|
|
27
30
|
* A page that signifies conversion (i.e. account creation page)
|
28
31
|
|
29
32
|
[Signup for Google Website Optimizer and](http://www.google.com/websiteoptimizer):
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
33
|
+
|
34
|
+
1. Click create another experiment
|
35
|
+
2. Click multivariate experiment
|
36
|
+
3. Name it and enter the test/conversion urls
|
37
|
+
4. Select 'You will install and validate the JavaScript tags'
|
38
|
+
5. Ignore the scripts that are offered, but strip out your account id (uacct) and test id (both to be found in the Tracking Script).
|
35
39
|
They look like as follows:
|
36
|
-
|
37
|
-
|
40
|
+
var pageTracker=_gat._getTracker("UI-6882082-1");
|
41
|
+
pageTracker._trackPageview("/1662461989/test");
|
38
42
|
So, in this example the uacct is 'UA-6882082-1' and the test id is 1662461989.
|
39
|
-
6. Leave google and prepare your source code
|
40
|
-
7. Add the gwo_experiment tag around the code that is supposed to contain the variants (see the gwo_experiment documentation for
|
41
|
-
|
42
|
-
8. in the gwo_experiment you can specify one or more sections your side can contain. Each section can have several
|
43
|
-
|
44
|
-
|
45
|
-
9. Create your gwo_sections, as in the example. The first parameter is the name of the section,
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
10. The variants can either be identified by numbers (starting at 0 for the original variant) or be named (see below how to
|
50
|
-
|
51
|
-
11. Add a gwo_conversion helper tag on your conversion page passing in your uacct and test id.
|
52
|
-
12. In order to validate the pages in the goole web interface, start rails, surf to the pages (variant and conversion page) you
|
53
|
-
|
54
|
-
13. back in the google web interface, validate your pages by using the 'offline validation' link and upload the two
|
55
|
-
|
56
|
-
14. as a next step, define the sections. If you used named identifiers in you rails source code, put the the identifiers
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
15. finish up and start the experiment
|
62
|
-
16. lean back and let google collect data for you for the next few days ... go back an be shocked about the little number of
|
63
|
-
|
64
|
-
|
43
|
+
6. Leave google and prepare your source code
|
44
|
+
7. Add the gwo_experiment tag around the code that is supposed to contain the variants (see the gwo_experiment documentation for
|
45
|
+
possible options)
|
46
|
+
8. in the gwo_experiment you can specify one or more sections your side can contain. Each section can have several
|
47
|
+
variants. So if you have for example 2 sections with each having 3 variants you would have 6 different possible
|
48
|
+
combinations on your page.
|
49
|
+
9. Create your gwo_sections, as in the example. The first parameter is the name of the section,
|
50
|
+
the second the name of the variant(s) in which the following code should be shown (see example code).
|
51
|
+
You can mix variants by just passing in more than one identifier. The
|
52
|
+
original variant has the reserved identifier :original (or 0 if you use numbers)
|
53
|
+
10. The variants can either be identified by numbers (starting at 0 for the original variant) or be named (see below how to
|
54
|
+
assign the names in the google web interface).
|
55
|
+
11. Add a gwo_conversion helper tag on your conversion page passing in your uacct and test id.
|
56
|
+
12. In order to validate the pages in the goole web interface, start rails, surf to the pages (variant and conversion page) you
|
57
|
+
just created and save each one locally.
|
58
|
+
13. back in the google web interface, validate your pages by using the 'offline validation' link and upload the two
|
59
|
+
pages you just saved
|
60
|
+
14. as a next step, define the sections. If you used named identifiers in you rails source code, put the the identifiers
|
61
|
+
name as the content of the variations in the web interface (i.e. the example below would have two variants (+ the original
|
62
|
+
variant); one variation would have the CONTENT (subject & name of the variants are not important) 'minimalistic' and the other
|
63
|
+
'with_sidebar_and_top_signup_box' (without the quotes)). If you use numbered identifiers, just create new variations and leave the
|
64
|
+
content empty.
|
65
|
+
15. finish up and start the experiment
|
66
|
+
16. lean back and let google collect data for you for the next few days ... go back an be shocked about the little number of
|
67
|
+
conversions you will probably get ;)
|
68
|
+
|
65
69
|
|
66
70
|
== Example
|
67
71
|
----------
|
68
72
|
... in haml:
|
69
73
|
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
74
|
+
= gwo_experiment("1662461989", "UA-6882082-1", :signup_box_test, :conditions => (signed_up? && country == "de")) do
|
75
|
+
= gwo_section(:signup_box_test, [:with_sidebar_and_top_signup_box, :minimalistic], :ga_tracking => true, :conditions => (signed_up? && country == "de")) do
|
76
|
+
= render :partial => 'gossib/signup'
|
77
|
+
%span I am only visible in the variants :with_sidebar_and_top_signup_box and :minimalistic
|
78
|
+
|
79
|
+
= gwo_section(:signup_box_test, [:original, :with_sidebar_and_top_signup_box], :conditions => (signed_up? && country == "de")) do
|
80
|
+
= render :partial => 'gossib/bookmark_menu'
|
81
|
+
= render :partial => 'gossip/pics', :locals => {:images => @article.images}
|
82
|
+
.box#
|
83
|
+
%span Hi hi ... I am not visible in :minimalistic
|
84
|
+
|
85
|
+
%span I am visible in every variation
|
86
|
+
|
87
|
+
= gwo_section(:signup_box_test, :original, :conditions => (signed_up? && country == "de")) do
|
88
|
+
%span I am only in the original page
|
85
89
|
|
86
90
|
... or in erb:
|
87
91
|
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
92
|
+
<% gwo_experiment("1662461989", "UA-6882082-1", :signup_box_test, :conditions => (signed_up? && country == "de")) do %>
|
93
|
+
<% render :partial => 'gossip/article.html.haml', :object => @article %>
|
94
|
+
|
95
|
+
<% gwo_section(:signup_box_test, [:with_sidebar_and_top_signup_box, :minimalistic], :conditions => (signed_up? && country == "de")) do %>
|
96
|
+
<%= render :partial => 'gossib/signup' %>
|
97
|
+
<span> I am only visible in the variants :with_sidebar_and_top_signup_box and :minimalistic</span>
|
98
|
+
<% end %>
|
99
|
+
|
100
|
+
<% gwo_section(:signup_box_test, [:original, :with_sidebar_and_top_signup_box], :conditions => (signed_up? && country == "de")) do %>
|
101
|
+
<%= render :partial => 'gossib/bookmark_menu' %>
|
102
|
+
<%= render :partial => 'gossip/pics', :locals => {:images => @article.images} %>
|
103
|
+
<div class="box">
|
104
|
+
<span> Hi hi ... I am not visible in :minimalistic</span>
|
105
|
+
<% end %>
|
106
|
+
|
107
|
+
<span> I am visible in every variation</span>
|
108
|
+
|
109
|
+
<% gwo_section(:signup_box_test, :original, :conditions => (signed_up? && country == "de")) do %>
|
110
|
+
<span> I am only in the original page</span>
|
111
|
+
<% end %>
|
107
112
|
<% end %>
|
108
|
-
<% end %>
|
109
113
|
|
110
114
|
|
111
115
|
== Conversion page:
|
112
116
|
------------------
|
113
117
|
... haml:
|
114
|
-
|
118
|
+
|
119
|
+
= gwo_conversion('UA-23902382-1', '1909920434')
|
115
120
|
|
116
121
|
... erb:
|
117
|
-
|
122
|
+
|
123
|
+
<%= gwo_conversion('UA-23902382-1', '1909920434') %>
|
124
|
+
|
118
125
|
|
119
126
|
|
120
127
|
Copyright (c) 2009 Made by Many, released under the MIT license
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moviepilot-gwo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex MacCaw
|
@@ -33,6 +33,7 @@ files:
|
|
33
33
|
- rails/init.rb
|
34
34
|
has_rdoc: true
|
35
35
|
homepage: http://github.com/kesselborn/gwo
|
36
|
+
licenses:
|
36
37
|
post_install_message:
|
37
38
|
rdoc_options:
|
38
39
|
- --line-numbers
|
@@ -54,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
55
|
requirements: []
|
55
56
|
|
56
57
|
rubyforge_project:
|
57
|
-
rubygems_version: 1.
|
58
|
+
rubygems_version: 1.3.5
|
58
59
|
signing_key:
|
59
60
|
specification_version: 2
|
60
61
|
summary: Plugin to easily make use of Server-Side Dynamic Section Variations with Google Web Optimizer
|