• Resolved jdku

    (@jdku)


    Hi,

    We have run the query through https://ga-dev-tools.web.app/query-explorer/ as you suggested to a previous support query and we can see that the results are, more or less, what we’d expect, a few anomalies but nothing major.

    However, no matter what settings we choose in the plugin settings, it appears to be completely ignoring what’s returned and trying to show a top 5 that has no resemblance to what should be getting returned from GA but do match what’s at “/wp-json/toplytics/results”.

    When we press “Update Top” the url changes to “?page=toplytics&status=error”, but there’s no error showing (doesn’t appear to be anywhere for an error to show). It is connected to GA but Last updated is ‘never’ and fetched from ga is ‘-‘.

    Any suggestions?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Presslabs

    (@presslabs)

    Hello @jdku ,

    Thank you for contacting us about this.

    I have opened an issue in our Github tracker for the error message not being displayed https://github.com/presslabs/toplytics/issues/158

    Can you please go to plugin settings (/wp-admin/options-general.php?page=toplytics&tab=settings) and try to allow only a single Top to be updated by unchecking all “tops” except for one? Say you only allow the “Monthly Top” and limit the posts to fetch to a small amount, say “10”. Now try to update again and let me know if it returns correct data?

    Thread Starter jdku

    (@jdku)

    thanks for the reply. So, that’s made things unexpected. I tried a few different ‘tops’ and a few different amounts and now there’s no results at “/wp-json/toplytics/results” but strangely on the front end it’s still bringing back the same, wrong, results as previous.

    I don’t know if it makes a difference or not but I’m using the function to get the results on the front end:

    if (function_exists('toplytics_get_results') && $UrlPostId >= 0) {
            $toplytics_args = array(
                'period' => 'month',  
                'numberposts' => 5 
            );
            $toplytics_results = toplytics_get_results($toplytics_args);
        }

    then

    if ($toplytics_results) {
        foreach ( $toplytics_results as $post_id => $post_views ) {
                echo "post id: " . $post_id . "<br>";
        }
    }
    Plugin Author Presslabs

    (@presslabs)

    Hello @jdku ,

    Can you please create a temporary connection link for me to check out your site using this plugin: https://www.ads-software.com/plugins/temporary-login-without-password/

    Select 7 days for the account expiration.

    Please e-mail the login link to [email protected]

    Plugin Author Presslabs

    (@presslabs)

    Hello @jdku ,

    I have just pushed a fix for the status messages now being displayed. Version 4.0.7 will contain a fix for this.

    Thank you for reporting this problem.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Results not as expected or as UA Query returns’ is closed to new replies.