用户国家选择和 SEO 关注点

发布于 2024-12-21 04:49:19 字数 275 浏览 2 评论 0 原文

我希望我的用户在访问网站时选择他们来自哪个国家/地区,然后将其存储在 cookie 中,并且不会再次打扰他们。系统的许多不同部分(例如系统定价)都依赖于此,因此可以将其转换为用户货币。

我正在考虑在未设置国家/地区 cookie 时在任何页面上显示模式,但是我担心在 SEO 方面会对我的网站产生负面影响。

有人有过这方面的经验吗?我希望 Google 抓取所有国家/地区的所有条目,但如果用户实际上正在访问该网站,则没有必要显示不同国家/地区的条目(该网站允许访问者搜索其本地区域内的某种类型的讲师)。

I want my users when visiting the website to select which country they are from, it will then store this in a cookie and won't bother them again. A number of different parts of the system (such as system pricing) rely on this so it can be converted to a users currency.

I'm thinking of displaying a modal on any page when the country cookie not set, however I'm worried about negatively impacting my site when it comes to SEO.

Has anyone had experience of this? I want Google to crawl all entries for all countries, but if a user is actually visiting the site there is no point in displaying entries for a different country (the website allows visitors to search for a type of instructor within their local area).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

豆芽 2024-12-28 04:49:19

可能有一种更简洁的方法,但是...让依赖国家/地区 cookie 的页面也接受指定要使用哪个国家/地区的查询字符串参数(您可以使用 URL 重写来使这对 SEO 更加友好 http://example.com/learning/12233/usa/http://example.com/learning/12246/germany/)。然后创建一个页面,按国家/地区列出所有这些项目。在您的国家/地区选择页面上,您可以在下拉框下方放置一个链接,显示“或浏览所有国家/地区”。现在谷歌应该能够找到所有国家的所有信息。

There may be a cleaner approach, but... Make your pages that rely on a country cookie also accept a query string parameter that specifies which country to use (you can use URL rewriting to make this more SEO friendly http://example.com/learning/12233/usa/, http://example.com/learning/12246/germany/). Then make a page which lists all of these items by country. On your country selection page you can put a link underneath the drop down box that says "or browse all countries". Now google should be able to find all the information for all countries.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文