该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Pageviews

描述

Pageviews is a simple and lightweight views counter for your WordPress posts and pages. It is based on JavaScript and is compatible with all caching plugins, proxies and complex setups. Pageviews works with a hosted processing service, and performs extremely well under high-traffic and on sites with large amounts of content.

Don’t start from scratch! Import existing numbers from Google Analytics and other services with Pageviews Sync.

Features

  • Display the number of times a post or page has been viewed
  • Works on high-traffic websites with zero impact on performance
  • Includes useful hooks and APIs for seamless integration into third-party themes
  • Compatible with caching plugins, proxies and application firewalls

More information on Pageviews.io.

If you need any setup assistance or help migrating your existing views counts from other plugins or services please reach out to us via e-mail, or open a new thread in the WordPress.org support forums. For best performance Pageviews uses an external service to collect and process numbers. Visit our terms of service and privacy policy for more details.

屏幕截图

  • Customized implementation of the pageviews output, styled specifically for this theme
  • Simple replacement for WP-PostViews and other popular plugins with inherited styles
  • Default output of the views counter for themes that don't provide explicit support for this plugin

安装

Installing via the WordPress dashboard:

  1. Browse to Plugins – Add New in your WordPress dashboard.
  2. Search for “pageviews” using the search box on the right.
  3. Find the Pageviews plugin in the search results and click Install Now.

Installing via FTP:

  1. Upload the plugin files to the /wp-content/plugins/pageviews directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Enjoy.

Installing via WP-CLI:

wp plugin install pageviews --activate

Installing via Git:

cd wp-content/plugins
git clone https://github.com/pressjitsu/pageviews.git

For an installation and configuration guide please visit the full documentation on GitHub.

评价

2020年10月5日
Hi, This is the best Javascript-based page view counts for my website because it works with other major CACHE plugins such as WP Fastest Cache, SuperCache, etc. without more custom codes. My only drawbacks of this plugin are: 1. It is dependent on a third party website to count page views which may cause poor website performance. 2. There is no guide on how to reset those page view counts to Zero every month, 6 months or year, etc. However, I still give 5 STARs to this plugin despite the above drawbacks.
2018年3月29日
Installed this locally to test before utilizing on a client site and experienced no problems whatsoever in either environment. I’m using it in a custom theme template and the integration couldn’t have been simpler. Thank you for this fantastic plugin. I’ve also used it on a CPT with no issues as can be seen here. Here is how I’m using it on the blog.
2017年7月13日
Excelente. Mais simples seria difícil. Faz o que se propõe sem configurações. Apresenta as leituras de cada artigo de forma discreta e permite ir ao Google Analytics buscar a contagem total. Excellent. Simpler would be difficult. It does what it proposes without setings. Displays discreetly the views for each post and allows the user to fetch all the views stored on Google Analytics.
2017年6月7日
But you can stop this if you delete the last lines (just between <body> and </body> of auth.php Additionally it has no other settings-options, which is why I better go with https://de.wordpress.org/plugins/post-views-counter/. Last but not least it really does what it should, therefore at least 3 stars. Cheers and keep on improving it.
阅读所有7条评价

贡献者及开发者

“Pageviews” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

“Pageviews”插件已被翻译至3种本地话语言。 感谢所有译者为本插件所做的贡献。

将“Pageviews”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

0.11.0

  • Added pageviews_script_version_param filter to remove JS version fragment
  • Added minification. Enjoy your pagespeeds.

0.10.0

  • Added i18n
  • Russian translation
  • Added config.output_filter JavaScript filter for developers to filter the output number
  • A couple of typos

0.9.3

  • Add compatibility for Pageviews Sync
  • Better configuration handling methods

0.9.2

  • Add support for multiple containers per page for a single key
  • Add support for Jetpack’s Infinite Scroll module
  • Wrap the JS code into a triggerable event

0.9.1

  • Initial public release