Module: Hyrax::Analytics

Defined in:
app/services/hyrax/analytics.rb,
app/services/hyrax/analytics/google.rb,
app/services/hyrax/analytics/matomo.rb,
app/services/hyrax/analytics/results.rb,
app/services/hyrax/analytics/google/events.rb,
app/services/hyrax/analytics/google/visits.rb,
app/services/hyrax/analytics/google/events_daily.rb,
app/services/hyrax/analytics/google/visits_daily.rb

Defined Under Namespace

Modules: Google, Matomo, NullAnalyticsParser Classes: Results

Class Method Summary collapse

Class Method Details

.provider_parserObject


8
9
10
11
12
13
14
15
# File 'app/services/hyrax/analytics.rb', line 8

def self.provider_parser
  "Hyrax::Analytics::#{Hyrax.config.analytics_provider.to_s.capitalize}".constantize
rescue NameError => err
  Hyrax.logger.warn("Couldn't find an Analytics provider matching "\
                    " #{Hyrax.config.analytics_provider}. Loading " \
                    " NullAnalyticsProvider.\n#{err.message}")
  NullAnalyticsParser
end