Forums

WP Stats not working on multiple sites (16 posts)

  1. lingmiester
    Member
    Posted 4 years ago #

    I cant seem to get this to work on my multiple hosted sites. Of my 4 sites that I keep track off, it only records hits on 1. I'm using the same API for all 4, so it should not be a problem.

    From the FAQ

    Can I use the same API key on multiple blogs?

    Just like with Akismet, you're welcome to use the same API key on multiple blogs. In fact our interface is optimized for quickly switching between stats for multiple blogs.

    So it should work, but it does not...anyone have the same problem?

  2. Crazee
    Member
    Posted 4 years ago #

    Make sure you have the line
    <?php do_action('wp_footer'); ?>
    in the footer of the themes.

  3. lingmiester
    Member
    Posted 4 years ago #

    I have this:

    <?php get_footer(); ?>

    Is that the same thing?

  4. moshu
    Member
    Posted 4 years ago #

    No. Does it look like the same for you?

  5. lingmiester
    Member
    Posted 4 years ago #

    yeah, so are you any help at all?

    Any ways I figured it out.

  6. moshu
    Member
    Posted 4 years ago #

    You really have reading difficulties...

    You asked: Is that the same thing?
    And my answer was: No.

    What else do you want as "help"? (and the two lines of code don't look even remotely similar!)

  7. Otto
    Tech Ninja
    Posted 4 years ago #

    Crazee: The correct text to include in the footer would actually be <?php wp_footer(); ?>, because that function calls the wp_footer action for you. But what with forward compatibility and all...

  8. Crazee
    Member
    Posted 4 years ago #

    OK, thanks. I just checked the default theme what command is used there to make it work, and assumed that it used what we're supposed to use. :)

  9. Otto
    Tech Ninja
    Posted 4 years ago #

    The default theme does use <?php wp_footer(); ?>, although I suppose that may be relatively new. Anyway, it's in 2.2.1 and trunk, so it should be the right thing to do.

  10. maximoney
    Member
    Posted 4 years ago #

    I'm having a similar problem.

    Can somebody tell me if the following code is correct?

    <div id="footer">
    <?php get_footer(); ?>
    </div>

    </div> <!-- end wrapper -->
    <?php wp_footer(); ?>
    </body>
    </html>

    I followed the instructions by putting <?php wp_footer(); ?> directly above the </body> code, but still no results.

    I can't replace the get_footer with wp_footer, because then my footer goes blank.

    If anybody can tell me what I'm missing, I'd appreciate it.

  11. Alex Cragg
    Member
    Posted 4 years ago #

    I think <?php wp_footer(); ?> needs to go IN the footer.php file, before its closing div.

  12. maximoney
    Member
    Posted 4 years ago #

    Thanks epicalex,

    That did the trick.

    I really appreciate the quick response.

  13. microphobik
    Member
    Posted 4 years ago #

    Can anyone help? I having the same problem but the footer file in my theme is empty - totally blank. What do i put there? How do i get my stats working? Thanks.

  14. sneakykitty
    Member
    Posted 4 years ago #

    I'm having the same (or similar) problem; i have three blogs, A B and C.

    A and B are both subdomains, whereas C is the primary domain.

    A - shows up fine, only shows its own stats.

    If i have this plugin enabled on B and C, the stats are merged. I've checked and i have <?php wp_footer(); ?> in the footers of all three of them.

    They are all using the same api key, all running the same version of wordpress.

    Anything else i can check?

  15. Andy Skelton
    Member
    Posted 4 years ago #

    If you want somebody to look at your sites and check the central database for the cause, you must provide URLs for each blog.

  16. rubhi
    Member
    Posted 4 years ago #

    Same here...

    I have 3 blogs 1 on main domain xaapa.com and 2 on sub-domain horoscope.xaapa.com & mtvroadies.xaapa.com.

    WP-Stats show stat of all together under 1 url xaapa.com

    I want to see stat of all 3 differently.

    Please guide me..what wrong i am doing. Or where the issue is...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags