6

I have a website that loads its template via ajax. The description and keywords meta tags are present on this template.html file and not on the current index.html page being loaded. After the template is loaded it will embed the meta tags from the template into index.html file.

Will Google or any other search engine be able to read this page's description and keywords meta tags which were dynamically inserted?

I'm asking this because I've heard that many search engines don't support javascript, although, when getting a preview screenshot from the website search result on google it displays the page containing the whole layout (after the insertion of template.html) so this made me a but curious.

Thanks in advance

zanona
  • 12,345
  • 25
  • 86
  • 141
  • Pretty sure this has been asked here before – John Conde Jul 25 '12 at 14:05
  • SEO questions are not actually programming-related. This belongs in http://webmasters.stackexchange.com/ – Diodeus - James MacFarlane Jul 25 '12 at 14:05
  • 1
    I believe I saw few question related to changing meta tags dynamically here http://stackoverflow.com/questions/2568760/is-it-possible-to-use-javascript-to-change-the-meta-tags-of-the-page but unfortunately I couldn't find any related on how search engines will interpret this. sorry – zanona Jul 25 '12 at 14:09

2 Answers2

3

Adding HTML to the DOM with JavaScript has been shown to work with Google's crawl. So the real question is if using this method still works for meta tag markup. You'll need to run your own test, as no one else seems to have run a case study on this before.

Zachary Schuessler
  • 3,644
  • 2
  • 28
  • 43
  • 1
    thanks Zachary it turns out that Google doesn't read dynamically inserted meta keyword and description tags, once I've set up directly on the page took few days and google adjusted its results. so the answer in this case was really No. – zanona Aug 06 '12 at 09:44
  • 1
    Can you post the code so we can see how you did it? Also did you make sure that the last cache date of that page is after the change? – Zachary Schuessler Aug 06 '12 at 12:54
0

The simple answer is NO! Most search engines dont crawl over links or words dynamically added by javascript!

spaceman12
  • 1,039
  • 11
  • 18
  • That's not true. Google supports most simple methods of adding HTML to the DOM. http://www.seomoz.org/ugc/can-google-really-access-content-in-javascript-really – Zachary Schuessler Jul 25 '12 at 15:21