Mobile app version of vmapp.org
Login or Join
Sue5673885

: Display content using JavaScript only to Google bots My company sells a Q&A solution for e-commerce sites. They basically have a button on their product pages that opens an iframe containing

@Sue5673885

Posted in: #Javascript #Seo

My company sells a Q&A solution for e-commerce sites. They basically have a button on their product pages that opens an iframe containing a forum with questions and answers.

We would like the content to be referenced by search engines, but as we are using iframes it will not work.

Can we simply call a javascript on page load, inserting the content into the page, but only if it's a Google bot crawling the site ?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Sue5673885

2 Comments

Sorted by latest first Latest Oldest Best

 

@Eichhorn148

Instead of using iFrames, you could load the content into the page using AJAX. Then you could implement Google's crawlable AJAX.

That way both users and bots would be able to get the content.

10% popularity Vote Up Vote Down


 

@Kevin317

No. That would be serving content specifically for the benefit of search engines (i.e. to manipulate your rankings) which is against the terms of service of the search engines (i.e. this is black hat SEO). You either need to make this content available outside of an iframe, link to the iframe in your XML sitemap (assuming the contents can be loaded as a stand alone page), or accept this content as not being available to be indexed.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme