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

Avatar

Avatar
Ignite 1
Level 2
robinders871029
Level 2

Likes

4 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
Validate 1
Boost 3
Boost 1
View profile

Avatar
Ignite 1
Level 2
robinders871029
Level 2

Likes

4 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
Validate 1
Boost 3
Boost 1
View profile
robinders871029
Level 2

08-07-2021

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

Accepted Solutions (0)

Answers (0)