• Resolved blackgirlblackhair

    (@blackgirlblackhair)


    Hi,

    Jetpack stats and insights are unavailable to view. I’m usually able to see my views, visitors, referrals etc but this hasn’t been visible in the last 4 days despite having visitors and views as confirmed by google analytics. I have deleted and re-installed the jetpack plugin but no luck.

    The Jetpack stats pixel i.e. the code Jetpack uses to track visits appears to be missing from my site.

    I have included the link to the stats page. Can you help rectify the issue please.

    Many thanks

    The page I need help with: [log in to see the link]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Bruce (a11n)

    (@bruceallen)

    Happiness Engineer

    Hi @blackgirlblackhair

    Jetpack uses a function called wp_footer() to insert the Stats tracking code into your site. Could you check that this function is correctly added to your theme, as explained here?

    https://jetpack.com/support/wordpress-com-stats/#missing-wpfooter

    You will need to click on the section saying **The Stats feature is active, but no visits are being recorded anymore**.

    Thanks!

    Thread Starter blackgirlblackhair

    (@blackgirlblackhair)

    HiBruce,

    Thank you for your response. To the best of my knowledge, I can see the wp_footer() tag on my site. please see an extract from my footer.php showing the wp_footer() however I’m unsure if this is inserted correctly. Are you able to please have a look and advise? Thank you for your help.

    Extract:

    if ( ! defined( 'ABSPATH' ) ) {
    	exit; // Exit if accessed directly.
    }
    
    ?>
    <?php astra_content_bottom(); ?>
    	</div> <!-- ast-container -->
    	</div><!-- #content -->
    <?php 
    	astra_content_after();
    		
    	astra_footer_before();
    		
    	astra_footer();
    		
    	astra_footer_after(); 
    ?>
    	</div><!-- #page -->
    <?php 
    	astra_body_bottom();    
    	wp_footer(); 
    ?>wp_footer() 
    	</body>
    </html>
    Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Hi @blackgirlblackhair,

    Did you change your footer.php file recently, or updated/changed something on your theme?

    Your theme must have a call to:

    <?php wp_footer(); ?>

    If you compare your code with the wp_footer template linked here, you’ll notice that it’s different.

    Can you try editing the code and see how it goes? Thanks!

    Thread Starter blackgirlblackhair

    (@blackgirlblackhair)

    Hi Stef,

    Thank you for your help. Yes I did alter the file recently but I’m unsure what went wrong. I was able to insert the code as advised but this hasn’t resolved the issue, unfortunately. please see a snippet of my footer PHP file below. Thank you

    <?php
    /**
     * The template for displaying the footer.
     *
     * Contains the closing of the #content div and all content after.
     *
     * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
     *
     * @package Astra
     * @since 1.0.0
     */
    
    if ( ! defined( 'ABSPATH' ) ) {
    	exit; // Exit if accessed directly.
    }
    
    ?>
    <?php astra_content_bottom(); ?>
    	</div> <!-- ast-container -->
    	</div><!-- #content -->
    <?php 
    	astra_content_after();
    		
    	astra_footer_before();
    		
    	astra_footer();
    		
    	astra_footer_after(); 
    ?>
    	</div><!-- #page -->
    <?php 
    	astra_body_bottom();     
        wp_footer(); ?>
       </body> 
    </html>
    Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Hi @blackgirlblackhair,

    I see that the wp_footer() is there, but there might be something within the rest of the code that’s preventing the function to works properly. As this goes beyond the scope of our support, I’d recommend reaching out to the theme author(s) to ask about any theme-related changes in the footer.

    Alternatively, for further WordPress support, you can ask in the general WordPress.org forums here:

    Support Forums

    In case the issue still persists and it’s strictly related to our Jetpack stats footer function, then you can circle back to us and we’ll take another closer look at it 🙂

    Hope this helps! Let us know if there is anything else we can assist you with.

    Thread Starter blackgirlblackhair

    (@blackgirlblackhair)

    Hi Stef,

    Thank you for your help so far. I’ll reach out to the theme’s author ‘elementor’ and revert back with progress update.

    Kind regards

    That sounds like a plan.

    No need to reply until you’ve heard back from your theme’s developers, but once you do, please let us know the results and we can help from there if need be. Thanks!

    Plugin Contributor Jen H. (a11n)

    (@jenhooks)

    Hey @blackgirlblackhair,

    Since it’s been more than a week since we’ve heard from you, I’m going to go ahead and mark this thread as Resolved. If you still need a hand, please feel free to reach back out here and mark the thread as not resolved.

    Thanks!

    Thread Starter blackgirlblackhair

    (@blackgirlblackhair)

    Hi Jen,

    I haven’t gotten a response back from my theme editor unfortunately. Is it ok if I wait a couple more days and let you know the outcome please?

    Thanks

    Thread Starter blackgirlblackhair

    (@blackgirlblackhair)

    Hi Jen,

    I haven’t gotten a response back from my theme editor unfortunately. Is it ok if I wait a couple more days and let you know the outcome please?

    Plugin Contributor Jen H. (a11n)

    (@jenhooks)

    Hey, absolutely! Thanks for marking as not resolved. 🙂

    Thread Starter blackgirlblackhair

    (@blackgirlblackhair)

    Hi Jen,

    I didn’t hear back from my theme’s editor Astra and I also reached out to my website builder Elementor but unfortunately they weren’t able to resolve. Please proceed with taking a closer look.

    Many thanks for your help so far.

    Plugin Contributor Dan (a11n)

    (@drawmyface)

    Hi there

    I believe this may be related to your Complianz GDPR plugin, which may be blocking our stats script from working.

    You could confirm that by temporarily disabling the Complianz plugin, then visiting your site in a browser where you are not logged into the site. You can then enable the plugin again, wait a few hours, and check whether the visits were recorded.

    If so, I’d suggest checking your Complianz configuration, or posting on their support forum for help getting it to work with Jetpack stats:
    https://wordpress.org/support/plugin/complianz-gdpr/

    Thread Starter blackgirlblackhair

    (@blackgirlblackhair)

    Hi Dan,

    You’re absolutely correct. The issue was in fact due to my complianz plugin which is now resolved following your advise.

    Many thanks to you and the rest of the team for helping out.

    All the best!

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

The topic ‘Missing Jetpack Stats’ is closed to new replies.