pulibrary / dpul-collections

An inspiring environment for global communities to engage with diverse digital collections
1 stars 0 forks source link

Success Dashboard #14

Open tpendragon opened 2 months ago

tpendragon commented 2 months ago

Acceptance Criteria

Tips

Maybe ask AUX if they have a way they'd want this to happen. Some tableau thingy?

If AUX doesn't have strong opinions, then we'll put it in Figgy as a report page.

There's a plausible API key in lastpass.

First Step

Read the Plausible API documentation.

Success Criteria

tpendragon commented 2 months ago

This is blocked until we are able to get all those values and know the time spans we want those values for.

tpendragon commented 1 week ago

Kate & Hector have some tips about this, I'm meeting w/ them next week.

sdellis commented 6 days ago

@tpendragon the Plausible API allows us to aggregate our stats for a custom date range, but it does not return values per day, only in aggregate. In order to meet the success criteria of this ticket, we would need to make a separate API call for each day in the given range. With this approach, a single report for a two year range would exceed our allotted requests for an hour. Another approach that @AminEdZare suggested might be a workaround is to do a daily pull of the Plausible data from the API, store it in the database, and then run our own custom queries for the report that would avoid the rate limit. Thoughts?

See below:

API keys have a rate limit of 600 requests per hour by default. If you have special needs for more requests, please contact us to request more capacity.

tpendragon commented 6 days ago

Average for the time period is probably fine for now? I don't want to maintain a sidecar.