Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add report class for time on page

  • Loading branch information...
commit ac846590d490a6da12d24634f71fdb02a5fe3f96 1 parent 08a6468
@tpitale authored
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|
Please sign in to comment.
Something went wrong with that request. Please try again.