A given page is being tracked as two separate pages due to trailing slashes in the URL. For example:
- /signup
- /signup/
Is there any way to make Piwik recognize that the two URLs are actually a single page?
A given page is being tracked as two separate pages due to trailing slashes in the URL. For example:
Is there any way to make Piwik recognize that the two URLs are actually a single page?
Hi,
there was a similar request on github: [Request] Need to combine the mumber of same page counting · Issue #11599 · piwik/piwik · GitHub
In my opinion the best solution is avoiding this situation on your website. Multiple URLs for the website will create some unexpected issues with duplicate sites in search results.
I’d recommend you to redirect on URL to the other.
For SEO impact, it is important to handle this outside of Matomo. As Lukas recommended above, the recommended practice is to add a line in the configuration of the actual web server (the server which serves the website).
Choose one of the following and make a rule in the server configuration so that it redirects to the other:
To read more about forward slash redirects as an important best practice, check here: https://authenticdigital.nz/blog/trailing-slashes-and-seo/
(Tip of the hat to Joshua of Matomo)
Which leaves the question: what to do with the legacy data, which already has FOO and FOO/ ?
You could create a Custom Report with a filter of "Page URL CONTAINS FOO ". This would allow you to see aggregated metrics for this page.