Class: Analytic::Event

Inherits:
ApplicationRecord show all
Defined in:
app/models/analytic/event.rb

Class Method Summary collapse

Class Method Details

.distinct_sessions_countInteger

Returns:

  • (Integer)


20
21
22
# File 'app/models/analytic/event.rb', line 20

def self.distinct_sessions_count
  count('DISTINCT "analytic_events"."session_id"')
end

.distinct_visitors_countInteger

Returns:

  • (Integer)


15
16
17
# File 'app/models/analytic/event.rb', line 15

def self.distinct_visitors_count
  count('DISTINCT "analytic_events"."visitor_id"')
end