All Projects → pressjitsu → pageviews

pressjitsu / pageviews

Licence: GPL-3.0 license
A simple and lightweight pageviews counter for your WordPress posts and pages.

Programming Languages

PHP
23972 projects - #3 most used programming language
shell
77523 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to pageviews

Vue Gtag
Global Site Tag plugin for Vue (gtag.js)
Stars: ✭ 445 (+1834.78%)
Mutual labels:  tracking, analytics
Yett
🔐A small webpage library to control the execution of (third party) scripts
Stars: ✭ 615 (+2573.91%)
Mutual labels:  tracking, analytics
Blacklist
Curated and well-maintained hostfile to block ads, tracking, cryptomining, and more! Updated regularly. ⚡🔒
Stars: ✭ 492 (+2039.13%)
Mutual labels:  tracking, analytics
Pirsch
Pirsch is a drop-in, server-side, no-cookie, and privacy-focused analytics solution for Go.
Stars: ✭ 257 (+1017.39%)
Mutual labels:  tracking, analytics
Gumshoe
A we analytics and event tracking sleuth JavaScript library
Stars: ✭ 39 (+69.57%)
Mutual labels:  tracking, analytics
Mixpanel Swift
Official iOS (Swift) Tracking Library for Mixpanel Analytics
Stars: ✭ 294 (+1178.26%)
Mutual labels:  tracking, analytics
Php Ga Measurement Protocol
Send data to Google Analytics from the server using PHP. Implements GA measurement protocol.
Stars: ✭ 561 (+2339.13%)
Mutual labels:  tracking, analytics
App
Just a little analytics insight for your personal or indie project
Stars: ✭ 40 (+73.91%)
Mutual labels:  counter, analytics
Aurelia Google Analytics
An Aurelia.io plugin that adds Google Analytics page tracking to your project.
Stars: ✭ 28 (+21.74%)
Mutual labels:  tracking, analytics
Mixpanel Android
Official Mixpanel Android SDK
Stars: ✭ 907 (+3843.48%)
Mutual labels:  tracking, analytics
svelte-google-analytics
Google Analytics component for Svelte
Stars: ✭ 41 (+78.26%)
Mutual labels:  tracking, analytics
React Tracker
React specific tracking library, Track user interaction with minimal API!
Stars: ✭ 191 (+730.43%)
Mutual labels:  tracking, analytics
viper
Real-time tracking and analytics using Node.js and Socket.IO
Stars: ✭ 12 (-47.83%)
Mutual labels:  tracking, analytics
Tracklytics
✔️ Annotation based tracking handler with aspect oriented programming
Stars: ✭ 416 (+1708.7%)
Mutual labels:  tracking, analytics
swetrix-js
The JavaScript analytics client for Swetrix Analytics
Stars: ✭ 28 (+21.74%)
Mutual labels:  tracking, analytics
Countly Server
Countly helps you get insights from your application. Available self-hosted or on private cloud.
Stars: ✭ 4,857 (+21017.39%)
Mutual labels:  tracking, analytics
Social-Media-Monitor
Automatically monitor and log fan counters from social media(Facebook Pages, Twitter, Instagram, YouTube, Google+, OneSignal, Alexa) using APIs to Google Spreadsheet. Very useful for website admins and social media managers.
Stars: ✭ 36 (+56.52%)
Mutual labels:  counter, analytics
Github Profile Views Counter
It counts how many times your GitHub profile has been viewed. Free cloud micro-service.
Stars: ✭ 781 (+3295.65%)
Mutual labels:  counter, analytics
Rotki
A portfolio tracking, analytics, accounting and tax reporting application that protects your privacy
Stars: ✭ 689 (+2895.65%)
Mutual labels:  tracking, analytics
Vue Analytics
Google Analytics plugin for Vue
Stars: ✭ 1,780 (+7639.13%)
Mutual labels:  tracking, analytics

Pageviews for WordPress

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.

Check out Pageviews.io for more information.

Installation

Extract the archive contents into your wp-content/plugins/pageviews directory and activate the Pageviews plugin through the WordPress plugin management interface or WP-CLI. After activating, your website will start counting and displaying your pageviews immediately.

Customization

By default, the number of views is displayed at the end of each post with a little bar-graph icon. Some WordPress themes with explicit support for the Pageviews plugin may display the counts differently to match the look and feel of the theme and its icon set.

To change the default behavior you'll need to declare support for the Pageviews plugin in your theme's functions.php file in the after_setup_theme action:

add_action( 'after_setup_theme', function() {
    add_theme_support( 'pageviews' );
});

This will disable the default behavior of appending the views count to the end of each post, giving you the freedom to display the counts with a simple pageviews action anywhere in your theme's template files (within the loop of course):

Views: <?php do_action( 'pageviews' ); ?>

The action will result in a special placeholder in the HTML, which when rendered, will be filled with the actual views count. If you'd like to retrieve the placeholder markup instead of rendering it directly, you may use the get_placeholder method like this:

if ( is_callable( array( 'Pageviews', 'get_placeholder' ) ) ) {
	$placeholder = Pageviews::get_placeholder( $post->ID );
	echo 'Views: ' . $placeholder;
}

The placeholder container class name is pageviews-placeholder which can be used for any necessary CSS positioning and styling.

Support

Feature requests, questions, bug reports and pull requests are always welcome. If you need help integrating this plugin into your theme, or migrating your existing counts from other plugins or services, such as Jetpack, Google Analytics, etc., please feel free to reach out to us by e-mail at [email protected].

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].