
Retrieves and displays the pageviews for each post by linking to your Google Analytics account.
| Author: | AddWeb Solution (profile at wordpress.org) |
| WordPress version required: | 6.5 |
| WordPress version tested: | 7.2 |
| Plugin version: | 3.0.0 |
| Added to WordPress repository: | 27-05-2019 |
| Last updated: | 27-11-2023
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
| Rating, %: | 0 |
| Rated by: | 0 |
| Plugin URI: | |
| Total downloads: | 3 355 |
| Active installs: | 10+ |

Click to start download
|
This WordPress plugin link to your G-Analytics account to retrieve the pageviews count for your posts.
Therefore you can easily use them and can include this in your blog for yourself or all of your visitors.
There are 3 ways to Add the most popular post on your website.
1) Widget => There is a widget to add Most visited post on your website.
2) Slider => There is an option to enable / disable slider and can set number of posts in wp-admin.
Use below shortcode to add Slider.
[tapp_get_latest total_post=\”Number of post you want to show\”]
3) Grid => There is an option to enable/disable Grid and can set the number of posts in wp-admin.
Use below shortcode to add Grid.
[get_latest_grid total_post=\”Number of post you want to show\”]
Screenshots

Analytics setup

Slider settings

Grid settings

Add analytics code

Popular posts slider on the front end

Popular posts grid on the front end
FAQ
Do I need a Google account?
No. The built-in view counter works without one. Google Analytics 4 is optional.
I used version 2. What do I need to do?
Google switched off Universal Analytics, which version 2 used, in 2024. After updating, open Settings > Traffic Post Page Views, connect to Google again and choose your GA4 property. If your Google Cloud project only had the old Analytics API enabled, also enable the Google Analytics Data API and Admin API. Your settings, widgets and shortcodes are kept, and the existing view counts stay visible until the first GA4 sync.
Why doesn’t my post show up in the popular list?
Only posts with at least one view are listed. With Google Analytics, counts update on the schedule you chose; click Sync now for an immediate update. With the built-in counter, your own visits are not counted while you are logged in as an author, editor or administrator. You can change this in the settings.
Does the built-in counter work with caching plugins?
Yes. The count is sent by a small script after the page loads, so it also works on cached pages.
Is the Google connection secure?
The plugin uses Google’s OAuth 2.0 with a one-time security code and only asks for read-only access to Analytics. Only administrators can connect, disconnect or change settings.
ChangeLog
3.0.0
- New: Google Analytics 4 support. Version 2 used Universal Analytics, which Google switched off in 2024, so view counts could no longer be fetched.
- New: Built-in view counter that works without a Google account and with page caching.
- New: Popular Posts block with list, grid and slider layouts.
- New: Most viewed in the last 7 days, the last 30 days or all time (block, widget and shortcodes).
- New: [tapp_popular_posts] and [tapp_views] shortcodes.
- New: Page views box on the post edit screen and a tapp_views field in the REST API.
- New: Choose which post types are counted (posts, pages, custom post types).
- New: “Sync now” button and a sync status overview.
- Improvement: View counts are fetched from Google in the background with a few batched requests, instead of one request per post while pages load.
- Improvement: New slider without jQuery (swipe, keyboard and screen reader support), ready for jQuery 4 in WordPress 7.2.
- Improvement: The Popular Posts widget now has the period, featured image and view count options and uses the theme’s widget markup.
- Improvement: Shortcodes no longer depend on Bootstrap; the grid is responsive.
- Improvement: Removed about 400 KB of unused files (Bootstrap, jQuery UI, colour picker, bxSlider).
- Fix: Every front-end page stopped loading while the plugin was active (leftover debug code).
- Fix: Saved Google client ID and secret were erased when the settings were loaded.
- Fix: The slider shortcode printed its output in the wrong place on the page.
- Fix: The GA tracking tag was printed even when no ID was set.
- Security: The Google sign-in is protected with a one-time security code, and all settings actions check permissions and use nonces.
- Security: All output is escaped, and the tracking ID and slider sizes are validated.
- Compatibility: Tested with WordPress 7.2; compatible with PHP 7.4 to 8.4. Requires WordPress 6.5 and PHP 7.4 or later.
- Settings, widgets and shortcodes from version 2 are kept; a notice asks you to reconnect Google Analytics.
2.4.1
- Update Author & Contributor
2.4
2.3
- Compatibility check with WordPress 6.3
2.2
- Compatibility check with WordPress 6.3
2.1
2.0
- Menu name change in admin side
1.0