• Resolved vlp

    (@vlp)


    Hello,

    I like the minimalism of this plugin, it does all what I need, just would be great to add possibility do not count administrator visits, because ussually as admin you check your site regularly.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author docjojo

    (@docjojo)

    Thank you.
    The script is effective in the

    if (!is_admin())

    section.
    So it should not count if you are logged in as admin.
    Can you tell how you know it counts admin visits?
    Are you using some page cache plugins?
    Once a page is cached, is_admin() is not effective.

    Please let me know.

    C.

    Thread Starter vlp

    (@vlp)

    I use litespeed cache. I can tell by the visitors table – I’m logged in as admin, visit the site and visitor count jump up +1 (tried at night where there are no other visits on site).

    If I close the window and reopen new one, the visit is not counted – but after some time (I did not check exaclty how long in take) the visit is counted again.

    Plugin Author docjojo

    (@docjojo)

    That is because LS caches the atec-stats JS script in the page cache. Thus there is no is_admin check at this point. So whether you are logged in or not does not make a difference.
    However on the plugin side I could skip counting if logged in, that’s an option.

    Plugin Author docjojo

    (@docjojo)

    The other effect you observed is, that the script only fires if there is some interaction on the page, this is to skip fake request from robots and the like.

    Plugin Author docjojo

    (@docjojo)

    The new version will be out soon.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Do not count administrator’ is closed to new replies.