Profile script for Visit count | Community
Skip to main content
July 8, 2021
Question

Profile script for Visit count

  • July 8, 2021
  • 0 replies
  • 857 views

This Profile script  doesn't increment after 30 minutes of inactivity -
Is anything missing in this profile script. 
if(user.sessionId!=user.getLocal('lastSessionId')) {
  user.setLocal('lastSessionId', user.sessionId);
  return (user.get('visitCount') || 0) + 1;
}

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.