Count per Day
"Count per Day" ist ein Besucherzähler für WordPress.
Die Seitenaufrufe werden pro Artikel gespeichert. Dabei wird als "Reload-Sperre" nur ein Aufruf pro IP-Adresse und Tag berücksichtigt.
Beispiel: Wenn ein Leser 5 Artikel ansieht, sind alle "1 mal gelesen", aber der Gesamtzähler erkennt, dass es nur ein Besucher war.
Die Aufrufe können pro Artikel angezeigt werden. Im Admin-Bereich gibt es weitere Statistiken.
- Dashboard
- Widget
- Worldmap
- Visitors
- Notes
- Settings
Count per Day 3.2.5
Contributors: Tom BraiderTags: counter, count, posts, visits, reads, dashboard, widget, shortcode
Requires at least: 3.0
Tested up to: 3.5
Stable tag: 3.2.5
License: Postcardware :)
Donate link: www.tomsdimension.de/postcards
Visit Counter, shows reads and visitors per page, visitors today, yesterday, last week, last months and other statistics.
Description
- count reads and visitors
- shows reads per page
- shows visitors today, yesterday, last week, last months and other statistics on dashboard
- shows country of your visitors
- you can show these statistics on frontend per widget or shortcodes too
- Plugin: www.tomsdimension.de/wp-plugins/count-per-day
- Donate: www.tomsdimension.de/postcards
Languages, Translators
- up to date translations:
- Bulgarian - joro - www.joro711.com
- German - Tom - www.tomsdimension.de
- Japanese - Juno Hayami juno.main.jp/blog/
- Portuguese - Beto Ribeiro - www.sevenarts.com.br
- Russian - Ilya Pshenichny - iluhis.com
- older, incomplete translations:
- Azerbaijani - Bohdan Zograf - whttp://www.webhostingrating.com
- Belarusian - Alexander Alexandrov - www.designcontest.com
- Dansk - Jonas Thomsen - jonasthomsen.com
- Dutch NL - Rene - wpwebshop.com
- Espanol - Juan Carlos del Río -
- Finnish - Jani Alha - www.wysiwyg.fi
- France - Bjork - www.habbzone.fr
- Greek - Essetai_Imar - www.elliniki-grothia.com
- Hindi - Love Chandel - outshinesolutions.com
- Italian - Gianni Diurno - gidibao.net
- Lithuanian - Nata Strazda - www.webhostinghub.com
- Norwegian - Stein Ivar Johnsen - iDyrøy.no
- Polish - LeXuS - intrakardial.de
- Romanian - Alexander Ovsov - webhostinggeeks.com
- Swedish - Magnus Suther - www.magnussuther.se
- Turkish - Emrullah Tahir Ekmekçi - emrullahekmekci.com.tr
- Ukrainian - Iflexion design - iflexion.com
Installation
- unzip plugin directory into the
/wp-content/plugins/directory - activate the plugin through the
Pluginsmenu in WordPress - on every update you have to deactivate and reactivate the plugin to update some settings!
The activation will create or update a table wp_cpd_counter.
The Visitors-per-Day function use 7 days as default. So don't surprise about a wrong value in the first week.
Configuration
See the Options Page and check the default values.
Frequently Asked Questions
Screenshots
Arbitrary section
Shortcodes
You can use these shortcodes in the content of your posts to show a number or list
or in your theme files while adding e.g.
<?php echo do_shortcode("[THE_SHORTCODE]"); ?>.To use the shortcodes within a text widget you have to add
add_filter("widget_text", "do_shortcode"); to the functions.php of your theme.[CPD_READS_THIS]
[CPD_READS_TOTAL]
[CPD_READS_TODAY]
[CPD_READS_YESTERDAY]
[CPD_READS_LAST_WEEK]
[CPD_READS_THIS_MONTH]
[CPD_READS_PER_MONTH]
[CPD_VISITORS_TOTAL]
[CPD_VISITORS_ONLINE]
[CPD_VISITORS_TODAY]
[CPD_VISITORS_YESTERDAY]
[CPD_VISITORS_LAST_WEEK]
[CPD_VISITORS_THIS_MONTH]
[CPD_VISITORS_PER_MONTH]
[CPD_VISITORS_PER_DAY]
[CPD_VISITORS_PER_POST]
[CPD_FIRST_COUNT]
[CPD_MOST_VISITED_POSTS]
[CPD_POSTS_ON_DAY]
[CPD_CLIENTS]
[CPD_COUNTRIES]
[CPD_COUNTRIES_USERS]
[CPD_REFERERS]
[CPD_POSTS_ON_DAY date="2010-10-06" limit="3"]
- date (optional), format: year-month-day, default = today
- limit (optional): max records to show, default = all
- width and height: size, default 500x340 px
- what: map content - reads|visitors|online, default reads
- min: 1 (disable title, legend and zoombar), default 0
- days (optional), show last x days
- limit (optional): show x most searched strings
You can place these functions in your template.
Use
<?php
global $count_per_day;
if(method_exists($count_per_day,"show")) echo $count_per_day->getReadsAll(true);
?>to check if plugin is activated.
show( $before, $after, $show, $count, $page )'
- $before = text before number e.g.
<p>(default "") - $after = text after number e.g.
reads</p>(default " reads") - $show = true/false, "echo" complete string or "return" number only (default true)
- $count = true/false, false will not count the reads (default true)
- $page (optional) PostID
count()- only count reads, without any output
showcall it
getFirstCount( $return )- shows date of first count
- $return: 0 echo, 1 return output
getUserPerDay( $days, $return )- shows average number of visitors per day of the last $days days
- default on dashboard (see it with mouse over number) = "Latest Counts - Days" in options
- $return: 0 echo, 1 return output
getReadsAll( $return )- shows number of total reads
- $return: 0 echo, 1 return output
getReadsToday( $return )- shows number of reads today
- $return: 0 echo, 1 return output
getReadsYesterday( $return )- shows number of reads yesterday
- $return: 0 echo, 1 return output
getReadsLastWeek( $return )- shows number of reads last week (7 days)
- $return: 0 echo, 1 return output
getReadsThisMonth( $return )- shows number of reads current month
- $return: 0 echo, 1 return output
getReadsPerMonth( $return )- lists number of reads per month
- $return: 0 echo, 1 return output
getUserAll( $return )- shows number of total visitors
- $return: 0 echo, 1 return output
getUserOnline( $frontend, $country, $return )- shows number of visitors just online
- $frontend: 1 no link to map
- $country: 0 number, 1 country list
- $return: 0 echo, 1 return output
getUserToday( $return )- shows number of visitors today
- $return: 0 echo, 1 return output
getUserYesterday( $return )- shows number of visitors yesterday
- $return: 0 echo, 1 return output
getUserLastWeek( $return )- shows number of visitors last week (7 days)
- $return: 0 echo, 1 return output
getUserThisMonth( $return )- shows number of visitors current month
- $return: 0 echo, 1 return output
getUserPerMonth( $frontend, $return )- lists number of visitors per month
- $frontend: 1 no links
- $return: 0 echo, 1 return output
getUserPerPost( $limit, $frontend, $return )- lists $limit number of posts, -1: all, 0: get option from DB, x: number
- $frontend: 1 no links
- $return: 0 echo, 1 return output
getMostVisitedPosts( $days, $limits, $frontend, $postsonly, $return )- shows a list with the most visited posts in the last days
- $days = days to calc (last days), 0: get option from DB
- $limit = count of posts (last posts), 0: get option from DB
- $frontend: 1 no links
- $postsonly: 0 show, 1 don't show categories and taxonomies
- $return: 0 echo, 1 return output
getVisitedPostsOnDay( $date, $limit, $show_form, $show_notes, $frontend, $return )- shows visited pages at given day
- $date day in MySQL date format yyyy-mm-dd, 0 today
- $limit count of posts
- $show_form show form for date selection, default on, in frontend set it to 0
- $show_notes show button to add notes in form, default on, in frontend set it to 0
- $frontend: 1 no links
- $return: 0 echo, 1 return output
getClients( $return )- shows visits per client/browser in percent
- $return: 0 echo, 1 return output
getReferers( $limit, $return, $days )- lists top $limit referrers of the last $days days, 0: get option from DB, x: number
- $return: 0 echo, 1 return output
getMostVisitedPostIDs( $days, $limit, $cats, $return_array )- $days last x days, default = 365
- $limit return max. x posts, default = 10
- $cats IDs of categories to filter, array or number
- $return_array true returns an array with Post-ID, title and count, false returns comma separated list of Post-IDs
function getMap( $what, $width, $height, $min )- gets a world map
- $what visitors|reads|online
- $width size in px
- $height size in px
- $min : 1 disable title, legend and zoombar
getDayWithMostReads( $return )- shows day with most Reads
- $return: 0 echo, 1 return output
getDayWithMostVisitors( $return )- shows day with most Visitors
- $return: 0 echo, 1 return output
- With GeoIP you can associate your visitors to an country using the ip address.
- In the database a new column
countrywill be insert on plugin activation. - On options page you can update you current visits. This take a while! The Script checks 100 IP addresses at once an reload itself until less then 100 addresses left. Click the update button to check the rest.
- If the rest remains greater than 0 the IP address is not in GeoIP database (accuracy 99.5%).
- You can update the GeoIP database from time to time to get new IP data. This necessitates write rights to geoip directory (e.g. chmod 777).
- If the automatically update don't work download GeoIP.dat.gz and extract it to the "geoip" directory.
- More information about GeoIP on www.maxmind.com/app/geoip_country
Changelog
3.2.5
- Bugfix: compatibility fix for WordPress 3.5
3.2.4
- Bugfix: security fix, check user permissions
3.2.3
- Bugfix: security fix, XSS in search words, thanks to www.n0lab.com/?p=163
3.2.2
- New: counter column in custom post lists
- Bugfix: errors in search words
- Bugfix: wrong counts in posts lists
3.2.1
- Bugfix: massbot delete error
- Bugfix: search words array sometimes corrupt
- Bugfix: add collected data to reads per post, thanks to Suzakura Karin yumeneko.pmfan.jp / is.gd/VWNyLq
- Language update: Japanese, thanks to Juno Hayami
- Language update: Portuguese, thanks to Beto Ribeiro
- Language update: Russian, thanks to Ilya Pshenichny
- Language update: Bulgarian, thanks to joro
3.2
- New: save search words
- New shortcode: CPD_COUNTRIES_USERS
- New: flags for Bahamas, Mongolia, Cameroon and Kazakhstan
- Bugfix: can't move widgets
- Bugfix: visitors per post list
- Bugfix: "Clean Database" deleted collection too
- Bugfix: browser summary Chrome/Safari fixed
- Bugfix: get real remote IP address, not local server
- Bugfix: security fixes
- Change: create collection functions optimized
- New language: Romanian, thanks to Alexander Ovsov
- New language: Hindi, thanks to Love Chandel
- New language: Finnish, thanks to Jani Alha
- Language update: Ukrainain, thanks to Iflexion design
3.1.1
- Bugfix: important fixes in map.php and download.php, thanks to 6scan.com
3.1
- New: memory check before backup to avoid "out of memory" error
- New: create temporary backup files for download only
- New: delete backup files in wp-content on settings page
- Bugfix: all posts shows 1 read in posts list
- Bugfix: clean database shows 0 entries deleted
3.0
- New: use now default WordPress database functions to be compatible to e.g. multi-db plugins
- New: backup your counter data
- New: collect entries of counter table per month and per post to reduce the database and speed up the statistics
- New: functions and shortcodes [CPD_DAY_MOST_READS] [CPD_DAY_MOST_USERS] to shows days with most reads/visitors
- New: option to cut referrer on "?" to not store query strings
- New: parameter
$postsonlyforgetMostVisitedPostsfunction to list single posts and pages only - New: flags for Moldavia and Nepal
- New language: Norwegian, thanks to Stein Ivar Johnsen and Tore Johnny Bråtveit
- New language: Azerbaijani, thanks to Bohdan Zograf
- New language: Japanese, thanks to Juno Hayami
- Bugfix: visitors per month list
- Change: some function parameters
- Change: little memory optimizing
- Change: visitors currently online and notes will now managed per option, without seperate tables in database
- Change: design updated
- Change: old bar charts deleted
created by Readme Parser

Help me
Try the Development Version or wait for the update
Seit der Version 3.2 werden Seitenaufrufe sichtbar weniger gezählt. 1500 früher im Schnitt sind jetzt nur mehr knapp 600. Warum? Meine Grafik hat seit dem Tag einen groben Einbruch... LG Fred
Das halte ich erst mal für einen Zufall. Ich habe in meinen Blog kein derartiges Problem festgestellt. Es wurde auch nichts an der Zählung geändert. Hast du vielleicht die Spam-Liste erweitert oder die Einstellung welche Besucher gezählt werden? Also früher vielleicht auch angemeldete Besucher und jetzt nicht mehr.
Habe wirklich nichts verändert, sondern nur das Update gemacht.
Bei der Grafik ist der Tag des Updates sichtbar - die Besucher sind gleich geblieben.
siehe
Danke für das tolle Plugin.
LG
Fred
Kannst du mal das Diagramm mit der Datenbank für einige Tage vergleichen, wie viele Einträge dort pro Tag drinstehen?
Beispiel für den 10.7.
SELECT COUNT(*) FROM wp_cpd_counter WHERE date = '2012-07-10'Diese Zahl muss mit den Seitenaufrufen übereinstimmen. Wenn ja, dann stimmt das Diagramm und es sind nicht mehr Einträge vorhanden. Dann könntest du mal nach ID sortieren und schauen ob es dort Lücken gibt. Sprich, dass Einträge gelöscht wurden. Evtl. durch das Löschen von "Massen-Bots"? Benutzt du die Zusammenfassungsfunktion und hast du vor Version 3.2 mal die "Datenbank aufgeräumt". Da gab es einen Fehler, dass die ggf. Zusammenfassung mit gelöscht wurde. Der wurde aber mit 3.2 behoben.
Danke. Wo gebe ich den oben gezeigten Code für 10.7. ein?
Habe jetzt mal die Datenbank aufgeräumt.
ähm, phpmyadmin oder welches MySql-Admin-Tool du auch immer benutzt.
Danke, also direkt in der Datenbank. Da mache ich nichts ausser Sicherheitskopien
Ich nutze Count per Day auch und bin sehr zufrieden. Eine Postkarte steht aber noch aus.
Eine unschöne Kleinigkeit ist mir noch aufgefallen. Es ist kein Bug, wäre aber ein Vorschlag für die nächste Version. Wenn ich in WordPress einen passwortgeschützten Artikel habe, zählt Count per Day offensichtlich auch die Besucher, die den Artikel aufrufen und das Passworteingabefeld sehen, aber den Artikel nicht tatsächlich lesen, weil sie das Passwort nicht kennen. Mir fehlt also dann die Information, wieviele Besucher den passwortgeschützten Artikel tatsächlich gelesen/aufgerufen haben.
Ansonsten bin ich hochzufrieden. Gute Arbeit. Danke!
Genau genommen ist es schon ein Bug, denn es sollen ja die Seiten gezählt werden die auch gelesen werden.
Mal sehen was sich machen lässt. Danke für den Hinweis. Ich selbst nutze keine geschützten Artikel, daher ist mir das noch nie aufgefallen.
Love the widget....how do I show more info in the footer? When I installed it I only checked a few boxes and I want to add some others. Don't see how to get to them. Delete and reinstall???
I think you mean the widget. So change the settings on Design->Widgets.
Also you can add some more widgets to separate the data.
genialer Besucherzähler!!!
Is it possible to add code to a page within the domain that is not a WP post, but still be able to track it in the stats page?
No.
Hallo, habe wieder 3.1.1 draufgegeben und man sieht sehr deutlich in der Grafik wo ich den Seitenzugriffszahleneinbruch bei der neuesten Version 3.2.2 hatte.
Die 3.2.2 zählt bei dir also wirklich weniger Zugriffe als die Vorversionen? Ohne Änderungen an den Einstellungen? Kann ich mir nciht erklären.
Hallo,
seit heute wird mir diese Fehlermeldung angezeigt:
Warning: session_start(): open(/var/tmp/5/b/sess_5b71c59b5f71e5e51fe8a8a61c1bc89a, O_RDWR) failed: No such file or directory (2) in /blog/pda/wp-content/plugins/count-per-day/counter-core.php on line 200 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /blog/pda/wp-content/plugins/count-per-day/counter-core.php:200) in /blog/pda/wp-content/plugins/count-per-day/counter-core.php on line 200 Warning: Cannot modify header information - headers already sent by (output started at /blog/pda/wp-content/plugins/count-per-day/counter-core.php:200) in /blog/pda/wp-content/plugins/wordpress-hit-counter/image.php on line 60
Ist das ein Problem auf meiner Seite?
Gruß
Oliver
Hallo,
ja, Strato hat was(genauer: php's sessionstore) kaputtgefummelt, wir (und einige andere im Bekanntenkreis) haben das gleiche Problem. Supportticket ist raus, mal sehen wann sie was dagegen tun.
So wies aussieht ist deren komplettes /var/tmp nicht mehr da, da ist wohl ein Filer gestorben.
Grüße,
Martok
Habe wohl das gleiche Problem wie Oliver - Seit heute Nacht erhalte ich plötzlich folgende Fehlermeldungen:
Warning: session_start() [function.session-start]: open(/var/tmp/o/6/sess_o6e40fm42egd37o219asjj6cm5, O_RDWR) failed: Permission denied (13) in /mnt/webd/c1/97/53032697/htdocs/WordPress_01/wp-content/plugins/count-per-day/counter-core.php on line 200
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /mnt/webd/c1/97/53032697/htdocs/WordPress_01/wp-content/plugins/count-per-day/counter-core.php:200) in /mnt/webd/c1/97/53032697/htdocs/WordPress_01/wp-content/plugins/count-per-day/counter-core.php on line 200
Was hat das zu bedeuten? Muss ich das Plugin zunächst deinstallieren?
Also wenn ihr beide bei Strato seid und Martok recht hat, ist Strato schuld. Mit den Zugriffsrechten auf das var Verzeichnis habe ich nichts zu tun bzw. kann auch nichts tun.
...also, ich bin bei Strato. Dann werde ich denen wohl mal schreiben...
Hallo,
bekomme beim Aufruf der Seite und beim Versuch Änderungen im Admin-Bereich zu speichern folgende Fehlermeldungen:
Warning: session_start() [function.session-start]: open(/var/tmp/j/v/sess_jv9g2r66951fmpkcsm875fj3c0, O_RDWR) failed: Permission denied (13) in /mnt/webh/c1/90/5149490/htdocs/wordpress/wp-content/plugins/count-per-day/counter-core.php on line 200
...
Kann bitte jemand unterstützen?
Vielen Dank.
OK, wer lesen kann ist wieder mal klar im Vorteil.
Habe wohl noch gepennt
Ah, Strato also. Ich habe denselben Fehler. Könntet Ihr vielleicht hier Bescheid geben, wenn's wieder geht?