Hey Johan,
I’m not very familiar with Datadog, but have you tried giving the different pages their own unique URL?
I’ve tried using Umami Analytics before and ran into a similar issue because of Mendix being a single page application. I was able to bypass this by using custom URL’s and get it to accurately track data.
Hope this helps,
Austin