Open tpendragon opened 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.
Kate & Hector have some tips about this, I'm meeting w/ them next week.
@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.
Average for the time period is probably fine for now? I don't want to maintain a sidecar.
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