Ordering content by popularity. How should we do it?

Hi everyone! I love Strapi and use it in different projects. I think it’s really good.

One question I have is I would like to have some sort of analytics of a type of content.

For example: I have a teachers model and would like to save interactions and query by the most popular teachers. Should I do the saving with something like Google Analytics events (or upcoming Fathom v3) on the frontend? But then, how can I query the teachers endpoint on strapi by the popularity on Google Analytics?

I imagine having a field in the Strapi model with popularity and keep incrementing it would be a bad idea if the website got really popular?

Has anyone done something like that?
Thanks!!

Hey, I am in a similar situation, were you able to find any solution to this?