nternstedt
(Niklas Ternstedt)
March 14, 2022, 7:23am
1
Hi,
For one of our clients the report pages seems to show /index for many pages, especially in hierarchial view.
It becomes quite hard to for example search for urls. I haven’t seen before that it is for so many pages.
Is there a bug or something wrong with how the script is implemented?
Hello,
Sorry I don’t understand your needs. Can you illustrate your problem with some screenshot?
nternstedt
(Niklas Ternstedt)
March 14, 2022, 12:54pm
3
I mean that many pages have the url /index instead of the correct url. It only shows if the report is hierarchial.
Unfortunately I do not have have screenshots.
Do you use JavaScript framework as Angular, Vue or other? In this case, Matomo will, by default, track the page URL visible in the address bar…
Maybe with some configuration on Matomo server you can get some search parameters or hash :
Or else you can change the tracking URL during tracking:
url
(recommended) — The full URL for the current action in case of HTTP API
setCustomUrl( string )
- Override the page’s reported URL in case of JavaScript API
PageView configuration in case of MTM:
nternstedt
(Niklas Ternstedt)
March 16, 2022, 7:47am
5
Alright, thanks for the answer.
I think we have identified the problem. Our clients cms adds a slash at the end of every url. Matomo will then name the url /index in the report. I think if we remove the slash Matomo will show the correct url.