Issue
- If you check the Top Pages chart in Analytics Cloud, you will see that the same page can be displayed with different URLs.
Environment
- Liferay DXP 7.0+
- Analytics Cloud
Resolution
Page metrics in AC are grouped by title and canonical URL. Pages with the same title, but different canonical URLs would lead to 2 separate entries. This creates the effect of page metrics being split into 2 entries in the Top Pages.
For example, if you look at the login page:
- On navigating to
https://localhost:8080/web/guest
, the canonical URL ishttps://localhost:8080/web/guest
- On navigating to
https://localhost:8080/web/guest/home
, the canonical URL is stillhttps://localhost:8080/web/guest
- However, on clicking “Sign In”, the canonical URL then changes to
https://localhost:8080/web/guest/home
Can we set up something where it can recognize the same page via different URLs (group them)?
There is no functionality within AC to group the same page with different URLs, as we group by the canonical URL instead. To view metrics grouped by the same page title, you can use the Event Analysis feature.
- Select the event that you would like to analyze by (e.g.
pageViewed
) - Add a filter for the page title you would like to analyze
- You will see
pageView
events for the same page title (regardless of canonicalUrl)
Is it is possible to create customized top pages?
Unfortunately, AC does not have the functionality to customize the top pages card.
Subscriber Exclusive Content
A Liferay Enterprise Subscription provides access to over 1,500 articles that include best practices, troubleshooting, and other valuable solutions. Sign in for full access.
Sign In