New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fetch event analytics from Plausible #3334
Conversation
ABA-428 Use data from Plausible on event statistics
Only the amount of visitors over time. Very useful for PR. |
created_at = event.created_at.strftime("%Y-%m-%d") | ||
now = datetime.now().strftime("%Y-%m-%d") | ||
# Plausible wants the date on this schema: YYYY-MM-DD,YYYY-MM-DD | ||
date = f"{created_at},{now}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How will this affect events created a long time ago? (In terms of amount of data etc)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ye that's a problem, but I'm planning on giving the user the ability to filter on different timeseries. This is still a nice mvp though, since we don't have plausible analytics for old events.
Its own decorator used by the webapp on /statistic.
168e2d3
to
144d86e
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #3334 +/- ##
==========================================
- Coverage 88.34% 88.30% -0.05%
==========================================
Files 661 661
Lines 20938 20955 +17
==========================================
+ Hits 18498 18504 +6
- Misses 2440 2451 +11
☔ View full report in Codecov by Sentry. |
It's own decorator used by the webapp on /statistic.
Related frontend PR.