Jetpack by WordPress.com
[resolved] Yoast WordPress Sitemap broken by Stats (4 posts)

  1. Sollie
    Posted 3 years ago #


    I get an error with my sitemap when I submit it in Google Webmaster Tools; "Unsupported file format".

    When I remove the following code from my sitemap there are no errors in Webmaster Tools.

    <div style="display:none">
    	<script src="http://stats.wordpress.com/e-0000.js" type="text/javascript"></script>
    	<script type="text/javascript">
    	var load_cmc = function(){linktracker_init(8765646,0,2);};
    	if ( typeof addLoadEvent != 'undefined' ) addLoadEvent(load_cmc);
    	else load_cmc();

    Is there anyway I can prevent Jetpack from inserting this bit of code into my sitemap?



  2. Jeremy Herve
    Jetpack Mechanic
    Plugin Author

    Posted 3 years ago #

    Do you use the sitemap included in the WordPress SEO plugin? I tried to reproduce the problem on a test blog of mine, and the stats tracking code wasn't loaded on the sitemap page.

    Could you post your site URL here, so I can have a look?

    If you want it to remain private, you can also contact us via this contact form:

  3. Sollie
    Posted 3 years ago #

    Thanks, I have submitted and support request.

  4. Sollie
    Posted 3 years ago #

    Thanks for the information you sent. I tested all my plugins and it turns out that nextgen gallery (Version 2.0.11) is breaking WordPress SEO's sitemap. Soon as I deactivate nextgen gallery the sitemap is 100%.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic