• Resolved storefrontcity

    (@storefrontcity)


    Hi folks!

    A page I manage, https://www.TalkingWithGod.net, has recently ceased to record site visits on the Stats section. This has been the case since September 3rd, and we were previously getting around 20+ hits a day. Now, we are receiving 1 hit per day on Tuesday’s only (like clockwork, which makes me suspect a glitch rather than traffic issues).

    I uninstalled and reinstalled Jetpack, which didn’t help, and also installed MonsterInsights to check to see if it was a Jetpack or a more general problem (yet to generate stats with it either). I’ve also tested stats recording by visiting the site from several different computers, with no results.

    Any help would be massively appreciated.

    Thank you so much!!!!

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor James Huff

    (@macmanx)

    Jetpack, like many other plugins, uses a function called wp_footer() to insert elements like a Stats tracking code to your site’s footer. This function has to be added to your theme’s footer.php file, right before the closing tag. You can read more about it here: https://developer.www.ads-software.com/reference/functions/wp_footer/

    If you’ve recently edited that file or changed/updated your theme, you’ll want to make sure the wp_footer() function is still there.

    If it is there, you’ll want to check for other code you may have added to your theme (like in your sidebar for example) that may break everything that comes after.

    Thread Starter storefrontcity

    (@storefrontcity)

    Many thanks for this info James.

    I’v not recently changed any of the code, as I’m not proficient enough to do so on my own, sadly. Currently, the wp_footer() function reads as:

    wp_footer();
    
    	$options = get_option('inove_options');
    	if ($options['analytics']) {
    		echo($options['analytics_content']);
    	}
    Plugin Contributor James Huff

    (@macmanx)

    Hm, that should work, but the footer file may be malformed.

    When I view your site’s source, I definitely don’t see any trace of anything that would have been injected via wp_footer.

    If you try another theme for a day, like Twenty Nineteen, do the stats work properly?

    Thread Starter storefrontcity

    (@storefrontcity)

    Hi James,

    Thanks for the suggestion. I’ve given it a try (switching to another theme for a day), but I still can’t make the stats appear. For now, I’m going to use another stats plugin to monitor them, but it is a strange glitch indeed.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Jetpack Site Stats Not Working’ is closed to new replies.