WordPress.org

Support

Support » Plugins and Hacks » WordPress.com Stats » [Plugin: WordPress.com Stats] Ignore Visits to Page or Post

[Plugin: WordPress.com Stats] Ignore Visits to Page or Post

  • It would be great to be able to specify on the configuration page post IDs that wp-stats should not track. This is a snippet that I added into the stats.php file to ignore a specific page, which I use as a homepage.

    //here is a fun thing to keep the homepage from being tracked
    	if ( $a['post'] == "1565" ){
    	echo ('<p style="text-align:center">not tracked</p>');
    	return;
    }
    //this is the end of the fun thing to keep the homepage from being tracked

    I drop that in around line 110 in stats.php, in the stats_footer function. Works great, but I have to add it in at every update!

    http://wordpress.org/extend/plugins/stats/

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: WordPress.com Stats] Ignore Visits to Page or Post’ is closed to new replies.
Skip to toolbar