How to index an iframe in Google?

Asked

Viewed 691 times

3

  • Cross-post: http://stackoverflow.com/questions/25575465/how-to-index-content-via-iframe-in-goole

2 answers

3

When the "Google" (actually the "robo" indexer or crowler) reads the page it also especially looks at some HTML elements that have some kind of link, then following these links and indexing them in the same way. Just a single "way" open.

Looking at the source of the page in question we can clearly see the address of Reviews in the attribute src of iframe:

<iframe scrolling="auto" frameborder="0" 
    src="https://www.storeya.com/widgets/couponpop?sid=011A3611" 
    id="share-coupon_frame"></iframe>

As to the content of iframe appear as if it were from the main page, the Help for Google Webmasters declaring:

Google tries to Associate Framed content with the page containing the frames, but we don’t Guarantee that we will.

Translation (free):

Google tries to associate content in frames with the page containing the frames, but we do not guarantee this.

Another possibility would be for the website to present a different content for the indexers. For example, if the user agent for the Googlebot, then the content is placed inline, frameless.

  • OK, but it assigns the content to the page that has the <iframe> and not the page that is in the src of the iframe. Quite the contrary, the page that is in src is not even listed in the search result.

  • @Carlos I updated the answer to reflect this.

  • Okay, thanks. But it’s still unclear why the original page doesn’t show up in the search results. In a test I did he linked the contents of iframe to the page that had it, but also indexed the original page the "src" of iframe

  • @Carlos Probably the original site uses some mechanism to prevent Google from indexing it, precisely so as not to steal traffic from customers.

  • I thought of that hypothesis too, I checked the robots.txt, call headers and meta tags with noindex but they’re not blocking anything. Maybe it is a specific configuration in Google Web Master Tools.

  • I tested in the Bing and he can’t find the page that has the <iframe> or the src page, this reinforces the hypothesis that the src page is being blocked for the searchers, but I still don’t know how.

  • @Carlos I suggest contacting the company and questioning them. This research has already run away from the original question and I don’t think it will get more details of the indexing and search tools here, since in fact not even Google itself guarantees this type of behavior.

  • Yes, I had already sent a contact, I’m waiting for them to reply. Thank you

Show 3 more comments

1

Google indexes content through its links.

In other words, it doesn’t matter if it’s an iframe, a regular page, endpoint service etc... If someone already indexed has a link to that address, Google will index it.

If it were not indexed before, it would be indexed by the simple fact that you have placed a link in your question. At the time the Spider of Google went through this issue (as already passed in your crosspost), your link would be indexed together.

  • 1

    "If not indexed before, it would be indexed by the simple fact that you have placed a link in your question" Good!

  • OK, but it assigns the content to the page that has the <iframe> and not the page that is in the src of the iframe. Quite the contrary, the page that is in src is not even listed in the search result.

  • I think he looks at the page inside the iframe yes. I’ll see if there’s anything documented about it.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.