Skip to content Skip to sidebar Skip to footer

Angularjs Website Not Indexing On Google

I developed a large angularjs application with more than 20 pages and add some SEO tags. But it is not functioning well. Most of content of the pages also populate using javascript

Solution 1:

Search engines tend not to execute JavaScript.

You need to have "real" pages generated server side for the benefit of search engines and users for whom the JS fails for any reason. Then use pushState (Angular can do this via its routes) to map Angular pages onto server generated pages.

You can take an isomorphic approach to the problem and write your JS so it can run server side or client side (which will probably involve running Node.js either instead of IIS or using IIS as a proxy).

Even then, meta keywords are almost always ignored and meta descriptions are usually ignored in favour of analysing the actual content.


Solution 2:

SEO implementation on SPAs is not trivial and not all search engine support it currently i think google, and maybe bing are able to crawl SPA's but some work needs to be done for that. there are several methods you can do this:

1 use !# for your angular routes instead of  just #
2 use html5 routes instead of # routes
3 detect crawlers on your server and serve the metadata
4 create snapshots of your site and serve them 

basically those are most of your options you can find more details in these articles

http://www.yearofmoo.com/2012/11/angularjs-and-seo.html https://developers.google.com/webmasters/ajax-crawling/


Post a Comment for "Angularjs Website Not Indexing On Google"