How do I remove the tracked domain or hostname from all page URLs?
Assuming you are using our JavaScript Tracker you can remove the domain from the tracked URL by adding this to your tracking code:
_paq.push(['setCustomUrl', window.location.pathname.substr(1) + location.search]);
This way only the path and URL parameters are being tracked and reported in Matomo.