internetarchive/openlibrary

Add method to get most viewed authors from GA

Open

#3,319 opened on Apr 6, 2020

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Python (1,172 forks)batch import
Lead: @cdriniPriority: 3Theme: AnalyticsType: Feature Requesthacktoberfest

Repository metrics

Stars
 (4,626 stars)
PR merge metrics
 (Avg merge 6d 2h) (126 merged PRs in 30d)

Description

Want a way to get most viewed authors in the past e.g. week from google analytics.

Describe the problem that you'd like solved

Having a way to query google analytics from openlibrary repo would be super useful in letting us show "trending" data. As a basic first step, let's get trending authors.

Proposal & Constraints

  • Cache aggressively; like maybe daily? Maybe weekly?
  • Will need to GA API keys to production environments

Additional context

Stakeholders

Contributor guide