{"id":445,"date":"2018-03-11T01:49:48","date_gmt":"2018-03-11T01:49:48","guid":{"rendered":"http:\/\/kevinmichaelcoy.com\/blog\/?p=445"},"modified":"2018-03-11T01:50:39","modified_gmt":"2018-03-11T01:50:39","slug":"indexing-of-sitemap-for-angularjs-site-increasing","status":"publish","type":"post","link":"http:\/\/kevinmichaelcoy.com\/blog\/2018\/03\/11\/indexing-of-sitemap-for-angularjs-site-increasing\/","title":{"rendered":"Indexing of Sitemap for AngularJS Site Increasing"},"content":{"rendered":"<p>Previously, I posted\u00a0<a href=\"http:\/\/kevinmichaelcoy.com\/blog\/2018\/02\/19\/2018-search-engine-optimization-with-angularjs-1-x-single-page-application\/\">2018 Search Engine Optimization with AngularJS 1.x Single Page Application<\/a>. In that post, I highlighted how to use HTML5 Mode in an AngularJS app to get the hash bang URLs to redirect to URLs that are more friendly for web crawlers like Googlebot. Prior to this change, I only ever got three URLs indexed by Googlebot. One of which of course was the main website URL (ie, www.wingspecials.today) and the other two were my &#8220;<a href=\"http:\/\/www.wingspecials.today\/about-us\">about us<\/a>&#8221; and &#8220;<a href=\"http:\/\/www.wingspecials.today\/contact-us\">contact us<\/a>&#8221; pages. Unfortunately, Google doesn&#8217;t show you which pages actually were indexed, but it is safe to assume that the only three pages in my <a href=\"http:\/\/www.wingspecials.today\/sitemap.xml\">sitemap.xml<\/a> that did not use hash bang URLs were the ones that got indexed.<\/p>\n<p>Afterward making my SEO improvements, I went to Google&#8217;s Webmaster Search Console and resubmitted my <a href=\"http:\/\/www.wingspecials.today\/sitemap.xml\">sitemap.xml<\/a>. It did not take too long before I could see an increase in the number of pages indexed. In about four days, I saw a quick spike then a slow but steady increase in the number of links indexed. Twenty days later, I stand at about 18 out of 40 links indexed. It is clear that these SEO changes have worked well with Googlebot (it is also clear that Googlebot is still not able to successfully index AngularJS pages as others have claimed it should).<\/p>\n<div id=\"attachment_446\" style=\"width: 2358px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-446\" loading=\"lazy\" class=\"size-full wp-image-446\" src=\"http:\/\/kevinmichaelcoy.com\/blog\/wp-content\/uploads\/2018\/03\/google-search-wingspecials-today-sitemap-increase.png\" alt=\"Googlebot able to successfully index hash bang URLs from sitemap.xml for AngularJS with HTML5mode turned on.\" width=\"2348\" height=\"1262\" srcset=\"http:\/\/kevinmichaelcoy.com\/blog\/wp-content\/uploads\/2018\/03\/google-search-wingspecials-today-sitemap-increase.png 2348w, http:\/\/kevinmichaelcoy.com\/blog\/wp-content\/uploads\/2018\/03\/google-search-wingspecials-today-sitemap-increase-300x161.png 300w, http:\/\/kevinmichaelcoy.com\/blog\/wp-content\/uploads\/2018\/03\/google-search-wingspecials-today-sitemap-increase-768x413.png 768w, http:\/\/kevinmichaelcoy.com\/blog\/wp-content\/uploads\/2018\/03\/google-search-wingspecials-today-sitemap-increase-1024x550.png 1024w, http:\/\/kevinmichaelcoy.com\/blog\/wp-content\/uploads\/2018\/03\/google-search-wingspecials-today-sitemap-increase-150x81.png 150w\" sizes=\"(max-width: 2348px) 100vw, 2348px\" \/><p id=\"caption-attachment-446\" class=\"wp-caption-text\">Googlebot able to successfully index hash bang URLs from sitemap.xml for AngularJS with HTML5mode turned on.<\/p><\/div>\n<p>Now, all web crawlers are not created equal. Bingbot clearly is not able to render AngularJS\/Javascript pages (at least for my site). Bing Webmaster tools has a similar tool as Google called &#8220;Fetch as Bingbot&#8221;. I can see that it clearly fails to render any of my dynamic content. Also, Bing Webmaster tools fails to parse my same sitemap.xml that Google parses successfully. Bing reports XML errors, but provides little information to diagnose the problem.<\/p>\n<div id=\"attachment_447\" style=\"width: 2274px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-447\" loading=\"lazy\" class=\"size-full wp-image-447\" src=\"http:\/\/kevinmichaelcoy.com\/blog\/wp-content\/uploads\/2018\/03\/bing-webmaster-tools-sitemap-xml-error.png\" alt=\"Bing Webmaster Tools shows XML Error for valid Sitemap XML.\" width=\"2264\" height=\"936\" srcset=\"http:\/\/kevinmichaelcoy.com\/blog\/wp-content\/uploads\/2018\/03\/bing-webmaster-tools-sitemap-xml-error.png 2264w, http:\/\/kevinmichaelcoy.com\/blog\/wp-content\/uploads\/2018\/03\/bing-webmaster-tools-sitemap-xml-error-300x124.png 300w, http:\/\/kevinmichaelcoy.com\/blog\/wp-content\/uploads\/2018\/03\/bing-webmaster-tools-sitemap-xml-error-768x318.png 768w, http:\/\/kevinmichaelcoy.com\/blog\/wp-content\/uploads\/2018\/03\/bing-webmaster-tools-sitemap-xml-error-1024x423.png 1024w, http:\/\/kevinmichaelcoy.com\/blog\/wp-content\/uploads\/2018\/03\/bing-webmaster-tools-sitemap-xml-error-150x62.png 150w\" sizes=\"(max-width: 2264px) 100vw, 2264px\" \/><p id=\"caption-attachment-447\" class=\"wp-caption-text\">Bing Webmaster Tools shows XML Error for valid Sitemap XML.<\/p><\/div>\n<p>As we can see, Bing does not show you how many pages have been indexed, but only how many have been submitted. It shows 26 have been submitted, which is not all of the links from my sitemap.xml. I believe some of the characters in my URL are not valid for Bing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Previously, I posted\u00a02018 Search Engine Optimization with AngularJS 1.x Single Page Application. In that post, I highlighted how to use HTML5 Mode in an AngularJS app to get the hash bang URLs to redirect to URLs that are more friendly for web crawlers like Googlebot. Prior to this change, I&#8230;<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"http:\/\/kevinmichaelcoy.com\/blog\/2018\/03\/11\/indexing-of-sitemap-for-angularjs-site-increasing\/\">Continue reading<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":446,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,3],"tags":[290,305,296,297,295,302],"_links":{"self":[{"href":"http:\/\/kevinmichaelcoy.com\/blog\/wp-json\/wp\/v2\/posts\/445"}],"collection":[{"href":"http:\/\/kevinmichaelcoy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/kevinmichaelcoy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/kevinmichaelcoy.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/kevinmichaelcoy.com\/blog\/wp-json\/wp\/v2\/comments?post=445"}],"version-history":[{"count":1,"href":"http:\/\/kevinmichaelcoy.com\/blog\/wp-json\/wp\/v2\/posts\/445\/revisions"}],"predecessor-version":[{"id":448,"href":"http:\/\/kevinmichaelcoy.com\/blog\/wp-json\/wp\/v2\/posts\/445\/revisions\/448"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/kevinmichaelcoy.com\/blog\/wp-json\/wp\/v2\/media\/446"}],"wp:attachment":[{"href":"http:\/\/kevinmichaelcoy.com\/blog\/wp-json\/wp\/v2\/media?parent=445"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kevinmichaelcoy.com\/blog\/wp-json\/wp\/v2\/categories?post=445"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kevinmichaelcoy.com\/blog\/wp-json\/wp\/v2\/tags?post=445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}