Open mattab opened 12 years ago
Hi!
It seems to me taking advantage of the canonical URL should be a built-in option in Piwik.
Canonical tells search engines that these two are equivalent: example.org/ABC example.org/index.php?page=ABC
So why would we want our analytics to think differently?
There could be a debate if it should be turned on or off by default.
Thanks!
@marclaporte good point, maybe it should be enabled by default in Piwik. Maybe one drawback would be in case of the website implemented canonical URLs with some bugs, then the Piwik reporting would look buggy as well.
If there are bugs with the canonicals of the web app, anything that can help detect them early is a good thing. As this feature would be optional, they could turn off until they fix the canonical feature.
Thanks!
Another scenario where it can be good to map multiple URLs to a single one is on multilingual websites where each language has its own URL (good SEO practice). I'm currently working on such a project and had to resort to setCustomUrl
and setDocumentTitle
to work around this issue. For the URL, at least, it would be nice if Matomo could look at hreflang
links, for example, to derive which URL to use.
I agree with @marclaporte, Matomo should do this for the user, probably contingent on some configuration.
Some CMS/Ecommerce shops generate ugly URLs, but might specify a rel=canonical URL. Some users would benefit from using this URL instead of the URL in the address bar, so that it looks better in Piwik Actions > Pages report.
From this blog post - it would be interesting to have this in a FAQ!