Matomo analytics tracks the full URL including the domain name by default. However, if you would prefer to only track page paths, for example /about/ instead of example.com/about/, then you can do this with a simple edit to your Matomo JavaScript Tracker code.

Removing your domain from Matomo reports

To remove the domain from URLs tracked in Matomo, add the following line to your Matomo tracking code:

_paq.push(['setCustomUrl', window.location.pathname.substr(1) + location.search]);

This ensure that only the path and URL parameters are being tracked and reported in the Matomo backend.

Note: We have an alternative FAQ if you would like to hide the Matomo URL from the front-end instead.

Previous FAQ: How do I enable Secure cookie flags in all tracking cookies?