I'm running a blog on a website using a CMS. Blog posts can appear in multiple categories and thus be reached via multiple URLs:
The canonical URLs are set for all URLs of a post and point to the primary URL. In other words, you find this line in the source code of both URLs above:
<link rel="canonical" href="https://example.com/news/my-blog-post" />
However, can I map this to my analytics in Matomo? Can I group visited URLs by their canonical URL? I've found out that the view in Behaviour -> Page titles summarises statistics for blog posts (rather than URLs) quite fine. But is it also possible to analyse other data such as devices, referrers etc. by canonical URL?
Additional question: The website is set up multilingually, translations of a post are linked via alternate tag. Can I use these alternate tags to summarise analytics of all languages of a post?
<link rel="alternate" hreflang="en" href="https://en.example.com/news/my-blog-post" /> <link rel="alternate" hreflang="de" href="https://de.example.com/news/mein-blogartikel" />