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

docs: update bad undo-add links #1823

Merged
merged 5 commits into from
Sep 29, 2020
Merged

docs: update bad undo-add links #1823

merged 5 commits into from
Sep 29, 2020

Conversation

jorgeorpinel
Copy link
Contributor

@shcheklein shcheklein temporarily deployed to dvc-landing-hotfix-undo-ka7slb September 29, 2020 06:05 Inactive
@jorgeorpinel jorgeorpinel mentioned this pull request Sep 29, 2020
1 task
@jorgeorpinel
Copy link
Contributor Author

p.s. should I also add a temporary redirect Ivan?

@jorgeorpinel
Copy link
Contributor Author

p.p.s. hey @jeremydesroches, how would we inspect how much traffic dvc.org/doc/user-guide/updating-tracked-files
used to get? The Search Console says "URL is not on Google": https://search.google.com/u/1/search-console/inspect?resource_id=sc-domain%3Advc.org&id=1BHK2EaGld46LRxtSJ8TlA

@shcheklein
Copy link
Member

p.s. should I also add a temporary redirect Ivan?

nah, I think we are fine here

CI checks are still broken ^^

Copy link
Member

@shcheklein shcheklein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI is broken

@jorgeorpinel jorgeorpinel temporarily deployed to dvc-landing-hotfix-undo-ka7slb September 29, 2020 20:03 Inactive
@jorgeorpinel
Copy link
Contributor Author

jorgeorpinel commented Sep 29, 2020

Sorry my bad... Typo 🤦

BTW these new checks against the review app are great! Thanks @shcheklein @rogermparent

@shcheklein shcheklein merged commit 5300450 into master Sep 29, 2020
@jeremydesroches
Copy link
Contributor

p.p.s. hey @jeremydesroches, how would we inspect how much traffic dvc.org/doc/user-guide/updating-tracked-files
used to get? The Search Console says "URL is not on Google": https://search.google.com/u/1/search-console/inspect?resource_id=sc-domain%3Advc.org&id=1BHK2EaGld46LRxtSJ8TlA

The trick is to go into performance and then filter by the url. This link should get you there on Search Console.

@jorgeorpinel
Copy link
Contributor Author

I see. Yeah I discovered that recently on Search Console actually. But this tells me how many impressions and clicks it gets, as well as the search queries, which is useful (screenshot below). But I was wondering even more general than that: the net traffic it gets, so should probably check in Google Analytics instead?

image

@jeremydesroches
Copy link
Contributor

the net traffic it gets, so should probably check in Google Analytics instead?

Yes. Usually the clicks will line up pretty well with sessions (for organic), but try this view in Analytics.

@jorgeorpinel
Copy link
Contributor Author

Oh cool, thanks @jeremydesroches. Do you know if there's a way to add more than one page? I'd like to overlay that one with the new URL, dvc.org/doc/user-guide/how-to/update-tracked-files to see how smooth the transition was (there's a redirect form the previous one to this one).

@jeremydesroches
Copy link
Contributor

jeremydesroches commented Oct 6, 2020

Yep, try this report in Analytics. You can also use compare in Search Console.

I tried out the original link and there doesn't seem to be a working redirect at the moment. It's good that the intent is to have a redirect, and I assume that will be fixed. This is actually a pretty important thing to handle for SEO purposes, so I'll just spell out what should happen in cases like this:

  1. Publish the updated page at new url: dvc.org/original-url becomes dvc.org/new-url.
  2. Create 301 redirect from dvc.org/original-url to dvc.org/new-url.
  3. In Search Console, request indexing for dvc.org/new-url.
  4. In Search Console, request indexing for dvc.org/original-url (so it picks up the redirect immediately).
  5. Provided that new content is similar or better, organic traffic and ranking should transition seamlessly.

Hope this helps @jorgeorpinel!

@jeremydesroches
Copy link
Contributor

Yep, try this report in Analytics.

By the way, to produce that report: Find or search for the urls you want in the table, then check them off and select "Plot Rows".

@jorgeorpinel
Copy link
Contributor Author

Sweet! Looks like that search box takes regexps too, which is useful to find typos in links out there. I just fixed 2 old links that now cause 404s in old GitHub comments based on this:

image

I like that GA let's you look at weekly graphs too, which are much more smooth. If you find a way to do that in SC please lmk.

Page Compare on SC is also good but you can only have 2.

@jorgeorpinel
Copy link
Contributor Author

This is actually a pretty important thing to handle for SEO purposes, so I'll just spell out what should happen

Actually we completely flopped on this this time. Not a big deal since we're talking about 100 visits/week but totally agree with those steps. We usually setup the redirects (which get removed later at some point) but we never reindex on SC — good tip, thanks.

I would add a step: to find any old links we have control of and update them, so the redirect can be removed later on. We already do this in all the docs of course, since it's easy to grep the old URL, but they're also common in old GH comments, for example (maybe some 3rd party blogs we wrote?) which tend to not get updated.

@jeremydesroches
Copy link
Contributor

Sweet! Looks like that search box takes regexps too, which is useful to find typos in links out there. I just fixed 2 old links that now cause 404s in old GitHub comments...

Nice @jorgeorpinel! Yes, you can do some amazing things with regexp in GA. Another spot I've used them is with Filters... easy to get carried away, but if you ever find visits coming in with strange event/channel/tag data, a regexp filter can clean everything up nicely. Only for data going forward though.

I like that GA let's you look at weekly graphs too, which are much more smooth. If you find a way to do that in SC please lmk.

Page Compare on SC is also good but you can only have 2.

Yes, SC is pretty limited... BUT you can view SC data in GA if you enable the connection! Maybe you can get the best of both... 🙂

@jeremydesroches
Copy link
Contributor

jeremydesroches commented Oct 7, 2020

Actually we completely flopped on this this time. Not a big deal since we're talking about 100 visits/week but totally agree with those steps. We usually setup the redirects (which get removed later at some point) but we never reindex on SC — good tip, thanks.

Probably no harm done, as long as it's redirected relatively soon. The sitemap is likely being read daily, so new URLs will get picked up easily (e.g., a new blog post or doc will get indexed almost immediately). When URLs change it's a bit different: the 301 redirect assigns the previous URL's ranking to the new URL so it takes its place in the index. Without a redirect the new URL might be recognized as the old page, but could actually "start over". The old URL can hang around in the index for quite a while, too.

I would add a step: to find any old links we have control of and update them, so the redirect can be removed later on.

Yes, a good practice if the scope of your content allows for it. It's definitely better to have a well-maintained redirects file than hundreds of historical entries — but it happens. 😒

@jorgeorpinel
Copy link
Contributor Author

jorgeorpinel commented Oct 7, 2020

Thanks for the tips about Filters and on linking SC and GA @jeremydesroches, will check it out.

Probably no harm done, as long as it's redirected relatively soon.
Without a redirect the new URL might be recognized as the old page, but could actually "start over".

Well, the change happened weeks ago already and as you may have noticed in the merged PR #1705 (review) where I mentioned you, there was some damage done 😓 but if you want (and it can be good so you learn this) feel free to setup the redirect in redirects-list.json with a small PR.

@jorgeorpinel jorgeorpinel deleted the hotfix/undo-add-links branch November 9, 2020 04:02
@jorgeorpinel jorgeorpinel added 🐛 type: bug Something isn't working. A: docs Area: user documentation (gatsby-theme-iterative) labels Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: docs Area: user documentation (gatsby-theme-iterative) 🐛 type: bug Something isn't working.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants