Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
behnaz eslami
Liferay 6.1.1 Visit counter
October 25, 2013 10:17 PM
Answer

behnaz eslami

Rank: Junior Member

Posts: 53

Join Date: November 13, 2011

Recent Posts

Hi

There is a way to know a number of guest and logged users in Liferay 6.1.1 CE/GA 2?[b](Actually I want to count visitors-any code for hit counter in liferay6.1.1 ie how many user has viewed the portal)
I should develop a custom portlet that show this information.
I don't want to use Google Analytic.
Any Idea?

Thanks.
Christoph Rabel
RE: Liferay 6.1.1 Visit counter
October 26, 2013 12:54 AM
Answer

Christoph Rabel

Rank: Regular Member

Posts: 197

Join Date: September 24, 2009

Recent Posts

Maybe Piwik is an option?
I use it in several project, it's a very powerful tracker.
venka reddy
RE: Liferay 6.1.1 Visit counter
October 26, 2013 1:06 AM
Answer

venka reddy

Rank: Regular Member

Posts: 231

Join Date: March 23, 2011

Recent Posts

This solution is not fully what you want,
but i can say you can track logged in user by writing hook

login.events.post = com.test.UserLoginCount

public class UserLoginCount extends Action {

public void run(HttpServletRequest request, HttpServletResponse response)throws ActionException {

try {
User user = PortalUtil.getUser(request);

------- write your custom logic ---------------
}
}

}
fouad fouad
RE: Liferay 6.1.1 Visit counter
January 14, 2015 6:37 AM
Answer

fouad fouad

Rank: Junior Member

Posts: 28

Join Date: August 8, 2014

Recent Posts

behnaz eslami:
Hi

There is a way to know a number of guest and logged users in Liferay 6.1.1 CE/GA 2?[b](Actually I want to count visitors-any code for hit counter in liferay6.1.1 ie how many user has viewed the portal)
I should develop a custom portlet that show this information.
I don't want to use Google Analytic.
Any Idea?

Thanks.



hello behnaz
did u figure out how to apply ur requirements?
if yes, please can you advise me because i have the same requirement.


thank you