WordPress.com Stats and Custom Post Types?

  • Unknown's avatar

    Is there any way to get WordPress.com Stats, which I run on my self-hosted site (http://answerguy.com) via Jetpack, to include custom post types in the results/views it counts? I’ve been searching for this for almost a day and I come up empty!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    We Volunteers answering support forum questions posed by WordPress>COM bloggers on this forum cannot help you.

    Staff have requested that folks with Jetpack issues post their questions to the existing Jetpack forum at WordPress.org, since it would be easier to keep support focused in one place as much as possible: http://wordpress.org/support/plugin/jetpack

    If you don’t have a username account at WordPress.org, click http://wordpress.org/support/ and register one on the top right hand corner of the page that opens, so you can post to the correct support forums for your software.

  • Unknown's avatar

    I see.

    Problem with that is that this isn’t EXACTLY a JetPack question; it’s about the WordPress.COM Stats module that’s built into JetPack … or for that matter can be used WITHOUT Jetpack.

    See what I mean? I think this question actually DOES belong here!

    Still think I should move the question? I honestly think … not!

  • Unknown's avatar

    If you prefer to subscribe to this thread and wait patiently for a Staff response that’s fine with me. I already tagged it for Staff.

  • Unknown's avatar

    thanks for tagging it that way. I guess I’ll run them simultaneously and hope for an answer SOMEWHERE. Like I said, I fear this is the kind of thing that could have both sides thinking/saying “not me”.

    Like I said, thank you!

  • Do you mean that your custom post types aren’t showing up in your top posts/pages views?

  • Unknown's avatar

    Yes. Nor in the pages counts; all of a sudden Google Analytics is showing MANY wore page views than JetPack is … and didn’t used to

  • Ok, please make sure that your theme has a call to:

    <?php wp_footer(); ?>

    Right at the bottom, before the closing the body tag. This is usually in your theme’s Footer template.

  • Unknown's avatar

    therein lies a rub that’s a bit problematic. I use Headway, which puts all its calls in wp_options instead of in the theme files.

    The good news is that as a matter of practice I also use a child theme. so I’ve created a footer.php file from Headway’s sample/unused one. Here it is, complete with … well, I think you’ll get it. Should this satisfy what you directed me to do? (It hasn’t broken anything else, so that’s good news so far!):

    FOOTER.PHP Child Theme FILE FROM ANSWERGUY.COM
    ================================================
    <body>
    <?php wp_footer(); ?>
    </body>

    <?php
    /* Prevent direct access to this file */
    if ( !defined('WP_CONTENT_DIR') )
    die('Please do not access this file directly.');

    /* WordPress and a lot of plugins require the function in this file, so I guess we have to use it :-(. */
    wp_footer();

    HeadwayDisplay::body_close();

    HeadwayDisplay::html_close();

  • Hm, there are two calls to wp_footer, which may be the problem.

    Do you still have trouble if you temporarily switch to the Twenty Twelve theme?

  • The topic ‘WordPress.com Stats and Custom Post Types?’ is closed to new replies.