• Resolved bogatymen

    (@bogatymen)


    Hi,

    I just wonder if you could help me.
    I use Slimstat for couple of months and i very happy. In the begging everything was fine, but after one of updates some settings has changed and now i have some display issue.
    Namely. Logged-In users are not being displayed as logged in, but as guests.
    So they are visible as IP on grey/bleu.
    This affect Subscribers, as the Contributors/Admin are being reported correctly.
    They are displayed correctly Username (IP) on dark yellow.
    What could cause this problem?

    Best,
    Bmen

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Jason Crouse

    (@coolmann)

    Hi Bmen,

    are you using any custom plugins to allow your users to log into their dashboard? Slimstat looks for a very specific cookie that WordPress assigns to your logged in users. If that cookie is not found, Slimstat assumes your visitor is a guest.

    Best,
    Jason

    Thread Starter bogatymen

    (@bogatymen)

    yes,
    i use my own to log-in and register.
    Is there any way to fix this feature?

    I could do code change if required.

    Thank you for help.

    Best,
    Bmen

    Plugin Author Jason Crouse

    (@coolmann)

    Hi,

    the ideal solution would be to write a custom add-on that hooks into Slimstat’s filters to add that information to the page view, before it’s recorded in the database. You can find a list of available hooks and filters in our online knowledge base at:

    https://slimstat.freshdesk.com/support/solutions/5000117177

    We can help you implement this feature, for a fee.

    Best,
    Jason

    Thread Starter bogatymen

    (@bogatymen)

    Jason,

    Do you have any example i could use it?
    Is this complicated to write or simple few lines would sort out the problem?

    Best,

    Plugin Author Jason Crouse

    (@coolmann)

    Hi,

    our knowledge base can help you with that:

    https://slimstat.freshdesk.com/support/solutions/articles/5000650145-my-first-slimstat-add-on

    Please note that slimstat_filter_pageview_stat is exactly the filter you need for your specific situation. The function do_something_with_this_pageview will read the value of the cookie your plugin uses to keep track of logged-in users, and set the corresponding value in the $_stat array: $_stat[‘username’] and then return the whole array.

    I hope this makes sense.

    Best,
    Jason

    Thread Starter bogatymen

    (@bogatymen)

    Jason,

    I just realized that my plugin actually uses wp-login.php of WP.
    So wp-login.php perform login and the rest. I use only redirect function.
    My custom plugin is based on this tutorial
    https://code.tutsplus.com/tutorials/build-a-custom-wordpress-user-flow-part-1-replace-the-login-page–cms-23627

    I also noticed that only Subscriber is not displayed at all. The rest of users (Guest and Contributors, even my own Subscriber-Mod, which is copy of Subscriber and added one more capability ) are displayed rather correctly. Guests are grey and the rest on dark yellow. But no logged-In standard Subscriber.

    Any clue what could cause the problem.

    I was thinking that i will need to export the database to excel or maybe user overview so we could combine task?

    How i could contact you?

    best,
    Bogaty

    Plugin Author Jason Crouse

    (@coolmann)

    This is indeed quite strange. Are you sure you don’t have any settings in Slimstat telling the plugin to NOT TRACK Subscribers? Otherwise, I don’t see why that would happen, since the only detail Slimstat is using to determine if a user is logged in, is the cookie set by WordPress. Which should be the same regardless of the user role.

    Best,
    Jason

    Thread Starter bogatymen

    (@bogatymen)

    Jason,

    You were right, there was some setting issue. I changed from to server from client.
    Its better now but i don’t see outbound links and referals?

    Do you have somewhere default setting to load?

    Best,

    Plugin Author Jason Crouse

    (@coolmann)

    Hi,

    you can do that by deleting the option slimstat_options in your database.

    Best,
    Jason

    Thread Starter bogatymen

    (@bogatymen)

    Jason,

    Done, options deleted so i loaded default settings.

    and does not work ??

    On default tracking is set to Server, where i can see guests, and logged in ussers( all except the subscriber), inbound and outbound referrers.

    But as i said not Subscribers.

    If i switch to Client then i see all logged In users ( full data) and also Subscribers, their inbound referrers but still outbound referrers are missing.

    In mean time i see all bots etc.

    I think there is some bag in the code, possible on your side.
    I use also plugin WP-UserOnline and it detect all users, IP.

    If you would like to investigate the problem let me know so i could help if i can.
    i use WP 4.7.5.

    best,
    Bogaty

    Plugin Author Jason Crouse

    (@coolmann)

    Bogaty,

    we’re more than happy to look into it. However, we could not reproduce the issue on our end at this time.

    Best,
    Jason.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Problem with displaying Logged-In users’ is closed to new replies.