BuddyDev

Search

Buddypress Recent Profile Vistors – Count views per session

  • Participant
    Level: Initiated
    Posts: 4
    eddie padin on #9534

    I think it’d make more sense to only save a view/visit once per session. Currently, the total views are counted for every time a profile is loaded. This causes a view to be counted every time a new tab is clicked requiring the browser to refresh. So a single “visit” can account for tons of profile views.

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #9539

    Hi Eddie,
    You theme has this action two time ‘bp_after_member_header’

    You should remove it atleast one time. Also, I am changing the recording function to make sure it avoids using this action for count, That should fix it for you.

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #9542

    For this topic:-
    We do not record all the visit. Currently, It is only one record between two users for the visited user. With each new visit we just increment the visit count for the visitor to visited user and the last visited time of the record.

    Updating last visited time allows us to have the correct details of unique views etc over a preciod of time.
    Also, we are not using the visit count directly anywhere, so I don’t see a side effect of that. keeping a count can help some site making decision on suggesting interests.

You must be logged in to reply to this topic.

This topic is: not resolved