Browse files

add report class for time on page

  • Loading branch information...
1 parent 08a6468 commit ac846590d490a6da12d24634f71fdb02a5fe3f96 @tpitale committed Jun 10, 2010
Showing with 7 additions and 0 deletions.
  1. +7 −0 garb/calculations/average_time_per_page.rb
View
7 garb/calculations/average_time_per_page.rb
@@ -1,3 +1,10 @@
+class PageviewExitsAndTime
+ extend Garb::Resource
+
+ metrics :pageviews, :exits, :time_on_page
+ dimensions :page_path
+end
+
results = PageviewExitsAndTime.results(profile)
results.each do |result|

0 comments on commit ac84659

Please sign in to comment.