谷歌抓取AJAX /动态生成的内容 - 搜索引擎优化 [英] Google crawl ajax / dynamically generated content - SEO

查看:207
本文介绍了谷歌抓取AJAX /动态生成的内容 - 搜索引擎优化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常独特的情况,我不相信任何在这里的其他话题可以涉及。

I've got a very unique situation that I don't believe any of the other topics here can relate.

我有一个动态加载/嵌入到第三方网站,没有IFRAME直JSON到Web客户端为内容的电子商务模块。我对这些第三方网站根本无法访问,其他然后我的JavaScript文件正在从他们的网页加载和动态生成的内容。

I have a ecommerce module that is dynamically loaded / embedded into third party sites, no iframe straight JSON to web client into content. I have no access to these third part sites at all, other then my javascript file being loaded from their page and dynamically generating the content.

我知道了#的!法,但没有这里好,我的JS也会产生嵌入式平台中的网址,但他们是假冒的​​,只将地址栏,我不相信谷歌爬虫可以远远达到这一点。

I'm aware of the #! method, but that's no good here, my JS does generate "urls" within the embedded platform, but they're fake and for the address bar only, and I don't believe google crawlers can reach this far.

所以我的问题是,是否有一元,我们可以设置为指向的网址外,即回我的服务器静态抓取的内容。即指着规范到我的服务器...但我再次不认为这会工作。

So my question is, is there a meta that we can set to point outside the url to i.e. back to my server with static crawlable content. I.e. pointing the canonical to my server... but again I don't think that would work.

推荐答案

如果您执行#!那么你必须确保你的URL中嵌入支持片段参数版本,其中你可能做不到。这是服务器端的东西。

If you implement #! then you have to make sure the url your embedded in supports the fragment parameter versions, which you probably can't. It's server side stuff.

您也许不能影响页面的规范标签无论是。它再次有许多工作要做服务器端。你通过JavaScript设置任何meta标签不会被一个机器人可以看出。

You probably can't influence the canonical tag of the page either. It again has to be done server side. Any meta tag you set via JavaScript will not be seen by a bot.

DISQUS通过提供一个API,以便嵌入网站能得到有意见服务器端和普通的HTML渲染则解决了这个问题。字preSS有一个插件来做到这一点。 DISQUS也是谷歌已经制定了如何抓取他们的AJAX页面的少数系统之一。

Disqus solved the problem by providing an API so the embedding websites could get there comments server side and render then in plain html. WordPress has a plugin to do this. Disqus are also one of the few systems that Google has worked out how to crawl their AJAX pages.

有些插件要求的人还包括与JavaScript的一个普通的链接。小心这是你可能会打破谷歌的准则,如果你这样做不对。但是,您可以使其指挥僵尸网络以及用户对内容的抓取的版本整合平原连接你的插件。

Some plugins request people to also include a plain link with the JavaScript. Be careful with this as you may break Google Guidelines if you do it wrong. But you may be able to integrate the plain link with your plugin so that it directs bots and users to a crawlable version of the content.

这篇关于谷歌抓取AJAX /动态生成的内容 - 搜索引擎优化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆