Liferay Analytics - Tracking Documents and Media events in Asset Analytics

Hello,

Our client noticed that Documents and Media are not being tracked at all in Analytics, as opposed to Web Contents, which provides a really nice and detailed view in the Asset Analytics section.

Liferay Support and the official documentation state that we should use the Out of the Box Documents and Media widget to get such metrics tracked in Analytics.

The point is that such a widget is not suitable for a public website (it is clearly meant to be used by admins managing documents), which leaves no alternative besides creating a custom code (fragment, client extension, or something else) to be able to get such metrics.

It doesn’t seem ideal to have to manually add tracking attributes everywhere we display documents if they are already part of Liferay’s repository. Since these documents are still accessed through Liferay URLs, wouldn’t it be possible for Analytics Cloud to capture those requests automatically?
For example, one of our fragments orders the documents using the getReadCount() method, which retrieves the total number of views and downloads. This data is already available within the platform, so could this same mechanism be integrated with Analytics Cloud?

3 Likes

Hey @leomiyagi, thanks for sharing. At this point, this is a limitation in our out of the box capabilities. We are working on providing more robust analystics data on our new CMS, where we will be treating all content (content and files) in an unified way. In any case, they could always leverage our custom events on AC to customize specific tracking they want to do have, right? I will share this with our analytics team so they are aware of your feedback, thanks for sharing.