All of the widget options are exactly that.. optional. If you don’t include them it will pick some defaults.

Plugin Features:

Plugin uses WordPress transients to cache the Google results so you’re not running the update from Google every time. cache updates every 24 hours.

Developer Friendly. Many filters built in to allow you to filter the results to dispay how you want. One example of that would be to remove your Site’s title from the results. (now unnecessary, as the widget/shortcode has the option built in)
** Example using a filter to add view counts after the title –
function gtc_add_viewcount_title( $pages ) {
if ( ! empty( $pages ) ) {
// loop through the pages
foreach ( $pages as $key => $page ) {
// and add the page count to the title value
$pages[ $key ][‘name’] = $pages[ $key ][‘name’] . ‘ [‘. $pages[ $key ][‘value’] .’ Views]’;
}
}

Download

Installation

Upload the google-analytics-top-posts-widget directory to the /wp-content/plugins/ directory.

Activate the plugin through the ‘Plugins’ menu in WordPress.

Plugin will prompt you to install the “Google Analytics for WordPress by MonsterInsights” plugin. Install and activate it.

Use the “Google Analytics for WordPress by MonsterInsights” plugin’s settings page to authenticate to your google analytics account.

On the widgets page, drag the “Google Analytics Top Posts” widget to the desired sidebar.

Update the widget settings and save.

FAQ

Q. Installation InstructionsA.

Upload the google-analytics-top-posts-widget directory to the /wp-content/plugins/ directory.

Activate the plugin through the ‘Plugins’ menu in WordPress.

Plugin will prompt you to install the “Google Analytics for WordPress by MonsterInsights” plugin. Install and activate it.

Use the “Google Analytics for WordPress by MonsterInsights” plugin’s settings page to authenticate to your google analytics account.

On the widgets page, drag the “Google Analytics Top Posts” widget to the desired sidebar.

Update the widget settings and save.

Q. After Upgrading to 1.4, my widget stopped workingA. I updated the widget options for the date picker, and as a result, it broke any widgets that were saved with the old options. 1.4.1 solves that, but either way, re-saving the widget will correct the issue.
If you were using the shortcode and it broke, you will need to switch to using the shortcode with the new format (described here)

Q. Is it possible to configure the metric being sent to GA, for example to use uniques (ga:uniquePageviews) instead?A.

Changelog

1.7.3

Disables requests to stop site fatal errors caused by the 7.0.0 update to the dependency plugin, “Google Analytics for WordPress by MonsterInsights”. THIS IS NOT A FIX, but rather a temporary measure to fix fatal errors on the front-end of your site. Follow along with this issue to see what will be the next steps.

1.7.2

Fixes fatal errors caused by an update to the dependency plugin, “Google Analytics for WordPress by MonsterInsights”. With the last release, they moved to only loading some resources in the admin, so we need to lazy load those resources on the frontend if they don’t exist.

Allow comma (1,2,3) or comma-space (1, 2, 3) separated ids for the widget/shortcode settings for the category id filters and the post/page filter.

1.7.1

1.7.0

Pass thumbnail to gtc_list_item filter and counter to the list_item_formatsprintf. Props @chibani, #12.

By default, filter out posts which are not published (e.g. drafts, pending). Props @pmtarantino, #15.

Support for non-ascii urls in google_analytics_views shortcode, and new filter, gtc_views_shortcode_ga_filters_param. Props @entr, #21.

New filter, gtc_should_display_item, to override whether an item should be added to the list.

No longer output an empty link when thumbnails are enabled, but not found.

1.6.9

Fix the issue which allowed some content through which should have been disallowed by the content filter. Now if the content filter is used at all and url_to_postid fails, the page will be excluded in the results.

1.6.8

Tweak logic for homepage checking, and also check for paginated homepage entries.

1.5.6

1.5.5

1.5.4

1.5.3

Bug Fix: update=true shortcode parameter (used for busting the cache) did not work properly.

1.5.2

Bug Fix: Fix a couple filters that were getting false-postives.

1.5.1

Bug Fix: Renamed the widget in 1.5.0 which would cause it to be unregistered in any sidebars. Quickly pushed up an update to put it back, but this release makes it final. Apologies for the inconvenience.

1.5.0

Enhancement: New shortcode, google_analytics_views for displaying a view count on a single post/page.

1.4.8

1.4.7

1.4.6

Bug fix: Listings wouldn’t show when using ‘post’ as the contentfilter.

1.4.5

Enhancement: More output filters, and check for ‘?p=’ permalinks

1.4.4

Enhancement: Allow html in list item output

1.4.3

Bug fix: Some entities would break the “remove site name” filter.

1.4.2

Fixed the number value select for the “Select how far back you would like analytics to pull from:” selector.

1.4.1

I updated the widget options for the date picker, and as a result, it broke any widgets that were saved with the old options. 1.4.1 solves that, but either way, re-saving the widget will correct the issue.

1.4

Added more flexibilty to the time select dropdown. Now with options to select hours and days.

1.3

Added more widget options to modify the list output. Added field to enter repeating elements in the titles to remove from the listings. Also, now limit or filter by post-type, by category, or by post/page ID.

1.2

Increased page-speed with use of transients caching. Also added a few more developer friendly filters.

1.1

Add a pages filter for developers, remove site title from page title, change date picker to use relative dates.

1.0

Launch.

Screenshots

Hi, i have this error:
Warning: get_class() called without object from outside a class in /home/…/public_html/wp-content/plugins/google-analytics-top-posts-widget/vendor/tgm-plugin-activation/class-tgm-plugin-activation.php on line 2866

Warning: call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /home/…/public_html/wp-content/plugins/google-analytics-top-posts-widget/vendor/tgm-plugin-activation/class-tgm-plugin-activation.php on line 2866