3

I have created widgets for my website(xyz.com), which can be embedded in different websites. Let's say I embed a widget which is a photo album, in another website, abc.com. The content is residing on xyz.com but is pulled via Javascript into abc.com.

Will the content generated by the widgets (Javascript) on abc.com will be indexed by search engines?

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278
Pankaj
  • 2,538
  • 3
  • 26
  • 39
  • possible duplicate of [google indexing text retrieved by ajax or javascript after page load](http://stackoverflow.com/questions/6211257/google-indexing-text-retrieved-by-ajax-or-javascript-after-page-load) – John Conde Oct 25 '11 at 11:52

2 Answers2

6

Google will not index anything that is not visible when a page is loaded with JavaScript disabled.

There is more information in this similar question: google indexing text retrieved by ajax or javascript after page load

Also, you can test what Googlebot 'sees' by using the "Fetch as Googlebot" feature of Google Webmaster Tools.

If you want Google to index your Ajax, you can read Google's recommendations here: http://code.google.com/web/ajaxcrawling/docs/getting-started.html

Community
  • 1
  • 1
ethanpil
  • 2,522
  • 2
  • 24
  • 34
  • @ethanphil And what about widget like disqus? How can I do it when I don't have access to server-side? Is it possible to make html snapshots and index it in the customer domain? – Cleyton Jun 13 '14 at 21:46
2

If you follow Google's scheme for Making AJAX Applications Crawlable, then Google will index content that's generated with Javascript. So will Bing and Yandex.

Implementing this scheme is somewhat involved which is why there are companies that provide it as a service that plugs in at webserver level. (I work for one of these: https://ajaxsnapshots.com

Robert AJS
  • 149
  • 1
  • 1