app/models/hyrax/statistic.rb in hyrax-4.0.0.beta2 vs app/models/hyrax/statistic.rb in hyrax-4.0.0.rc1

- old
+ new

@@ -32,13 +32,13 @@ profile = Hyrax::Analytics.profile unless profile Hyrax.logger.error("Google Analytics profile has not been established. Unable to fetch statistics.") return [] end - profile.hyrax__analytics__google__pageviews(sort: 'date', - start_date: start_date, - end_date: Date.yesterday, - limit: 10_000) + profile.hyrax__pageview(sort: 'date', + start_date: start_date, + end_date: Date.yesterday, + limit: 10_000) .for_path(path) end def query_works(query) models = Hyrax.config.curation_concerns.map { |m| "\"#{m}\"" }