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
Implement Plausible analytics into event statistics #3840
Implement Plausible analytics into event statistics #3840
Conversation
ABA-428 Use data from Plausible on event statistics
Only the amount of visitors over time. Very useful for PR. |
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.
Awesome 💯
Just some small comments. And if it's not planned I still think having the statistics on the entrypoint is probably the most useful here as it will tell us how people actually hear about the different events :)
@@ -418,3 +419,13 @@ export function isUserFollowing(eventId: number): Thunk<any> { | |||
}, | |||
}); | |||
} | |||
export function fetchAnalytics(eventId: ID): Thunk<Promise<Action>> { |
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.
Since you're using the data from this directly, it would be nice if you could type this properly :)
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.
I typed it now, but to do so I had to make a bunch of changes to the call api. Take a look.
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.
I removed the typing commit since it didn't work and got out of scope here. You can now find it on branch type-actions
.
I also think you can just remove the visit time thing. It's not very useful at all. |
1ed4a9e
to
6a62de2
Compare
645de7d
to
3e37e18
Compare
cdac1be
to
f163acf
Compare
f163acf
to
134dfc9
Compare
Description
Implement Plausible analytics into event statistics
Very useful for publicity.
Considering removing "event duration" later since it doesn't really make sense.
Might also implement "bounce rate", but not sure how useful that is.
Result
Testing
Since it's a new feature, it should not break anything else.