How to include the analytics in our community home page ?
Reference screenshot of the use case in shown below
There are statistics on the /about page.:
24 hours | 7 days | 30 days | All time | |
---|---|---|---|---|
Topics | 13 | 137 | 549 | 48.2k |
Posts | 666 | 4.4k | 16.9k | 1.3M |
Sign-ups | 33 | 229 | 998 | 73.7k |
Active users | 538 | 1.2k | 2.3k | — |
Likes | 374 | 2.6k | 10.5k | 1.4M |
Chat messages | 25 | 362 | 1.5k | 46.3k |
It’s not the same stats, of course. But maybe this is good enough?
My requirement is to show that count on the home page like the screenshot which i have shared in my previous comments
There’s this theme component which may help - Stat Banner
I’ve just installed it on my test site and it seems to be working fine for me:
Are you on tests_passed
? I think it’s a relatively new theme component so may not work on stable
.
If you open up your browser console you may be able to see more information about the error.
could you please let me know what is tests_passed ?
That’s the branch of Discourse you have installed.
tests_passed
is the default one that you would be on if you’ve followed a standard install. It picks up all the fixes and new features as soon as they’re available (new things are added every day), and you can update your site any time from the /upgrade
page to get them for your site as often as you think you need to.
stable
is a more static version that gets a major release twice a year (roughly at the end of January and July). This one wouldn’t get all of the new features and updates of the current cycle until the cycle had completed.
You can read more about the different types here - Why does Discourse always install "beta" versions by default?
Thank you for the info.
is there is any alternative how can i achieve my requirement ?