How to Stop Counting Repeated visits?
-
Currently, the plugin count every page load. Suppose a user visit and refresh 5 times, then it count 6 visits. Can we set
localStorage.getItem('wpb_post_viewed_' + postID))....
// Mark the post as viewed in localStorage localStorage.setItem('wpb_post_viewed_' + postID, 'true');to only send view count request if local storage for the post is not found. This way, repeated reload from the same user will not count.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.