Toplytics
by Presslabs 5 (9 reviews)

Toplytics

Displays the most visited posts as a widget using data from Google Analytics. Designed to be used under high-traffic or low server resources.

Toplytics ranks #17,393 among WordPress.org plugins with 80+ active installations, is #436 of 1,980 in the Analytics category, a 5/5 rating from 9 reviews, and was last updated Aug 21, 2026. Data from WordPress.org, refreshed twice daily — see methodology.

Compatible with WP 7.1
v4.1.6 Current Version v4.1.6
Updated 3 weeks ago Last Update on 21 Aug, 2026
Refreshed 15 hours ago Last Refreshed on
#436 of 1,980 in Analytics Top 25% by installs Actively maintained
View on WordPress.org
Rank
#17,393
+17 this week
Active Installs
80+
-25.9%
KW Avg Position
26.7
No change
Downloads
9.8K
+1 today
Support Resolved
50%
No change
Rating
100%
Review 5 out of 5
5 (9 reviews)

Next Milestone 90

Total Progress 30%
80+ 90+
2,005
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro

Unlock Exact Install Count

See the precise estimated active installs for this plugin, calculated from real-time ranking data.

  • Exact install estimates within tiers
  • Track install growth over time
  • Milestone progress predictions
Upgrade to Pro
Need 7 more installs to reach 90+

Rank Changes

17,359 17,432 17,506 17,579 17,652 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026 16-09-2026 17-09-2026
16,876 17,093 17,311 17,528 17,745 02-09-2026 03-09-2026 04-09-2026 05-09-2026 06-09-2026 07-09-2026 08-09-2026 09-09-2026 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026 16-09-2026 17-09-2026
Current #17,393
Change
Best #

Upgrade to Pro

Unlock 30-day and 90-day rank history charts with a Pro subscription.

Upgrade Now

Active Installs Growth

Active Installs 0,000,000+
Growth +0.0%
Peak 0,000,000

Downloads Growth

0 10 20 30 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026 16-09-2026 17-09-2026
0 10 20 30 02-09-2026 03-09-2026 04-09-2026 05-09-2026 06-09-2026 07-09-2026 08-09-2026 09-09-2026 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026 16-09-2026 17-09-2026
Downloads
Growth
Peak

Upgrade to Pro

Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.

Upgrade Now

Reviews & Ratings

5.0
9 reviews
Overall 100%
5
9 (100%)
4
0 (0%)
3
0 (0%)
2
0 (0%)
1
0 (0%)

Support Threads Overview

Resolved
Unresolved
2
Total Threads
1
Resolved
1
Unresolved
50%
Resolution Rate

Security History

Source: WPVulnerability

No known vulnerabilities on record for Toplytics. Checked 1 month ago.

TL;DR

AI summary of the plugin's readme

This plugin is for site owners with an active Google Analytics setup who want to show their most popular posts. It solves the problem of displaying a most-visited-posts list without the performance risk of counting every visitor click, which can overload the database on high-traffic sites.

  • Widget display of most visited posts
  • Shortcode support for posts/pages
  • Google Analytics OAuth 2.0 connection
  • Uses Google Analytics API v3
  • Filter by day, week, or month
  • Set number of posts displayed
  • Display view counts
  • i18n translation support

Frequently Asked Questions

Common questions about Toplytics

You should use this plugin if you want to display the most visited posts of your site in a safe and stable manner, with no risk of downtime or slowness, based on data from Google Analytics statistics. The plugin is built for high-traffic sites where counting every visitor's click loads up the DB and can potentially crash the site.
You can set how often the data is refreshed from the widgets settings: hourly, twice a day or daily. By default, it is refreshed hourly.
You also have the possibility to create a custom template. Here it is how. In toplytics/resorces/views/frontend/ there is a file named widget.template.php, which is the default template. To create a custom template, copy the widget.template.php file here, rename it to custom.template.php and then customize it as you wish. The file is a typical PHP template file. You can also use the old method of creating a custom template with Toplytics: add a template.php file in your active theme's root folder. The priority regarding template files is the following: Toplytics will look for a template.php file in the root of the active theme folder - this is to ensure backwards compatibility, as this is how you could create a custom template before; you can still use this option too Then it will look for the file custom.template.php in toplytics/resorces/views/frontend/ folder, and if it does not exist, it will display the default template, which is widget.template.php
The shortcode has 5 parameters: period -> default=month (today/week/month) numberposts -> default=5 (min=1/max=250) showviews -> default=false (true/false) showimage -> default=false (true/false); displays the post's featured image. This requires the Include Featured Image in JSON Output setting to be enabled from Settings -> Toplytics, otherwise no image will be available to display; category -> default=0; restricts the top to posts belonging to the given category ID, e.g. category="5". Shortcode example: [toplytics period="week" numberposts="3" showviews="true" showimage="true"] The shortcode can be used within post/pages and in other widgets from the sidebar. For any parameter that is not used, the default value will be used.
There is a check in the widget Settings for this operation, called Load via Javascipt AJAX. This way the stats are read from the toplytics.json file or wp-json/toplytics/results (depends on which endpoint you've activated) and loaded dynamically with JavaScript. Otherwise, the results will be read from the database. This can be useful for sites that are using caching, for example. If the top is not loaded dynamically with JavaScript and AJAX, it will not refresh unless someone flushes the page cache. You can check the JavaScript code on the default template toplytics/resorces/views/frontend/widget.template.php.
This file contains the statistics in JSON format, if you have the custom JSON endpoint enabled. This option exists to maintain backwards compatibility, the recommend option now is to use the REST API Endpoint. This way, your statistics will be retrieved from the endpoint /wp-json/toplytics/results. After you enable the REST API Endpoint or the custom JSON endpoint, you need to flush the Permalink cache after you change this by visiting Settings > Permalinks and saving that form with no change. Both the toplytics.json file and the /wp-json/toplytics/results endpoint are designed to be used with the JS custom template code to load the top dynamically with JavaScript and AJAX.
The file toplytics.json is located to the root folder of the site. Example If the site domain is http://www.example.com/ then the file url is http://www.example.com/toplytics.json.
The Analytics API only returns the permalink of the posts and the number of pageviews. In order to display the title, as well as other post fields like featured image, post type etc, Toplytics searches your site's database for these additional information. However, there are some rare cases when you want to display on your site a top from another site, for example. This means that you don't have access to the respective site's database, only to it's Analytics statistics. In this case, you can activate Skip local posts discovery. This means that instead of searching for additional information in the site's database, Toplytics will try to generate a human readable title from the URLs that Google Analytics returns. This will only work if you have pretty permalinks enabled for your site's URLs. For example, if you have a post with the URL /code/kubernetes-mysql-operator-digital-ocean/, Toplytics will generate the title Code Kubernetes Mysql Operator Digital Ocean. Along with Skip Local Posts Discovery, you will also need to specify the Custom domain for the site, since Google Analytics doesn't give us the domain in the URLs it returns. We need the domain to create the links to the articles in the top.
First enable Include Featured Image in JSON Output from Settings -> Toplytics. Then, in the Toplytics widget settings (Appearance -> Widgets), check Display featured image? - this option only appears once the setting above is enabled. This works both for the default (PHP) rendering and for the Load via Javascript AJAX option.
In the Toplytics settings, you have an option called Posts to fetch from GA, which sets up how many articles, pages and other custom post types will be returned by the Google Analytics API. If you only want your top to show your most viewed posts (not pages or other custom post type), you have a Toplytics setting for specifying what king of posts appear in your top, called Allowed post types. By default it is set to post, which means that it will extract from the data fetched from Google only the posts. Toplytics will still extract for Google Analytics your 20 most viewed posts and pages for example, but will only display the most viewed posts.

More plugins by Presslabs

Sign In / Register

You need to sign in or register to use this feature.