• Resolved b-rad

    (@b-rad)


    We use our WordPress theme on a custom application that runs alongside our WordPress site. We wrap the WordPress theme around our content using:

    <?php
    include($_SERVER['DOCUMENT_ROOT'].'/wp-load.php');
    get_header();
    ?>
    
    Non-WordPress content
    
    <?
    get_footer();
    ?>

    Which works nicely, however the pages in our application don’t register on the WordPress/Jetpack stats. Is there a way to get WordPress to include stats on this content?

    https://ww.wp.xz.cn/plugins/jetpack/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    I’m afraid that won’t work; Jetpack Stats require information about the page itself, namely its ID in the WordPress database. We then use that ID to display your Stats screen. If you try to add the tracking code on pages that do not have any matching ID in your WordPress database, the tracking code won’t work.

    Thread Starter b-rad

    (@b-rad)

    Darn. I figured as much. Thanks for the confirmation.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Stats on Non-WordPress Content’ is closed to new replies.