Home » Search Engine Optimization » Article: Tips from Google on SEO’ing Ajax

Tips from Google on SEO’ing Ajax

Google just wrote something on the webmaster central blog about A Spiders View of Web 2.0. Most people at this point know that the search engines have issues with javascript and flash but there was a good tip on how ajax links and static links can coexist.

Here’s what it said:

When creating your links, format them so they’ll offer a static link as well as calling a JavaScript function. That way you’ll have the Ajax functionality for JavaScript users, while non-JavaScript users can ignore the script and follow the link. For example:

<a href=”ajax.htm?foo=32” onClick=”navigate('ajax.html#foo=32'); return false”>foo 32</a>

Note that the static link’s URL has a parameter (?foo=32) instead of a fragment (#foo=32), which is used by the Ajax code. This is important, as search engines understand URL parameters but often ignore fragments.

This technique is being referred to as Hijax

Until there are some better operations in place to crawl ajax it’s best to create a separate version for bots and also for people who don’t have javascript (mobile devices etc) for usability purposes.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • Wists
  • BlinkList
  • Furl
  • NewsVine
  • Technorati

3 Comments so far

  1. […] check the full story here […]

  2. Patrick Beeson @ November 8th, 2007

    Wouldn’t it be best to not use inline JavaScript such as in the example you provided?

    You could write the event in your external script file so as not to mix markup and behavior.

  3. justin @ November 12th, 2007

    Yeah Patrick I’m not a fan of ever using inlines whether its for javascript or css.

    Also if you do create flat pages of your flash pages be sure to disallow the flash pages from being crawled in order to avoid duplicate content issues.

Justin Davy - Adwords Qualified Professional

Sponsored Ad

Banner