mountain-goat 0.0.19 → 0.0.20

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -18,6 +18,7 @@ This will track a conversion not only for the goal, but for the variant of "home
18
18
  The best part? The mountain-goat admin console is located on your server and you can view and analyze your data in real time.
19
19
 
20
20
  - See which metric variants are working and not working ("Cowabunga!" did 120% better than "Enter here", but 10% worse than "Do it rockapella!")
21
+ - A/B testing? How about A/B/C/D/E testing?
21
22
  - Visually analyze the your metric variants; change them on the fly, adding new ones.
22
23
  - Watch goal conversions in real-time with live-action console (grab the popcorn and watch how your users "sign up" and "view items" and ...)
23
24
  - You can do more than change text, "switch variants" let you enter arbitrary ruby code, change the control of your site ("Do my users have to sign-in before commenting? Let's test!")
@@ -44,6 +45,10 @@ This will generate
44
45
  /config/mountain-goat.yml (for storing a password to access mountain-goat)
45
46
  /db/migrate/xxx_create_mountain_goat_tables.rb (necessary databae migrations to store mg data)
46
47
 
48
+ Run your new migration
49
+
50
+ db:migrate
51
+
47
52
  ## Usage
48
53
 
49
54
  Mountain Goat hinges around three core concepts:
@@ -62,20 +67,42 @@ The metric_variant function (or, mv for short) takes three parameters:
62
67
 
63
68
  This will automatically create a metric and conversion and populate a metric variant with the default value. Easy, eh?
64
69
 
65
- From here, you can go into the mountain-goat admin center and add new metric variants to fit your need. The other important code you'll need to implement is when a goal is achieved.
70
+ From here, you can go into the mountain goat admin center and add new metric variants to fit your need. It's all built-in to *your* application, in house.
71
+
72
+ http://{your_rails_app}/mg (e.g. if you're at railsrocks.com, then visit http://railsrocks.com/mg)
73
+
74
+ The other important code you'll need to implement is to tell the system when a goal is achieved.
66
75
 
67
- def purchase #coffees_controller.rb
76
+ def purchase #in coffees_controller.rb
68
77
  record_conversion(:user_purchases_coffee)
69
78
  ...
70
79
  end
71
80
 
72
- This will go in and record a conversion ("rally") for a user purchasing coffee. Further, it will track a hit for any metric-variants served to that user that relate to this goal. For example "Chuck Norris works here" might get a point.
81
+ This will go in and record a conversion (a "rally") for a user purchasing coffee. Further, it will track a hit for any metric-variants served to that user that relate to this goal. For example "Chuck Norris works here" might get one point. You will see which metrics lead to a conversion; this is the core of A/B testing.
73
82
 
74
83
  ## Mountain Goat admin suite
75
84
 
76
- Navigate to /mg in your application to reach the mountain-goat admin center. Here, you can analyze / adjust your A/B tests.
77
-
85
+ Navigate to /mg in your rails application (on your actual server instance) to reach the mountain-goat admin center. Here, you can analyze / adjust your A/B tests.
86
+
78
87
  The front page gives you a breakdown of each of your Goals, and the efficacy of each metric and metric-variant. Select a given metric to drill into its variants. Once you are in a specific metric, you'll be able to add new metric-variants and see what works best for your clients.
88
+
89
+ ###Goals
90
+
91
+ Goals show you what users are doing. Are they purchasing coffee? Are they logging in? Are they posting flames on your message board? You can measure all of these things!
92
+
93
+ In the Goals section, you'll get a break down of your goals and what metrics are leading in conversions. Don't see anything here? Add some metrics / goals / metric-variants from the code above. Hint: Add meta data (see below) to see meta data associated with your conversions
94
+
95
+ ###Metrics
96
+
97
+ Go to "Metrics" and visit a specific metric. You'll see which metric variants are getting the highest conversion rates. Does having the font on the homescreen large draw more people into signing up, or does it turn people away? This is where you can check and see. Click 'New variant' below to add additional variants for testing.
98
+
99
+ * Click into a metric to explore (see above on how to create metrics from within your code-base)
100
+ * Charts show you visually which variants are doing better than others
101
+ * "Add variant" to add new variants for this metric
102
+
103
+ ###Rallies
104
+
105
+ Rallies shows you what's going on, in real time. You will see conversions (goals) being hit by your clients in real time. Grab a bag of pop-corn and watch users struggle (or glide) across your site. Add meta data to get further information. This page automatically updates as new rallies come in.
79
106
 
80
107
  ## Advanced Features
81
108
 
@@ -31,7 +31,7 @@
31
31
  } else {
32
32
  $('.recent-rally').data('rally-id', json.recent_rally_id);
33
33
  $('.rally-list').prepend($(json.result));
34
- $('.rally-list li:gt(100)').remove(); //only show 100 elements
34
+ $('ul.rally-list > li.rally:gt(100)').remove(); //only show 100 elements
35
35
 
36
36
  if ($('.rally-list abbr.time-ago').size() > 0) {
37
37
  $('.rally-list abbr.time-ago').timeago();
@@ -1,3 +1,3 @@
1
1
  class MountainGoat
2
- VERSION = "0.0.19"
2
+ VERSION = "0.0.20"
3
3
  end
@@ -3,7 +3,9 @@
3
3
  <li class="rally" data-rally-id="<%= rally.id %>"><span class="name"><%= rally.convert.name %></span>
4
4
  <ul>
5
5
  <% rally.all_metas.each do |k,v| %>
6
- <li><%= k %>: <%= v %></li>
6
+ <% if !v.blank? %>
7
+ <li><%= k %>: <%= v %></li>
8
+ <% end %>
7
9
  <% end %>
8
10
  </ul>
9
11
  <span class="time"><%= content_tag(:abbr, rally.created_at.to_s, :title => rally.created_at.getutc.iso8601, :class => "time-ago") %></span>
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mountain-goat
3
3
  version: !ruby/object:Gem::Version
4
- hash: 57
4
+ hash: 55
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 19
10
- version: 0.0.19
9
+ - 20
10
+ version: 0.0.20
11
11
  platform: ruby
12
12
  authors:
13
13
  - Geoffrey Hayes