We are running some custom documentation pages at custom routes.
I’d love to know how to hook into Discourse’s built-in read-time metrics on these pages. Ideally I’d like to solve this usecase:
Grant a ‘Bookworm badge’ to anyone who has spent at least 4 hours reading pages under /documentation
Can anyone point us in the right direction?
Thanks!
As far as I know, we can easily store things per user in the pluginstore, think that would be the most viable approach for this. Just a key-value pair with the static page’s slug and the total read time for this user.