How tracking user click

Jamie Sammons, modified 2 Years ago. New Member Post: 1 Join Date: 3/27/23 Recent Posts

Hi everyone,

 

Is there a way to track user click stream and record which portlet a user has read? I am currently using hooks to track models CRUD and servlet events, but am not able to get the portlet ID in the servlet events. Is there any other way to track this information?

thumbnail
David H Nebinger, modified 2 Years ago. Liferay Legend Posts: 14933 Join Date: 9/2/06 Recent Posts

Liferay has an audit framework that would be appropriate for this, you just have to find the right places to inject the audit message creation and posting.

It's hard to know from a portlet perspective what a user may or may not have seen. I mean, you can tell that they visited a page, but that's it. You won't know if they actually looked at the portlet or scrolled the page to bring it into view or anything specific like that.

You could leverage portlet filters if you needed to get to a per-portlet-interaction kind of level...