Include full URL in Page reports

Hi Lukas,
when I include the protocol like in your example, then page url is the same like in standard (without setting setCustomUrl ) .

But I tried a workaround with a “fake folder” named like my subdomain
var p = "My subdomain/.." +window.location.pathname + window.location.search;
_paq.push([‘trackPageView’, p]);

The URL “href” in Matomo backend will now set to https://mydomain.com/My subdomain/../url.html what is the same like https://mydomain.com/url.html - that is what I want.

It looks like below in the screenhots. My fake folder and the two points folder are now categories in the Page Url report which cluster all the url’s of my subdomain. This idea is based on the description here to control the tree structure with separators https://matomo.org/faq/how-to/faq_62/

grafik
or in flat view
grafik

In the visitor log is the fake folder to see, but the link url is correct too - I think this is acceptable as workarround:

grafik

Hope I haven’t missed anything

Regards Udo