Matomo - how to group different URLs in tracking / how to track moodle course activity?

I have the following challenge:

I have a Moodle system and would like to track visitor activity in the courses via Matomo.

The problem is that one course has several activities, but they are found under a different URL structure.

Example: My course has the URL /course/view=1 and also has a few activities that can be found under three completely different URLs (e.g. /mod/forum/view=20, /mod/feedback/view=7 and so on).

Now I would like to have a common tracking for a course room and the activities in it.

Is this possible? Are there any direct solutions for Moodle? Or how could I do this manually in Matomo?

Thanks