大网数据广告活动
网站运营与故障问答

Redirect first time visitors to an introduction page without getting penalized by Google

· 52CE 我爱测

I am working with a client that wants an automatic redirect to a special "intro" page for first-time visitors to his site. We are using a website builder platform that does not allow any access to the server, so we can't do any s…

问题原文

原帖链接 · Eric Sassaman · CC BY-SA 3.0

I am working with a client that wants an automatic redirect to a special "intro" page for first-time visitors to his site. We are using a website builder platform that does not allow any access to the server, so we can't do any server-side redirects - it's all client, so we're using javascript and cookies to detect first-time visitors and then jumping to the intro page (example.com/intro) by setting window.location. There is a big "skip intro" link on the intro page to jump back to the home page.

Google is showing the intro page in search results, which makes sense, it's coming in with cookies enabled and then we jump to the intro page so that's what it's seeing. We do have a canonical link on the home page, but not on the intro page.

So this is all kinds of bad and Google is probably thinking that we're doing a sneaky redirect, which makes sense - someone searching based on index keywords on the home page gets redirected to this intro page... not a good search experience, I get it.

Changing to a huge page-blocking interstitial instead of loading a separate page is not good, obviously.

So... what to do. I'm thinking we give up on the magical redirection and put a link on the home page to the intro... if it's a first-time visitor, highlight the link without a content-obscuring popup that Google won't like... trying to make the client happy but getting penalized by Google is good justification for dropping the javascript page redirect.

Q: To confirm, is there a way to redirect (via javascript only) to an "intro" style page without getting dinged by Google and other search sites? How do we do this in a way that makes sense?

已采纳解答

原帖链接 · Mike -- No longer here · CC BY-SA 3.0

Q: To confirm, is there a way to redirect (via JavaScript only) to an "intro" style page without getting dinged by Google and other search sites?

A redirect via JavaScript for guests with slower devices and/or high connectivity problems is not so good because some HTML code must load first before the beginnings of JavaScript can even begin. This means more unnecessary bytes to download.

Another thing with a redirect is that it causes users to make two web page requests instead of one. One request for the redirect screen and one request for the web page itself.

How do we do this in a way that makes sense?

Since you can deal with cookies, one idea is to implement a tracking system so that you can distinguish new guests from returning guests. New guests won't have the special cookie that you implement set yet on their systems and they will then be taken to the intro page. returning guests will have the cookie already set so no loading of the intro page is necessary.

But there is something better than all of this

Make the world happy and give everyone options rather than force people to a certain page based on their experience with the site.

Use a small portion of the home page at the top which allows all users regardless of experience to take a tour of the website with one simple click, and of course, add the usual website content below the mini tour advertisement. That way, all search engines can easily find your content and index it.

If you want to tailor it to new users only, then only show the small portion if the users cookie (described earlier) has not been set then have a close button to set the cookie and hide the tour option. Think of it like some websites complying to the new cookie law by using a portion of the screen telling users that cookies are used for site operation etc.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2017-07-07)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。