Discourse forum integration

There is a Mautic plugin for Wordpress to track user behavior on Wordpress.

Is there anything similar to track a Discourse forum?

It seems also this Mautic forum is based on Discourse. So perhaps you have some ideas about that.

I asked a developer who is familiar with Discourse about making a plugin for that and he replied that he feels a microservice should be more appropriate.

What do you think?

Any guidelines for the developer?