Reputation: 347
I need to show a popup (form for feedback) after a same user visits and logsIn to our site (let´s say) 4-5 times. Has anyone an opinion on how would be the best approach for this? Thanks!
Upvotes: 1
Views: 1669
Reputation: 125
If you want to track the login count during the same browser session, I would use redux
to store into the application global state the successful loggin attempts. Then you can show the modal when the count is greater than the number you decide (4 or 5).
If you want to track the historical login count, you'll need to store this information into the backend database to don't lose information between sessions.
Upvotes: 1