This plugin is going to display the number of visits for each page in the:
- Admin dashboard
- Browser developer-tools/console tab - (HIDDEN COUNTERS)
- Website/page frontend - (OPTIONAL)
You can add and display counters on the frontend of your website:
- total page-visits-counter and/or
- total website-visits-counter
( Page-visits-counter does not count page refresh as a new visit while Website-visits-counter counts everything. )
Hidden page counter + admin page reports
https://www.youtube.com/watch?v=wxWiFin8NwE
How to display hidden counter on a website frontend?
https://www.youtube.com/watch?v=LWKxYhtYH3o
The purpose of this plugin is to supplement the report of actual visits to the pages of the website that cannot be recorded through advanced analytical tools. Advanced analytical tools require the consent of a visitor before the visit is recorded.
WHY LITE?
- It is a small size software and it does not require much memory.
- It is not going to crowd your database with tons of metric data and "eat" database memory.
- It is not going to collect user's personal data - GDPR compliant.
NOT COUNTING
- Logged in user with a role:
- admin
- editor
- shop manager
- custom role
- Page refresh/reload ( But "Total Visits" load&reload sum will count it. )
- Submitting comments ( But "Total Visits" load&reload sum will count it. )
- Visiting direct media link in the uploads folder
- Media - attachment page
- Search results page
- Update cart ( But "Total Visits" load&reload sum will count it. )
- Checkout/order received ( But "Total Visits" load&reload sum will count it. )
COUNTING
- A visitor ( Not logged in )
- Logged in user with a role:
- Subscriber
- Author
- Contributor
- Pending_user
- Customer
- Pages and posts:
- Pages and subpages
- Default and Static Homepage
- Blog Posts page
- Single post
- Default category and tag - archive pages
- 404
- CPT
- Taxonomy archive pages
- WooCommerce:
- SHOP - archive page
- Single product
- Default category and tag - archive pages
- Attribute archive pages
- Cart ( Check Update cart is not counting... )
- Checkout ( Check "Checkout/order received" is not counting...)
ON CHANGE NAME of Page, Post, Product...
If you change the name of an existing page, post, product, archive, etc. then the old page will remain intact in the page visits report.
After a new visit, the new page name will appear in the page visits report and the counter will start counting visits for the new page from the start.
ON DELETE of Page, Post, Product...
If you delete an existing page, post, product, archive, etc. then the page will remain intact in the page visits report including its number of visits.
VISITS-COUNTER ON THE WEBSITE FRONTEND
There are two counter types:
- Website counter
- Page counter ( Not counting page refresh. )
You can add one or both counter types on your website or page frontend.
Instructions on how to add counter/s to your website are in the plugin settings page under the tab named counter.
FEATURES
- Invisible counter (In browser Developer-tools / Console)
- GDPR Compliant
- WooCommerce compatible
REQUIREMENTS
- WordPress 5.0 +
- PHP 5.6.40 +
- WooCommerce 4.9.2 +
PLUGIN UNINSTALL
On the plugin delete/uninstall it will automatically clean its data from the database unless you select to preserve them in the plugin settings area.
Therefore, it is harmless for you to try out this plugin.
FOR DEVELOPER
Admin dashboard widget has four wp-hooks:
- add_action( 'StrCPVisits_db_widget_wrapper_start' );
- add_action( 'StrCPVisits_db_widget_after_total_visits_boxes' );
- add_action( 'StrCPVisits_db_widget_wrapper_end_before_js' );
- add_action( 'StrCPVisits_db_widget_wrapper_end_after_js' );
- FIRST DOWNLOAD PLUGIN ZIP FILE.
- Log in to your administration panel.
- Go to Plugins page, click on Add New, then click “Upload Plugin” .
- Then click “Choose file” then select the plugin zip file.
- Install and activate plugin.
ATTENTION
After the plugin is installed and activated, you need to flush the cache memory for all pages and delete minified javascript (JS) and styling (CSS) files.
( Minified JS and CSS files will be recreated automatically by their own plugin/software.)
WHY?
If you are using cashing method to improve your website loading speed then you have to clean the cache memory so the plugin code gets included in your website code.
Otherwise, it will not work.
WHERE TO FIND?
A WP website cashing options can be found in:
- WP cashing and automatic optimization plugins
- Server/Hosting ( Not every hosting has this option... )
- Cloud
( A minify JS and CSS option can be found in WP automatic optimization plugins. )
You should flush the cache memory from all three places in the presented order.
Usually, there are buttons for that:
- A button can be named: Clear/Purge/Flush or a brume icon instead.
- A button named "Delete min JS and CSS" or something like that.
WHAT AFTER?
After that, log out from your website and visit the page that counts.
That visit should be recorded and you should see it in the plugin dashboard widget. To see it, you should log in again to your WP website backend and visit the menu option called Dashboard. Search for the widget like seen in the screenshot tab.
1.2.1 - 12.10.2024
Tested on WP version 6.6.2
Bug Fixed - delete page
1.2.0 - 13.12.2023
Fix coding standards
Add the disclaimer and privacy policy in plugin files
Hash IP address
Add Croatian translation
Tested on WP version 6.4.2
1.1.7 - 10.02.2023
Fix nonexistent array key error when new IP - ( prevent PHP warning in debug.log )
1.1.6 - 10.02.2023
Tested on WP version 6.2
1.1.5 - 04.11.2022
Tested on WP version 6.1
== Changelog ==
1.1.4 - 16.07.2022
Tested on WP version 6.0.3
1.1.3 - 12.07.2022
Tested on WP version 6.0
Tested with PHP version 7.4
1.1.2 - 10.02.2022
Tested on WP version 5.9
1.1.1 - 15.04.2021
Upgrade:
"Not counting this page" indicator in hidden counter when logged in with not counting user role.
Bug fixed - getting the page report data when page report deleted.
1.1.0 - 14.04.2021
Upgrade:
Add HTML code and display counter on the website frontend:
- Current page visits counter
- Website visits counter
Dev Tools / console - see the visits number even if you are logged in with a user role that doesn't count...
1.0.5 - 06.04.2021
Switching between hidden and visible list when search menu expanded is upgraded
1.0.4 - 31.03.2021
Plugin internationalized
Tested on WordPress 5.7.0
Bug fixed - deselect all on list type switch when options menu closed
1.0.3 - 29.03.2021
Dashboard widget - Video tutorial button added
1.0.2 - 23.03.2021
On page report/s delete - remove it from hidden reporting bug fixed
1.0.1 - 23.03.2021
On page report/s delete remove it from hidden reports list
1.0.0 - 22.03.2021
Initial release...