Counting number of visits to my website

There are many different ways to get some stats regarding your site. One of the most popular solutions is to use Jetpack. Check this link for more info: http://jetpack.me/support/wordpress-com-stats/ Alternatively you may use a plugin such as this one: https://wordpress.org/plugins/wp-power-stats/ Another solution is to use a separate application such as AwStats which is usually provided … Read more

Detect When User Reads Full Article? [closed]

Haven’t seen a plugin that does this, since each theme would differ. But for a custom solution that would work with Google Analytics events see #9 here: https://searchenginewatch.com/sew/how-to/2287906/10-google-analytics-custom-events-that-track-the-untrackable OP also found this more specific article: http://cutroni.com/blog/2014/02/12/advanced-content-tracking-with-universal-analytics/ (These are in comments above, just posted to make it faster for those looking for something similar to find … Read more

First WordPress Plugin – Stat Issues

I’m having the same problem. Take a look at the opening comments of content-types-wordpress-plugin.php, it looks like there are extra line breaks between each line, which may disrupt the parser that pulls out the version number, etc. If you don’t see the extra breaks when you develop locally, you may have to play with the … Read more

Total number of posts in last year

All you need to do is modify the SQL query. Using the code you linked as a base: $numposts = $wpdb->get_var(“SELECT COUNT(*) FROM $wpdb->posts WHERE post_status=”publish” AND year(post_date) = 2010″); if (0 < $numposts) $numposts = number_format($numposts); The ‘AND’ I added basically gives you all the posts of 2010. Change the year accordingly