Is it possible to see the last time a site was accessed by a user?
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
Legacy Article
You are viewing an article from our legacy "FastTrack"
publication program, made available for informational purposes. Articles
in this program were published without a requirement for independent
editing or verification and are provided"as is" without
guarantee.
Before using any information from this article, independently verify its
suitability for your situation and project.
Issue
- There is currently no out of the box solution that tracks when a user has visited a site.
- The group_ table in the database contains details about sites, but it does not keep track of the dates for site visits.
Resolution
- The Liferay Audit app tracks the date when a site has been accessed from the time of its installation. Site visits can then be tracked through its corresponding pages:
- An event with Resource Name "Page" has a Resource ID that corresponds to the plid value from the layout table.
- Execute the database query
SELECT name FROM layout WHERE plid=x; where x is the Resource ID.
- Note the name of the page and the site that it belongs to.
Additional Information
Did this article resolve your issue ?