Include the analytics count in our community home page

AI-generated summary

Srujan_Madderla seeks to display analytics counts on their community’s homepage, similar to a provided screenshot. jericson suggests using the /about page stats as an alternative, though they differ from the requested format. JammyDodger recommends a theme component called “Stat Banner” (link), which Srujan_Madderla tries but encounters an error shown here. JammyDodger confirms the component works on their test site and suspects the issue may be due to running the stable branch instead of tests_passed, which is the default and more up-to-date version. Srujan_Madderla asks for clarification on tests_passed post 7, and JammyDodger explains the difference between tests_passed (daily updates) and stable (biannual releases), linking to further documentation. Srujan_Madderla then asks if there’s any alternative way to achieve the requirement post 9.

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

Hi @JammyDodger ,

After installing the stat banner component i am seeing the below error.

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 - Understanding Discourse release channels

Thank you for the info.
is there is any alternative how can i achieve my requirement ?