Question
How to control the popup Count based on the session in Adobe Target?
I am showing the pop-up on Experience Targeting activity. I want to show this popup one time in a session, so I have used the below profile script as user_freq,
if(user.sessionId!=user.getLocal('lastSessionId')){
user.setLocal('lastSessionId', user.sessionId);
return (profile.get('visitCount') || 0) + 1; // changend line
}
Then use this scripts in audience attributes, the condition is user_freq < 2. But its not working properly, the popup showing again and again in a same session.