Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/website: go.dev tends not to show up on Google search results, but tip.golang.org does #69600

Open
cespare opened this issue Sep 23, 2024 · 4 comments
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. website

Comments

@cespare
Copy link
Contributor

cespare commented Sep 23, 2024

Go version

n/a

Output of go env in your module/workspace:

n/a

What did you do?

I performed Google searches for various documents that I know are hosted on go.dev. Example search queries:

  • golang doc comments
  • golang 1.23 release notes

What did you see happen?

The copy of the document on tip.golang.org was the first Google search result each time.

Here are the two examples:

screen_20240923142359

screen_20240923142413

(I noticed this on my personal Google account, but I took those two screenshots from a Chrome incognito window.)

What did you expect to see?

I expect the canonical version of these documents to be the first search result, or at least near the top.

I guess for most projects I probably wouldn't file an SEO ticket, but you folks are mostly paid by Google, so I figure you ought to be able to sort it out :)

@gopherbot gopherbot added this to the Unreleased milestone Sep 23, 2024
@dr2chase dr2chase added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Sep 24, 2024
@dr2chase
Copy link
Contributor

@golang/tools-team

@findleyr
Copy link
Contributor

I'm guessing this is because golang.org had historical momentum, and tip.golang.org doesn't redirect in the same way that golang.org does.

Perhaps we should just introduce tip.go.dev, and redirect tip.golang.org. I imagine then both would be downranked, but perhaps eventually go.dev links would make their way to the top.

(I know we work at Google, but I for one have very little understanding of how this works :))

@cespare
Copy link
Contributor Author

cespare commented Sep 26, 2024

Perhaps I shouldn't have focused so much on tip.golang.org. My main point with filing this issue is that there seems to be some SEO issue preventing the canonical versions of important go.dev pages from appearing anywhere near the top of Google search results in my recent tests.

@kevinpeno
Copy link

kevinpeno commented Oct 14, 2024

I was going to post on #69785, but I figured it might be better to contain the conversation since this one had more traction. Sorry if this is the wrong place.


Since it looks like most of your content is dynamic (I'm not seeing much beyond basic route configs in the code) you might be better off making sure you have redirects qualified correctly from the legacy sites (and maybe tip, see below) and adding a link[rel="canonical"] on each page rather than generating a sitemap (link[rel="canonical"] is a hard canonical vs sitemaps soft).

After that, ensure you have a robot.txt file pointing to your core directories/roots and then submit it to Google Search Console (this will trigger the initial "re-spidering"). The current one doesn't seem sufficient enough, but it might be okay if you meta+no-index appropriately.

Finally, you could probably clean up by adding link tags for language variants (link[hreflang]).

It also appears that tip.golang.org is duplicating go.dev content, which will cause search console issues and result in poorer results if they both try to canonize (like those found in OP). I don't currently understand the purpose of tip.golang.org (is it meant to redirect to the "latest" on go.dev?), so I'll defer to your judgment there.

I am happy to provide further guidance, but I cannot say much else without access to the search console and a clearer understanding of how the content is stored on these dynamic routes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. website
Projects
None yet
Development

No branches or pull requests

6 participants