Wordpress Stats not working since version 2.7

I’ve been hacking away the last couple of days to get myself a unique wordpress skin that melts in with the rest of the site (which is also still under construction like the blog) and suddenly my blog traffic started dropping rapidly until yesterday when it was showing only 1 visitor.

After reading through the code, I found a simple way to fix it!

The fix is fairly simple, open footer.php in your themes folder and just after the </body> tag, insert <?php wp_footer(); ?> which is responsible for loading the Wordpress Stats plugin.

Leave me a comment if it helped in anyway.

Capiche


Related Posts

Tags: , ,

8 Responses to “Wordpress Stats not working since version 2.7”

  1. Claudio says:

    Thanks a lot to solve this :)

  2. Jens says:

    Thanks, that did it for me!

  3. Re@PeR says:

    Glad it helped :-)

  4. xs__dev_net says:

    [...] to my friend Robert today about it and got irritated enough to google it. Google came back with: http://www.mycee.net/blog/2009/01/03/wordpress-stats-not-working-since-version-27/ Apparently since my theme was based on Wordpress 2.3 I was missing the include of the footer which [...]

  5. henry says:

    I tried the footer fix but to no avail, I am still looping at the API key input page

    wordpress.com stats is very good and I would dearly love to get i back

    Henry

  6. Re@PeR says:

    Hi Henry, is it working when you’re using the standard kubrick skin? Make sure you have your API key entered correctly under “Plugins”->”WordPress.com Stats”
    If you’ve entered the API key correctly and the tracking code is inserted into the footer, then it must be something preventing the tracking code from executing, will have a look and help you when I have proper internet again (that’ll be on the 1st of March), currently replying from my mobile until my ADSL is back online.

  7. Seems the same problem with me, My blog has also already inserted as well as the API key is also correct, really cannot figure out what is wrong

  8. Re@PeR says:

    Check that your footer.php is actually loaded, I’ve found with some skins, that the footer.php is never included or excluded from some pages which means the tracking code doesn’t execute.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Translator
広告