WordPress 2.5 Optional Stats Problem
April 15, 2008 – 8:46 pmI added the new WordPress plugin to track stats on one of my sites and I wasn’t getting any stats. Turns out the theme I’m using is using a different (likely older) footer code than the stats are expecting.
I added a line into the stats code to make it catch the hook:
// Plant the tracking code in the footer
add_action( 'wp_footer', 'stats_footer', 101 );
add_action( ‘get_footer’, ’stats_footer’, 101 );