Este plugin no se ha probado con las últimas 3 versiones mayores de WordPress. Puede que ya no tenga soporte ni lo mantenga nadie, o puede que tenga problemas de compatibilidad cuando se usa con las versiones más recientes de WordPress.

Google Analytics Post Pageviews


This WordPress plugin links to your Google Analytics account to retrieve the pageviews for your posts.

Therefore you can easily include this number in your blog for yourself or all of your visitors.


  1. Copy the google-analytics-post-pageviews folder into wp-content/plugins
  2. Activate the plugin through the Plugins menu
  3. Configure from the new Post Pageviews Settings submenu


10 de enero de 2020
You must create oath api , and activate it yourself. Instructions are not clear. But plugin gives you what you need. perfect.
15 de agosto de 2018
Ignore the ShockFish review, and any other 1 stars, this plugin does work. The instructions for configuring the API could be clearer, but it's not that hard to figure out. Thanks very much Maxime Valette
6 de agosto de 2018
After trying to connect with GA using different versions of WP, and different Browsers it doesn't works anyway. After accepting google auth request and redirecting to plugin page nothing changes, still two links: Connect to GA and Clear Keys.
11 de noviembre de 2017
Hello, I wanted to stop by to drop a review and also say thank you for this plugin. I barely found any other post view counter that pulls pageviews from google analytics. The fact that you added UNIQUE pageviews makes this even better. On top of this, having the ability to show this on the frontend of the sight using php in any template makes this amazing! I really hope you continue development and support of this as this plugin has the potential to beat all other page/post view counter competitors I also wanted to recommend some features if possible for future! 1. Reports. On the frontend for logged in users, let them be able to see their pageviews for selected date ranges and for which posts. 2. Pull more metrics/stats from Google Analytics. (pageviews and unique pageviews was a great start!) 3. Be able to display more than one metric/stat at once. Thank you again for this plugin.
Leer todas las 22 reseñas

Colaboradores y desarrolladores

«Google Analytics Post Pageviews» es un software de código abierto. Las siguientes personas han colaborado con este plugin.


Traduce «Google Analytics Post Pageviews» a tu idioma.

¿Interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios


  • Added a setting to add a trailing slash on slugs when fetching stats.


  • Added a setting to select Unique pageviews.


  • Added a setting toggle to hide Views column.
  • Added a special setting to get main page pageviews, call gapp_get_post_pageviews(1).


  • The Views column can now be used to sort your articles!
  • More intelligent way of getting Pageviews based on published dates.
  • Preserve the old value if for some reason GA cannot fetch a new one.
  • Fixed width on Views column.
  • Fixed a case when GAPP could return an error or en empty string.


  • Added a default value when the pageviews count cannot be refreshed.


  • Adding 4 hour flush delay.
  • Solving an issue with accented characters in URLs.


  • Fix namespace unique ID first generation.
  • Static translation namespace because i18n tools are dumb.


  • Handling different DB namespaces for cache reset.
  • Handling transients using other cache system.


  • Reset cache also reset transient timeout values.


  • Fixed wrong transient expiration delay.


  • Try to display the cached number even if Google is disconnected.
  • Check the array for websites results in the settings.


  • Don’t disconnect the account if the API HTTP code is something else than 403.


  • Returns API error message from Google API.


  • Fixed an issue with Google auth token refresh.


  • Removed Google auth cronjobs and improved async re-authentication.


  • Added more details in the website selection.
  • Redirection after Google connection to avoid mis-auth.


  • Huge improvements on the Google authentication mechanism.


  • Improved the way the Google token is refreshed.
  • Added an anti-flood system when the Google API requests are not successful.
  • Added a link to empty the pageviews cache.


  • Using international number formatting for the views count, and adding a parameter to disable it on function call.


  • Avoid unnecessary API calls when the post is not published.


  • Improved Views column in Posts list.
  • Improved permalink detection.


  • Fixed some settings saving.
  • Improved API calls and error handling.


  • Minor but essential fix in the code snippet.


  • Added an optional Views column in Posts list.


  • Updated curl_ and file_ methods to WP_Http requests.


  • Changed the Google URLs to match the new Google Developers Console.
  • Specified a unique slug to prevent redirect_uri_mismatch.


  • Fixed a bug that prevented the token refresh.


  • First version. Enjoy!