我创建了一个 onepager 网站,谷歌能够通过 !#my-url <-> _escaped_fragment_ "translation" 加载每个内容来跟踪主站点的 ajax 加载内容。包含用于显示/加载产品数据的 URL。谷歌似乎没有阅读那些二级 ajax 内容。
有没有办法告诉谷歌阅读这些内容?
提前致谢 :)
我创建了一个 onepager 网站,谷歌能够通过 !#my-url <-> _escaped_fragment_ "translation" 加载每个内容来跟踪主站点的 ajax 加载内容。包含用于显示/加载产品数据的 URL。谷歌似乎没有阅读那些二级 ajax 内容。
有没有办法告诉谷歌阅读这些内容?
提前致谢 :)
TBH I'm not 100% sure what you are asking here, perhaps update your question to give some more details (more specific URL "this vs. this" examples, what you are wanting to track (a general page view? an event? etc..) but assuming you are just looking to track a page view, you can pop
_gaq.push(['_trackPageview']);
whenever you want, and you can keep calling it (for instance, inject it into your response from AJAX calls). It also allows for an option 2nd element to the array you pass, to specify what you want the page name to be (by default if you don't specify, it is just the current URL):
_gaq.push(['_trackPageview','whatever you want here']);