Using Matomo in a modular platform

Hi.

We are developing a modular platform where different teams are developing modules for a dedicated usage. In the end, we want to track the users globally and the teams need to track the users on their specific module. Some modules may be used within bigger modules.
I was thinking of using Matomo Tag Manager and a container for each module so that each team can manage their container on their own and using dedicated dashboard for each team/modules so they can follow their own statistics. Would it be a good way to implement Matomo and the tag manager ?

You want to use the tag manager to divide the requests to different Matomo instances? If you like I am sure that is one approach. Another would be to send tracking requests programmatically, maybe even server side and you put them wherever they need to go, with the exact data you need.