• Resolved arfanzr77

    (@arfanzr77)


    I got message : The plugin is currently not using an optimized tracking endpoint. To address, create a file named?koko-analytics-collect.php?in your WordPress root directory with the following file contents:

    a month ago it was working normally, but recently koko-analytics-collect.php disapear when i visit analytic dashboard.. I Create again but it will disapear/deleted again and again.

    Is it effect from updating wordpress.. Currently I use WP 6.2.2

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Lap

    (@lapzor)

    So when you manually re-create the file, it gets deleted again and then you see this warning again?

    I suppose you enter the content in the file as instructed?

    When you visit the settings page Koko does a series of tests to see if the tracking is working. If it doesn’t it will fall back to the slower tracking method. Maybe the test is failing at another part, eg writing the temporary file to the uploads folder.

    Thread Starter arfanzr77

    (@arfanzr77)

    Yes,

    I Have entered script content as instructed..

    When I Disable pulgin, the koko-analytics-collect.php still remaining. but it disapear again when I activated and open analytic dashboard.

    How can i check wheter temporary files failed to write? You mean pageview.php in upload folder?

    Plugin Support Lap

    (@lapzor)

    Yes, the pageviews.php file in the uploads folder. Is that file created (and deleted every time stats are collected)?

    Can you also double check is the absolute path in koko-analytics-collect.php is correct?

    Thread Starter arfanzr77

    (@arfanzr77)

    I have checked that koko-analytics-collect.php here…

    /home/my_username/domains/my_domain/public_html/koko-analytics-collect.php

    then the koko-analytics-collect.php

    // path to pageviews.php file in uploads directory
    define('KOKO_ANALYTICS_BUFFER_FILE', '/home/my_username/domains/my_domain/public_html/wp-content/uploads/pageviews.php');
    
    // path to functions.php file in Koko Analytics plugin directory
    require '/home/my_username/domains/my_domain/public_html/wp-content/plugins/koko-analytics/src/functions.php';
    
    // function call to collect the request data
    KokoAnalytics\collect_request();

    But above php file still removed automatically.. Actually it work, but I don’t convenience with the ”?The plugin is currently not using an optimized tracking endpoint. xxxx” notification.

    I think may be my hosting knew it as something dangerous. Then i asked my hosting provider, but they don’t know exactly what I am going through. And they said that nothing dangerous in my wordpress..

    Plugin Support Lap

    (@lapzor)

    maybe you could try creating the endpoint manually and then setting its file permissions on read and execute only, so that another script can’t remove it.

    I haven’t heard yet of virus/malware scanners removing the tracking point, but I suppose it’s a possibility. Normally there would be a log somewhere for the malware/virus scanner if that’s the case.

    But more likely it’s Koko itself deleting the file after it tests it and finds that it can’t write to the pageviews.php file. Did you already check the write permissions on the upload folder? Or could it be a security feature on your hosting blocking the writing to the uploads folder by our script?

    Thread Starter arfanzr77

    (@arfanzr77)

    I Try to rollback to WP 5.9.9, then I update again to latest wp. Then now koko analytic create these file automatically..

    SOLVED. I Dont know Why.. Just try to rollback then update again.

    Thanks @lapzor for your reply..

    Plugin Support Lap

    (@lapzor)

    Very strange! But glad to hear it’s solved now. I suppose something file got corrupted and is now fixed because of the roll-back you did.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘koko-analytics-collect.php disapear’ is closed to new replies.