Support » Plugin: Koko Analytics » Please avoid tracking via wp-admin 🙏

  • Resolved presscode

    (@saschinger)


    Koko is obviously using wp-admin folder for tracking via WP theme, e.g:

    https://macbay.net/wp-admin/admin-ajax.php?action=koko_analytics_collect&p=2142&nv=1&up=1&r=

    But since I have protected my wp-admin with a password, the password protection will be displayed everywhere, where this URL is included in the theme.

    Hence, the password protection is effective on all pages and my visitors are getting bounced.

    I don’t want to activate cookies in my koko settings.

    Any chance to get around this? Otherwise I need to remove Koko from my own and all my clients sites, which would be sad.

    Thank you and kind regards,
    Sascha

Viewing 1 replies (of 1 total)
  • Plugin Support Lap

    (@lapzor)

    Hi,

    I imagine this breaks a lot of other plugins as well as it’s normal to use wp-admin/admin-ajax.php for any ajax calls.

    Koko can use a custom endpoint, but this depends on your website configuration as well and it seems Koko already detected that for you that wouldn’t work.

    You can still try to add the following filter to your functions.php

    define(‘KOKO_ANALYTICS_USE_CUSTOM_ENDPOINT’, true);

    to force using a custom endpoint instead of the standard AJAX endpoint, but as I said, likely the plugin wasn’t able to write to your root dir and then it can’t use the custom endpoint either.

    If the custom endpoint doesn’t work the admin-ajax is the only other option.

    Kind regards,

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.