Tagged: recent visitors records
If your goal is to count all visits(including non logged), You can do it on wp_head action by checking bp_is_user()
The problem is if you count each visit, the size of table will grow exponentially.
Currently, in the plugin, we keep 1 log for the relation where x- visits y and update the visit count/last visited date. We also keep a total count of the visitors.
For your use case, if who visited is not important, you may keep a count for 30 days or so using meta instead and clean after 30 days using cron.
Personally, I think what you are looking for is more like analytics for user. I do not think I have seen any existing plugin for this purpose.
The recent visitors plugin is not suitable for the analytics job.
You must be logged in to reply to this topic.