내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

User management Stastics

Avatar

Level 1

Hi,

Is there anyway we can track the user logins (statistics) in CQ? I could think of having a filter servlet, but dont know how to configure it for CQ instance itself.

Thanks,

Kinjal

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Employee Advisor

If you are using the standard login mechanism and not custom authentication, then on login the token is written to the user node (or a subnode, not sure). You can track such events and then do your statistics.

Jörg

원본 게시물의 솔루션 보기

2 답변 개

Avatar

정확한 답변 작성자:
Employee Advisor

If you are using the standard login mechanism and not custom authentication, then on login the token is written to the user node (or a subnode, not sure). You can track such events and then do your statistics.

Jörg

Avatar

Level 10

You can write a custom authentication handler to perform this task. When the user logs in - you can write Java application logic to perform Stastics/calculations that you want to track. For example - you can determine the last time the user logged in. 

To write a custom authen handler - create a Java class that extends DefaultAuthenticationFeedbackHandler and implements these interfaces:

  • org.apache.sling.auth.core.spi.AuthenticationHandler
  • org.apache.sling.auth.core.spi.AuthenticationFeedbackHandler