mitamirri 0.13.8 → 2.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (236) hide show
  1. data/Capfile +4 -0
  2. data/Gemfile +29 -0
  3. data/README.rdoc +6 -55
  4. data/Rakefile +34 -21
  5. data/VERSION +1 -1
  6. data/app/controllers/admin/tracking/reports_controller.rb +78 -0
  7. data/app/controllers/admin/tracking/trackable_sessions_controller.rb +7 -0
  8. data/app/controllers/application_controller.rb +1 -8
  9. data/app/controllers/trackable_actions_controller.rb +0 -2
  10. data/app/helpers/application_helper.rb +21 -0
  11. data/app/helpers/layout_helper.rb +18 -0
  12. data/app/models/content_report.rb +35 -0
  13. data/app/models/content_stat.rb +4 -0
  14. data/app/models/destination.rb +4 -0
  15. data/app/models/intersite_traffic_report.rb +47 -0
  16. data/app/models/keyword_stat.rb +4 -0
  17. data/app/models/lead.rb +3 -0
  18. data/app/models/lead_stat.rb +5 -0
  19. data/app/models/leads_report.rb +32 -0
  20. data/app/models/location_stat.rb +37 -0
  21. data/app/models/referrer_stat.rb +4 -0
  22. data/app/models/report.rb +83 -0
  23. data/app/models/stat_base.rb +11 -0
  24. data/app/models/trackable_action.rb +114 -91
  25. data/app/models/trackable_base.rb +12 -0
  26. data/app/models/trackable_location.rb +7 -13
  27. data/app/models/trackable_session.rb +255 -171
  28. data/app/models/trackable_stat.rb +45 -27
  29. data/app/models/traffic_explorer_report.rb +92 -0
  30. data/app/models/traffic_summary_report.rb +142 -0
  31. data/app/models/user_agent_stat.rb +4 -0
  32. data/app/models/visit.rb +6 -0
  33. data/app/models/visit_stat.rb +5 -0
  34. data/app/models/visitor.rb +4 -0
  35. data/app/models/visitor_profile_report.rb +23 -0
  36. data/app/views/admin/tracking/reports/_content.html.erb +28 -0
  37. data/app/views/admin/tracking/reports/_conversion_rate.html.erb +30 -0
  38. data/app/views/admin/tracking/reports/_criteria.html.erb +33 -0
  39. data/app/views/admin/tracking/reports/_entrance_pages.html.erb +29 -0
  40. data/app/views/admin/tracking/reports/_exit_pages.html.erb +28 -0
  41. data/app/views/admin/tracking/reports/_explorer_criteria.html.erb +22 -0
  42. data/app/views/admin/tracking/reports/_explorer_summary.html.erb +22 -0
  43. data/app/views/admin/tracking/reports/_intersite_destinations.html.erb +28 -0
  44. data/app/views/admin/tracking/reports/_intersite_referrals.html.erb +30 -0
  45. data/app/views/admin/tracking/reports/_leads.html.erb +30 -0
  46. data/app/views/admin/tracking/reports/_locations.html.erb +47 -0
  47. data/app/views/admin/tracking/reports/_recent_visits.html.erb +33 -0
  48. data/app/views/admin/tracking/reports/_referring_keywords.html.erb +28 -0
  49. data/app/views/admin/tracking/reports/_referring_sites.html.erb +28 -0
  50. data/app/views/admin/tracking/reports/_traffic_summary.html.erb +26 -0
  51. data/app/views/admin/tracking/reports/_user_agents.html.erb +28 -0
  52. data/app/views/{trackable_sessions/_visits_graph.html.erb → admin/tracking/reports/_visits_by_kind.html.erb} +3 -3
  53. data/app/views/admin/tracking/reports/content.html.erb +12 -0
  54. data/app/views/admin/tracking/reports/explorer.html.erb +13 -0
  55. data/app/views/admin/tracking/reports/index.html.erb +16 -0
  56. data/app/views/admin/tracking/reports/intersite.html.erb +11 -0
  57. data/app/views/admin/tracking/reports/leads.html.erb +11 -0
  58. data/app/views/admin/tracking/reports/summary.html.erb +16 -0
  59. data/app/views/admin/tracking/reports/visitor_profile.html.erb +11 -0
  60. data/app/views/{trackable_sessions → admin/tracking/trackable_sessions}/show.html.erb +5 -4
  61. data/app/views/layouts/application.html.erb +51 -18
  62. data/config.ru +4 -0
  63. data/config/application.rb +13 -0
  64. data/config/boot.rb +13 -110
  65. data/config/cucumber.yml +10 -0
  66. data/config/deploy.rb +40 -0
  67. data/config/environment.rb +4 -23
  68. data/config/environments/development.rb +24 -13
  69. data/config/environments/production.rb +41 -20
  70. data/config/environments/test.rb +28 -24
  71. data/config/initializers/formats.rb +19 -0
  72. data/config/initializers/metric_fu.rb +9 -0
  73. data/config/initializers/secret_token.rb +7 -0
  74. data/config/initializers/session_store.rb +3 -10
  75. data/config/locales/en.yml +1 -1
  76. data/config/mongoid.yml +19 -0
  77. data/config/routes.rb +16 -10
  78. data/features/access_reports.feature +26 -0
  79. data/features/step_definitions/reports_steps.rb +9 -0
  80. data/features/step_definitions/web_steps.rb +219 -0
  81. data/features/support/env.rb +32 -0
  82. data/features/support/hooks.rb +1 -0
  83. data/features/support/paths.rb +33 -0
  84. data/features/traffic_summary_report.feature +43 -0
  85. data/init.rb +0 -7
  86. data/lib/mitamirri.rb +9 -12
  87. data/lib/mitamirri/engine.rb +7 -0
  88. data/lib/mitamirri/helper.rb +13 -29
  89. data/lib/mitamirri/railtie.rb +10 -0
  90. data/lib/tasks/cucumber.rake +60 -0
  91. data/lib/tasks/rcov.rake +44 -0
  92. data/mitamirri.gemspec +228 -100
  93. data/public/404.html +26 -0
  94. data/public/422.html +26 -0
  95. data/public/500.html +26 -0
  96. data/{config/database.yml → public/favicon.ico} +0 -0
  97. data/public/images/icons/add.png +0 -0
  98. data/public/images/icons/collapsed.gif +0 -0
  99. data/public/images/icons/delete.png +0 -0
  100. data/public/images/icons/drag.png +0 -0
  101. data/public/images/icons/edit.png +0 -0
  102. data/public/images/icons/expanded.gif +0 -0
  103. data/public/images/icons/help_icon.png +0 -0
  104. data/public/images/icons/link_icon.png +0 -0
  105. data/public/images/icons/move.png +0 -0
  106. data/public/images/icons/move_white.png +0 -0
  107. data/public/images/icons/note.png +0 -0
  108. data/public/images/icons/note_white.png +0 -0
  109. data/public/images/icons/notification_icon_sprite.png +0 -0
  110. data/public/images/icons/spinner.gif +0 -0
  111. data/public/images/icons/view.png +0 -0
  112. data/public/images/icons/warning.png +0 -0
  113. data/public/images/icons/warning_2.png +0 -0
  114. data/public/images/icons/warning_box.png +0 -0
  115. data/public/images/icons/warning_icon.png +0 -0
  116. data/public/images/icons/warning_white.png +0 -0
  117. data/public/images/layout/arrow_asc.png +0 -0
  118. data/public/images/layout/arrow_desc.png +0 -0
  119. data/public/images/layout/back.png +0 -0
  120. data/public/images/layout/black_bar.png +0 -0
  121. data/public/images/layout/branding.png +0 -0
  122. data/public/images/layout/breadcrumb_bg.png +0 -0
  123. data/public/images/layout/button_bg.png +0 -0
  124. data/public/images/layout/content_left_bg.png +0 -0
  125. data/public/images/layout/content_right_bg.png +0 -0
  126. data/public/images/layout/footer_bg.png +0 -0
  127. data/public/images/layout/h1_bg.png +0 -0
  128. data/public/images/layout/h2_bg.png +0 -0
  129. data/public/images/layout/h2_bg_for_table.png +0 -0
  130. data/public/images/layout/header_bg_grey.png +0 -0
  131. data/public/images/layout/header_bg_purple.png +0 -0
  132. data/public/images/layout/legend_bg.png +0 -0
  133. data/public/images/layout/menu_box_bg.png +0 -0
  134. data/public/images/layout/shadow_border.png +0 -0
  135. data/public/images/layout/shadow_border_2.png +0 -0
  136. data/public/images/layout/shadow_border_3.png +0 -0
  137. data/public/images/layout/shadow_border_4.png +0 -0
  138. data/public/images/layout/tab.png +0 -0
  139. data/public/images/layout/tab_active.png +0 -0
  140. data/public/images/layout/table_header.png +0 -0
  141. data/public/images/layout/text_field_bg.jpg +0 -0
  142. data/public/images/layout/text_field_error_bg.png +0 -0
  143. data/public/images/layout/th_bg.png +0 -0
  144. data/public/images/layout/th_bg_selected.png +0 -0
  145. data/public/images/menu_icons/content_report.png +0 -0
  146. data/public/images/menu_icons/content_report_on.png +0 -0
  147. data/public/images/menu_icons/funnel.png +0 -0
  148. data/public/images/menu_icons/funnel_on.png +0 -0
  149. data/public/images/menu_icons/intersite_traffic.png +0 -0
  150. data/public/images/menu_icons/intersite_traffic_on.png +0 -0
  151. data/public/images/menu_icons/leads.png +0 -0
  152. data/public/images/menu_icons/leads_on.png +0 -0
  153. data/public/images/menu_icons/traffic_explorer.png +0 -0
  154. data/public/images/menu_icons/traffic_explorer_on.png +0 -0
  155. data/public/images/menu_icons/traffic_summary.png +0 -0
  156. data/public/images/menu_icons/traffic_summary_on.png +0 -0
  157. data/public/images/menu_icons/visitor_profile.png +0 -0
  158. data/public/images/menu_icons/visitor_profile_on.png +0 -0
  159. data/public/index.html +8 -0
  160. data/public/javascripts/application.js +2 -0
  161. data/public/javascripts/controls.js +965 -0
  162. data/public/javascripts/dragdrop.js +974 -0
  163. data/public/javascripts/effects.js +1123 -0
  164. data/public/javascripts/prototype.js +6001 -0
  165. data/public/javascripts/rails.js +175 -0
  166. data/public/robots.txt +5 -0
  167. data/public/stylesheets/.gitkeep +0 -0
  168. data/public/stylesheets/application.css +876 -0
  169. data/public/stylesheets/core.css +1146 -0
  170. data/public/stylesheets/core_ie.css +52 -0
  171. data/public/stylesheets/csshover3.htc +14 -0
  172. data/public/stylesheets/mitamirri.css +37 -724
  173. data/public/stylesheets/mitamirri_print.css +3 -0
  174. data/script/cucumber +10 -0
  175. data/script/rails +6 -0
  176. data/spec/blueprints.rb +13 -0
  177. data/spec/helpers/application_helper_spec.rb +23 -35
  178. data/spec/{lib → models}/content_report_spec.rb +12 -8
  179. data/spec/{lib → models}/intersite_traffic_report_spec.rb +6 -9
  180. data/spec/{lib → models}/leads_report_spec.rb +11 -12
  181. data/spec/models/location_stat_spec.rb +18 -0
  182. data/spec/models/trackable_action_spec.rb +46 -14
  183. data/spec/models/trackable_base_spec.rb +27 -0
  184. data/spec/models/trackable_session_spec.rb +181 -57
  185. data/spec/{lib/session_report_spec.rb → models/traffic_explorer_report_spec.rb} +8 -25
  186. data/spec/spec_helper.rb +8 -28
  187. data/{lib/mitamirri/tasks.rb → tasks/mitamirri.rake} +6 -7
  188. data/vendor/plugins/.gitkeep +0 -0
  189. metadata +316 -77
  190. data/.gitignore +0 -26
  191. data/app/controllers/trackable_sessions_controller.rb +0 -100
  192. data/app/views/trackable_sessions/_keywords_graph.html.erb +0 -24
  193. data/app/views/trackable_sessions/_print_buttons.html.erb +0 -3
  194. data/app/views/trackable_sessions/_sessions.html.erb +0 -26
  195. data/app/views/trackable_sessions/_top_referrers.html.erb +0 -24
  196. data/app/views/trackable_sessions/_traffic_summary_all.html.erb +0 -64
  197. data/app/views/trackable_sessions/_traffic_summary_by_kind.html.erb +0 -48
  198. data/app/views/trackable_sessions/content.html.erb +0 -119
  199. data/app/views/trackable_sessions/explorer.html.erb +0 -67
  200. data/app/views/trackable_sessions/export.xls.erb +0 -5
  201. data/app/views/trackable_sessions/index.html.erb +0 -47
  202. data/app/views/trackable_sessions/intersite.html.erb +0 -97
  203. data/app/views/trackable_sessions/leads.html.erb +0 -98
  204. data/app/views/trackable_sessions/visitor_profile.html.erb +0 -114
  205. data/config/initializers/backtrace_silencers.rb +0 -7
  206. data/config/initializers/database.rb +0 -1
  207. data/config/initializers/inflections.rb +0 -10
  208. data/config/initializers/mime_types.rb +0 -5
  209. data/config/initializers/new_rails_defaults.rb +0 -21
  210. data/db/development.sqlite3 +0 -0
  211. data/db/migrate/20100810173533_create_trackable_sessions.rb +0 -23
  212. data/db/migrate/20100810173605_create_trackable_actions.rb +0 -20
  213. data/db/test.sqlite3 +0 -1
  214. data/lib/mitamirri/content_report.rb +0 -75
  215. data/lib/mitamirri/intersite_traffic_report.rb +0 -122
  216. data/lib/mitamirri/leads_report.rb +0 -90
  217. data/lib/mitamirri/session_report.rb +0 -219
  218. data/lib/mitamirri/stat_report.rb +0 -216
  219. data/lib/mitamirri/visitor_profile_report.rb +0 -127
  220. data/script/about +0 -4
  221. data/script/console +0 -3
  222. data/script/dbconsole +0 -3
  223. data/script/destroy +0 -3
  224. data/script/generate +0 -3
  225. data/script/performance/benchmarker +0 -3
  226. data/script/performance/profiler +0 -3
  227. data/script/plugin +0 -3
  228. data/script/runner +0 -3
  229. data/script/server +0 -3
  230. data/spec/controllers/trackable_actions_controller_spec.rb +0 -5
  231. data/spec/controllers/trackable_sessions_controller_spec.rb +0 -5
  232. data/spec/custom_matchers.rb +0 -23
  233. data/spec/lib/stat_report_spec.rb +0 -106
  234. data/spec/rcov.opts +0 -4
  235. data/spec/schema.rb +0 -34
  236. data/spec/spec.opts +0 -4
data/.gitignore DELETED
@@ -1,26 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC
22
- log/*
23
- doc/*
24
- mitamirri.sqlite3.db
25
- spec/debug.log
26
-
@@ -1,100 +0,0 @@
1
- class TrackableSessionsController < ApplicationController
2
-
3
- Mime::Type.register "application/vnd.ms-excel", :xls
4
-
5
- def index
6
- @sites = (TrackableStat.sites + ["All Sites"]).sort
7
- @time_periods = ["Past 3 Months", "Past 6 Months", "Past 12 Months"]
8
- params[:time_period] ||= 'past 3 months'
9
- if params[:site]
10
- @sessions = TrackableSession.search(params).all(:order => :created_at.desc, :limit => 25)
11
- @report = Mitamirri::StatReport.new(params)
12
- @visits = @report.visits(params)
13
- @visits_series = @visits.map{|v| v.stats}
14
- @keywords_series = Mitamirri::StatReport.keywords_by_frequency(params)
15
- @referrers_series = Mitamirri::StatReport.top_referrers(params)
16
- end
17
- end
18
-
19
- def content
20
- @sites = (TrackableStat.sites + ["All Sites"]).sort
21
- @time_periods = ["past 3 months", "past 6 months", "past 12 months"]
22
- params[:time_period] ||= 'past 3 months'
23
- params[:visit_kind] ||= 'All'
24
- if params[:site]
25
- params[:visit_kind] = 'all' if params[:visit_kind] == 'total'
26
- @report = Mitamirri::ContentReport.new(params)
27
- @pages_series = @report.pages_series(params)
28
- @entrance_pages_series = @report.entrance_pages_series(:site => params[:site], :time_period => params[:time_period])
29
- @exit_pages_series = @report.exit_pages_series(:site => params[:site], :time_period => params[:time_period])
30
- end
31
- end
32
-
33
- def explorer
34
- @sites = (TrackableStat.sites + ["all sites"]).sort
35
- @time_periods = ["past 3 months", "past 6 months", "past 12 months"]
36
- @kinds = TrackableAction.kinds
37
- params[:time_period] ||= 'past 3 months'
38
- params[:visit_kind] ||= 'total'
39
- params[:action_kind] ||= 'conversions'
40
- if params[:site]
41
- params[:visit_kind] = 'all' if params[:visit_kind] == 'total'
42
- @sessions = TrackableSession.search(params).all(:order => :created_at.desc, :limit => 25)
43
- @report = Mitamirri::SessionReport.new(params)
44
- @visits = @report.visits(params)
45
- @visits_series = @visits.map{|v| v.stats}
46
- @keywords_series = Mitamirri::SessionReport.keywords_by_frequency(params)
47
- @referrers_series = Mitamirri::SessionReport.top_referrers(params)
48
- end
49
- end
50
-
51
- def export
52
- @sessions = TrackableSession.search(params).all
53
- respond_to do |format|
54
- format.xls {
55
- headers['Content-Type'] = "application/vnd.ms-excel"
56
- headers['Content-Disposition'] = 'attachment; filename="sessions_export.xls"'
57
- headers['Cache-Control'] = ''
58
- }
59
- end
60
- end
61
-
62
- def leads
63
- @sites = (TrackableStat.sites + ["All Sites"]).sort
64
- @time_periods = ["Past 3 Months", "Past 6 Months", "Past 12 Months"]
65
- params[:time_period] ||= @time_periods.first
66
- if params[:site]
67
- @report = Mitamirri::LeadsReport.new(params)
68
- @leads = @report.leads(params)
69
- @leads_series = @leads.map{|l| l.stats}
70
- end
71
- end
72
-
73
- def intersite
74
- @sites = (TrackableStat.sites + ["All Sites"]).sort
75
- @time_periods = ["Past 3 Months", "Past 6 Months", "Past 12 Months"]
76
- params[:time_period] ||= @time_periods.first
77
- if params[:site]
78
- @report = Mitamirri::IntersiteTrafficReport.new(params)
79
- @total_visits = @report.total_visits(params)
80
- @total_visits_series = @total_visits.map{|v| v.stats}
81
- @destinations_series = @report.destinations(params)
82
- end
83
- end
84
-
85
- def show
86
- @trackable_session = TrackableSession.find(params[:id])
87
- end
88
-
89
- def visitor_profile
90
- @sites = (TrackableStat.sites + ["All Sites"]).sort
91
- @time_periods = ["Past 3 Months", "Past 6 Months", "Past 12 Months"]
92
- params[:time_period] ||= @time_periods.first
93
- if params[:site]
94
- @report = Mitamirri::VisitorProfileReport.new(params)
95
- @user_agents_series = @report.user_agents_by_frequency(params)
96
- @locations_series = @report.locations_by_frequency(params)
97
- end
98
- end
99
-
100
- end
@@ -1,24 +0,0 @@
1
- <fieldset class="form_container">
2
- <%= legend_tag "Top Referring Keywords", :help => 'This graph lists the actual search terms that drove traffic to the selected site(s). Click on each bar for a count of visits using a particular keyword phrase.' -%>
3
- <br />
4
- <div id="keyword_chart" class="chart" style="width: 100%; border: 1px solid #999999; background-color: #ffffff; text-align: center;"></div>
5
-
6
- <%= Seer::visualize(
7
- @keywords_series,
8
- :as => :bar_chart,
9
- :in_element => 'keyword_chart',
10
- :series => {:series_label => 'keyword', :data_method => 'count'},
11
- :chart_options => {
12
- :height => @keywords_series.size * 20,
13
- :width => 900,
14
- :is_3_d => false,
15
- :legend => 'none',
16
- :colors => ["#7e7587"],
17
- :title => "Visit Count by Keyword",
18
- :title_font_size => 9,
19
- :title_x => '',
20
- :axis_font_size => 10
21
- }
22
- )
23
- -%>
24
- </fieldset>
@@ -1,3 +0,0 @@
1
- <%= link_to 'Print', "javascript:print();", :class => 'button' -%>
2
- <%= link_to('Download PDF', "#{request.path}.pdf?#{request.query_string}", :class => 'button', :popup => true) if Mitamirri::pdf_output_enabled? -%>
3
- <%= link_to "Export to Excel", traffic_export_url(params), :class => 'button' if @sessions %>
@@ -1,26 +0,0 @@
1
- <%- if @sessions.blank? -%>
2
- <p>No visits matched your criteria.</p>
3
- <%- else -%>
4
- <table class="standard">
5
- <tr>
6
- <th>Date</th>
7
- <%- if @sites.size > 2 -%><th>Site</th><%- end -%>
8
- <th>Referral Type</th>
9
- <th>Visit Type</th>
10
- <th>Visit Length</th>
11
- <th>Pageviews</th>
12
- <th></th>
13
- </tr>
14
- <%- @sessions.each do |session| -%>
15
- <tr class="<%= cycle('odd', 'even') -%>">
16
- <td><%= session.created_at.to_s(:short_date_time) %></td>
17
- <%- if @sites.size > 2 -%><td><%= session.site %></td><%- end -%>
18
- <td><%= session.kind.titleize %></td>
19
- <td><%= session.visit_type %></td>
20
- <td><%= session.hr_duration %></td>
21
- <td><%= session.views_count %></td>
22
- <td><%= link_to 'Details', session %></td>
23
- </tr>
24
- <%- end -%>
25
- </table>
26
- <%- end -%>
@@ -1,24 +0,0 @@
1
- <fieldset class="form_container">
2
- <%= legend_tag "Top Referring Sites", :help => 'Users visited the selected site(s) via links from sites in the list below. Click on each bar for a count of visits from the corresponding site.' -%>
3
- <br />
4
- <div id="referrer_chart" class="chart" style="width: 100%; border: 1px solid #999999; background-color: #ffffff; text-align: center;"></div>
5
-
6
- <%= Seer::visualize(
7
- @referrers_series,
8
- :as => :bar_chart,
9
- :in_element => 'referrer_chart',
10
- :series => {:series_label => 'referrer', :data_method => 'count'},
11
- :chart_options => {
12
- :height => @referrers_series.size * 20,
13
- :width => 900,
14
- :is_3_d => false,
15
- :legend => 'none',
16
- :colors => ["#7e7587"],
17
- :title => "Visit Count by Referrer",
18
- :title_font_size => 9,
19
- :title_x => '',
20
- :axis_font_size => 10
21
- }
22
- )
23
- -%>
24
- </fieldset>
@@ -1,64 +0,0 @@
1
- <fieldset class="form_container">
2
- <%= legend_tag "Traffic Summary" -%>
3
-
4
- <div class="three_column">
5
- <fieldset>
6
- <label>Total Visits:</label><br />
7
- <div class="faux_field"><%= @report.total_visits -%></div>
8
- </fieldset>
9
- <fieldset>
10
- <label>New Visits:</label><br />
11
- <div class="faux_field"><%= @report.total_new_visits -%> (<%= @report.total_new_visits_percentage -%>)</div>
12
- </fieldset>
13
- <fieldset>
14
- <label>Return Visits:</label><br />
15
- <div class="faux_field"><%= @report.total_return_visits -%> (<%= @report.total_return_visits_percentage -%>)</div>
16
- </fieldset>
17
- <fieldset>
18
- <%= tag_for_label_with_inline_help "Bounce Rate:", 'bounce_rate', "Percentage of visitors who left the site after viewing only one page." -%>
19
- <div class="faux_field"><%= @report.bounce_rate -%></div>
20
- </fieldset>
21
- </div>
22
-
23
- <div class="three_column">
24
- <fieldset>
25
- <label>Visits from Referring Sites:</label><br />
26
- <div class="faux_field"><%= @report.total_organic_visits -%> (<%= @report.total_organic_visits_percentage -%>)</div>
27
- </fieldset>
28
- <fieldset>
29
- <label>Visits from Paid Search:</label><br />
30
- <div class="faux_field"><%= @report.total_ppc_visits -%> (<%= @report.total_ppc_visits_percentage -%>)</div>
31
- </fieldset>
32
- <fieldset>
33
- <label>Visits from Organic Search:</label><br />
34
- <div class="faux_field"><%= @report.total_search_visits -%> (<%= @report.total_search_visits_percentage -%>)</div>
35
- </fieldset>
36
- <fieldset>
37
- <label>Other Visits:</label><br />
38
- <div class="faux_field"><%= @report.total_direct_visits -%> (<%= @report.total_direct_visits_percentage -%>)</div>
39
- </fieldset>
40
- </div>
41
-
42
- <div class="three_column">
43
- <fieldset>
44
- <label>Total Pageviews:</label><br />
45
- <div class="faux_field"><%= @report.total_pageviews -%></div>
46
- </fieldset>
47
- <fieldset>
48
- <%= tag_for_label_with_inline_help "Total Leads / Lead Conversion Rate:", 'conversion', "Number and percentage of visitors who submitted a contact form." -%>
49
- <div class="faux_field"><%= @report.total_conversions -%> (<%= @report.conversion_rate -%>)</div>
50
- </fieldset>
51
- <fieldset>
52
- <%= tag_for_label_with_inline_help "Total Intersite Clickthroughs:", 'clickthroughs', "Number and percentage of visitors who clicked through from a local site to another site." -%>
53
- <div class="faux_field"><%= @report.total_clickthroughs -%> (<%= @report.total_clickthroughs_percentage -%>) </div>
54
- </fieldset>
55
- <fieldset>
56
- <label>Average Pages/Visit:</label><br />
57
- <div class="faux_field"><%= @report.average_pages_per_visit -%></div>
58
- </fieldset>
59
- <fieldset>
60
- <label>Average Visit Length:</label><br />
61
- <div class="faux_field"><%= @report.average_time_on_site -%></div>
62
- </fieldset>
63
- </div>
64
- </fieldset>
@@ -1,48 +0,0 @@
1
- <fieldset class="form_container">
2
- <%= legend_tag "Traffic Summary" -%>
3
-
4
- <div class="three_column">
5
- <fieldset>
6
- <label>Total Visits:</label><br />
7
- <div class="faux_field"><%= @report.total_visits -%></div>
8
- </fieldset>
9
- <fieldset>
10
- <label>New Visits:</label><br />
11
- <div class="faux_field"><%= @report.total_new_visits -%> (<%= @report.total_new_visits_percentage -%>)</div>
12
- </fieldset>
13
- <fieldset>
14
- <label>Return Visits:</label><br />
15
- <div class="faux_field"><%= @report.total_return_visits -%> (<%= @report.total_return_visits_percentage -%>)</div>
16
- </fieldset>
17
- </div>
18
-
19
- <div class="three_column">
20
- <fieldset>
21
- <label>Total Pageviews:</label><br />
22
- <div class="faux_field"><%= @report.total_pageviews -%></div>
23
- </fieldset>
24
- <fieldset>
25
- <%= tag_for_label_with_inline_help "Total Leads / Lead Conversion Rate:", 'conversion', "Number and percentage of visitors who submitted a contact form." -%>
26
- <div class="faux_field"><%= @report.total_conversions -%> (<%= @report.conversion_rate -%>)</div>
27
- </fieldset>
28
- <fieldset>
29
- <%= tag_for_label_with_inline_help "Total Intersite Clickthroughs:", 'clickthroughs', "Number and percentage of visitors who clicked through from a local site to another site." -%>
30
- <div class="faux_field"><%= @report.total_clickthroughs -%> (<%= @report.total_clickthroughs_percentage -%>) </div>
31
- </fieldset>
32
- </div>
33
-
34
- <div class="three_column">
35
- <fieldset>
36
- <label>Average Pages/Visit:</label><br />
37
- <div class="faux_field"><%= @report.average_pages_per_visit -%></div>
38
- </fieldset>
39
- <fieldset>
40
- <label>Average Visit Length:</label><br />
41
- <div class="faux_field"><%= @report.average_time_on_site -%></div>
42
- </fieldset>
43
- <fieldset>
44
- <%= tag_for_label_with_inline_help "Bounce Rate:", 'bounce_rate', "Percentage of visitors who left the site after viewing only one page." -%>
45
- <div class="faux_field"><%= @report.bounce_rate -%></div>
46
- </fieldset>
47
- </div>
48
- </fieldset>
@@ -1,119 +0,0 @@
1
- <%- set_title "Content Report" -%>
2
-
3
- <%- unless @report -%>
4
- <div class="note"><span class="notification info"></span><p>This report displays the most popular content for the selected site(s) as well as the top entrance and exit pages per visit.</p></div>
5
- <%- end -%>
6
-
7
- <%- if @sites.size == 1 -%>
8
- <p><b>No traffic data has been gathered yet. Please try again later.</b></p>
9
- <%- else -%>
10
- <form>
11
- <fieldset class="form_container">
12
- <%= legend_tag "Report Criteria" -%>
13
- <div class="three_column">
14
- <fieldset>
15
- <label for="site">Site:</label><br />
16
- <%= select_tag "site", options_for_select(@sites, params[:site] || "All Sites") -%>
17
- </fieldset>
18
- </div>
19
- <div class="three_column">
20
- <fieldset>
21
- <label for="time_period">Time Period:</label><br />
22
- <%= select_tag "time_period", options_for_select(@time_periods, params[:time_period].titleize) -%>
23
- </fieldset>
24
- </div>
25
- <div class="three_column">
26
- <fieldset>
27
- <label for="visit_kind">Traffic Type:</label><br />
28
- <%= select_tag "visit_kind", options_for_select(TrackableSession.kinds_for_select, params[:visit_kind] || "All") -%>
29
- </fieldset>
30
- </div>
31
- </fieldset>
32
- <input type="submit" class="button" value="Generate Report" />
33
- </form>
34
- <%- end -%>
35
-
36
- <%- if @report -%>
37
-
38
- <br style="clear: both;" />
39
-
40
- <%= Seer::init_visualization -%>
41
-
42
- <fieldset class="form_container">
43
- <%= legend_tag "Top Content", :help => 'This chart shows the top 25 most-requested pages across the selected site(s). Click on any bar in the graph for a count of visits to the corresponding page.' -%>
44
- <br />
45
- <div id="pages_chart" class="chart" style="width: 100%; border: 1px solid #999999; background-color: #ffffff; text-align: center;"></div>
46
-
47
- <%= Seer::visualize(
48
- @pages_series,
49
- :as => :bar_chart,
50
- :in_element => 'pages_chart',
51
- :series => {:series_label => 'url', :data_method => 'views'},
52
- :chart_options => {
53
- :height => @pages_series.size * 20,
54
- :width => 900,
55
- :is_3_d => false,
56
- :legend => 'none',
57
- :colors => ["#7e7587"],
58
- :title => "# of Page Views",
59
- :title_font_size => 9,
60
- :title_x => '',
61
- :axis_font_size => 10
62
- }
63
- )
64
- -%>
65
- </fieldset>
66
-
67
- <fieldset class="form_container">
68
- <%= legend_tag "Entrance Pages", :help => 'This chart shows the top 25 pages that users initially visited across the selected site(s). Click on any bar in the graph for a count of visits to the corresponding page.' -%>
69
- <br />
70
- <div id="entrance_pages_chart" class="chart" style="width: 100%; border: 1px solid #999999; background-color: #ffffff; text-align: center;"></div>
71
-
72
- <%= Seer::visualize(
73
- @entrance_pages_series,
74
- :as => :bar_chart,
75
- :in_element => 'entrance_pages_chart',
76
- :series => {:series_label => 'url', :data_method => 'views'},
77
- :chart_options => {
78
- :height => @entrance_pages_series.size * 20,
79
- :width => 900,
80
- :is_3_d => false,
81
- :legend => 'none',
82
- :colors => ["#7e7587"],
83
- :title => "# of Page Views",
84
- :title_font_size => 9,
85
- :title_x => '',
86
- :axis_font_size => 10
87
- }
88
- )
89
- -%>
90
- </fieldset>
91
-
92
- <fieldset class="form_container">
93
- <%= legend_tag "Exit Pages", :help => 'This chart shows the top 25 pages that users last visited before leaving the selected site(s). Click on any bar in the graph for a count of visits to the corresponding page.' -%>
94
- <br />
95
- <div id="exit_pages_chart" class="chart" style="width: 100%; border: 1px solid #999999; background-color: #ffffff; text-align: center;"></div>
96
-
97
- <%= Seer::visualize(
98
- @exit_pages_series,
99
- :as => :bar_chart,
100
- :in_element => 'exit_pages_chart',
101
- :series => {:series_label => 'url', :data_method => 'views'},
102
- :chart_options => {
103
- :height => @exit_pages_series.size * 20,
104
- :width => 900,
105
- :is_3_d => false,
106
- :legend => 'none',
107
- :colors => ["#7e7587"],
108
- :title => "# of Page Views",
109
- :title_font_size => 9,
110
- :title_x => '',
111
- :axis_font_size => 10
112
- }
113
- )
114
- -%>
115
- </fieldset>
116
-
117
- <%= render 'print_buttons' -%>
118
-
119
- <%- end -%>
@@ -1,67 +0,0 @@
1
- <%- title 'Traffic Explorer' -%>
2
- <%= Seer::init_visualization -%>
3
-
4
- <%- unless @sessions -%>
5
- <div class="note"><span class="notification info"></span>
6
-
7
- <p>This report allows you to filter website traffic by visit kind, site, action kind, and time period to better understand how visitors are using your site(s).</p>
8
-
9
- <ul class="indented bulleted">
10
- <%= content_tag('li', "<i>Clicks</i> represent button clicks.") if @kinds.include? 'clicks' -%>
11
- <%= content_tag('li', "<i>Conversions</i> are lead forms that are submitted.") if @kinds.include? 'conversions' -%>
12
- <%= content_tag('li', "<i>Scrolls</i> are page scrolls performed by visitors.") if @kinds.include? 'scrolls' -%>
13
- <%= content_tag('li', "<i>Clicks</i> represent button clicks.") if @kinds.include? 'clicks' -%>
14
- <%= content_tag('li', "<i>Mouseovers</i> represent mouseover events and may indicate that a user considered pressing a button, for example.") if @kinds.include? 'mouseovers' -%>
15
- <%= content_tag('li', "<i>Clickthroughs</i> are clicks on links to other sites.") if @kinds.include? 'clickthroughs' -%>
16
- </ul>
17
- <br />
18
- </div>
19
- <%- end -%>
20
-
21
- <%- if @sites.size == 1 || @kinds.blank? -%>
22
- <p><b>No web traffic action data has been gathered yet. Please try again later.</b></p>
23
- <%= link_to 'Back', :back, :class => 'button' -%>
24
- <%- else -%>
25
- <form>
26
- <fieldset class="form_container">
27
- <%= legend_tag "Data Explorer Criteria" -%>
28
- <br />
29
- How many
30
- <%= select_tag "visit_kind", options_for_select((TrackableSession::KINDS | ["total"]), params[:visit_kind] == 'all' ? 'total' : params[:visit_kind] ) -%>
31
- visits to
32
- <%= select_tag "site", options_for_select(@sites, params[:site] || "all sites") -%>
33
- resulted in
34
- <%= select_tag "action_kind", options_for_select(@kinds, params[:action_kind]) -%>
35
- in the
36
- <%= select_tag "time_period", options_for_select(@time_periods, params[:time_period]) -%>
37
- ?
38
- </fieldset>
39
- <input type="submit" class="button" value="Generate Report" />
40
- </fieldset>
41
- </form>
42
-
43
- <br style="clear: both;" />
44
-
45
- <%- if @sessions -%>
46
-
47
- <%- unless @sessions.blank? -%>
48
- <%= render "traffic_summary_all" if params[:traffic_kind] == 'total' -%>
49
- <%= render "traffic_summary_by_kind" if params[:traffic_kind] != 'all' -%>
50
- <%= render 'visits_graph' -%>
51
- <%= render 'keywords_graph' unless @keywords_series.blank? -%>
52
- <%= render "top_referrers" unless @referrers_series.blank? -%>
53
- <%- end -%>
54
-
55
- <%= page_break -%>
56
-
57
- <fieldset class="form_container">
58
- <%= legend_tag pluralize(@sessions.count, "Recent Matching Visit"), :help => 'Shown below are a sample of the most recent visits matching your report criteria. Click on the "Details" link next to a visit for more detailed information.' -%>
59
- <%= render 'sessions' -%>
60
- </fieldset>
61
-
62
- <%= render 'print_buttons' -%>
63
-
64
- <%- end -%>
65
-
66
- <%- end -%>
67
-