掲示板

How to check who has visited your page in liferay portal

thumbnail
6年前 に Ujjainee Sarkar によって更新されました。

How to check who has visited your page in liferay portal

Regular Member 投稿: 127 参加年月日: 16/07/20 最新の投稿
Can please anyone give me the idea of how to check which users have visited my liferay portal and also check the user has hit which page? If anyone can please refer me some source code for the same it will be of great help.
thumbnail
6年前 に Andrew Jardine によって更新されました。

RE: How to check who has visited your page in liferay portal

Liferay Legend 投稿: 2416 参加年月日: 10/12/22 最新の投稿
Hi Ujjainee,

There are a few properties that I have see in the portal.properties that you can probably use, though I myself have never used them. The properties (that you would configure in you portal-ext as you need them) are --

    #
    # Set this to true to track user clicks in memory for the duration of a
    # user's session. Setting this to true allows you to view all live sessions
    # in the Admin portlet.
    #
    session.tracker.memory.enabled=true

    #
    # Set this to true to track user clicks in the database after a user's
    # session is invalidated. Setting this to true allows you to generate usage
    # reports from the database. Use this cautiously because this will store a
    # lot of usage data.
    #
    session.tracker.persistence.enabled=false

    #
    # Set this to true to convert the tracked paths to friendly URLs.
    #
    session.tracker.friendly.paths.enabled=false


In truth though, this does add extra load on Liferay though and you are better off using analytics that can read the requests logs that are captured at the proxy server rather than asking Liferay to write all this data to the database.
thumbnail
6年前 に Ujjainee Sarkar によって更新されました。

RE: How to check who has visited your page in liferay portal

Regular Member 投稿: 127 参加年月日: 16/07/20 最新の投稿
Thanks Andrew! I also think Google analytics will be better for the job. Thank you for your help again.