Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

Profile script for Visit count

robinders871029
Level 2
Level 2

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;
}

Target targeting
0 Replies