• Resolved hupe13

    (@hupe13)


    Hello,

    some things are not okay. I see in apaches access.log some errors like:

    GET /path/koko-analytics-collect.php?nv=1&p=0&up=1 HTTP/1.1" 404 342 "https://mydomain.de/path/koko-analytics-collect.php?nv=1&p=0&up=1" "WordPress/5.6; https://mydomain.de/path"

    I grepping koko-analytics-collect.php, I found:

    src/class-admin.php
    392:           $tracker_url = site_url( '/koko-analytics-collect.php?nv=1&p=0&up=1' );
    src/class-script-loader.php
    68:            return $use_custom_endpoint ? site_url( '/koko-analytics-collect.php' ) : admin_url( 'admin-ajax.php?action=koko_analytics_collect' );

    This maybe wrong.

    My second problem:

    I’m using add_rewrite_tag and add_rewrite_rule to get nice urls, e.g.
    to get the url https://mydomain.de/path/entry/myname/wordpress rewrites it to
    https://mydomain.de/path/entry?name=myname. Koko Analytics lists only https://mydomain.de/path/entry/. Can you take care of the canonical header?

    Thank you very much.

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

    (@lapzor)

    Hi,

    What version of Koko are you currently using?
    Can you go to Koko settings and just hit the save button, once the plugin is fully up to date, and then see if that solved the 404 error?

    I will ask Danny to look into supporting your rewrite rules.

    Thread Starter hupe13

    (@hupe13)

    I’m using Version 1.0.22.
    To solve the 404 error the grepped lines must include the plugin path, e.g.
    site_url / plugin_path / koko-analytics / koko-analytics-collect.php

    Plugin Author Danny van Kooten

    (@dvankooten)

    Hello @hupe13,

    The 404 error is from a request that tests whether the plugin was able to install the customized endpoint file (which is optimised for performance, but optional) and can safely be ignored. In future versions of the plugin we’ve added a custom query parameter to these specific requests so it is easy to distinguish them from actual 404’s that do matter.

    As for your rewrite issue, I’m afraid that this is something caused by how you configured things. The plugin doesn’t use any URL’s internally but instead relies on post ID’s in WordPress. It then uses the get_permalink function to retrieve a pretty URL to these posts/pages/etc. Somehow this function is returning the wrong URL for you, but this isn’t something Koko Analytics has any control over.

    I hope that clarifies. If not, let us know please.

    Thread Starter hupe13

    (@hupe13)

    Thank you very much.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘404 error and special urls’ is closed to new replies.