WordPress.org

Ready to get started?Download WordPress

Forums

Google Analyticator
Suggestion for extra option to display more top pages (3 posts)

  1. drtanz
    Member
    Posted 3 years ago #

    Hi, excellent plugin, could you add an option in the plugin's settings page where we could just enter the amount of top pages displayed? I prefer having the top 10 displayed and have to change the plugin's code everytime I update it. I'd prefer having an option that will stay put. It should be fairly easy to implement.

    In file google-analytics-summary-widget.php

    Need to change this line:

    if ( $stat_count >= 5 )

    to get an option from the settings database. In my case I always change that to 10 directly in the quote, but as I said I'd like to have an option I could set once and for all.

    Thanks!

  2. jinbatsu
    Member
    Posted 3 years ago #

    Very Agree!
    This plugin is wonderful easy and secure analytic dashboard!

    Yes, please give the option for amount of Top Pages, Top Referrer and Top Searches.

    @drtzan, thanks for that, but that was for me only 10 Top Pages, it's not work for Top Referrer and Top Searches.
    I edit this line:

    $stats = $this->api->getMetrics('ga:visits', $before, $yesterday, 'ga:source,ga:medium', '-ga:visits', 'ga:medium%3D%3Dreferral', '5');

    I change 5 to 10, but in Dashboard still display 5 Top Referrers.

    Great Plugin!
    Thanks!

  3. jinbatsu
    Member
    Posted 3 years ago #

    @drtanz, well it works for all 10 top type, it just loading the last 5 from cache.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic