internetarchive / openlibrary

One webpage for every book ever published!
https://openlibrary.org
GNU Affero General Public License v3.0
5.21k stars 1.37k forks source link

Add method to get most viewed authors from GA #3319

Open cdrini opened 4 years ago

cdrini commented 4 years ago

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

Additional context

Stakeholders

BrittanyBunk commented 4 years ago

I don't truly know, but would assume it's when the user goes to the site: "Determines how many milliseconds elapsed between the user navigating to the page and the current time" (1) using maybe a timestamp.

I think people use jquery, but I'm really not sure - as I haven't done this before or use pre-existing modules. The python is a different process, so whichever works.

I looked on Graphite and it just shows total author views, so it's not there.