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

feat(experiment): rewrite Web/API page titles #10926

Merged
merged 3 commits into from
Apr 18, 2024

Conversation

caugner
Copy link
Contributor

@caugner caugner commented Apr 15, 2024

Summary

(MP-1054)

Problem

We identified a drop in search engine impressions in April 2023, which coincides with the Web/API retitle project, and we cannot rule out that there is a causal relationship.

Solution

Run an experiment with 500 randomly sampled Web/API pages (of 2719), partially reverting the change to their <title> (but not to the <h1>) by essentially replacing Foo: bar property by Foo.bar property.

Note: The change doesn't change the displayed title in the content, but it does affect the displayed title in the browser tab and in search engines.


How did you test this change?

  1. Ran yarn dev locally and verified that http://localhost:5042/en-US/docs/Web/API/Window/location/index.json (not in the test group) is unmodified, but http://localhost:5042/en-US/docs/Web/API/AudioContext/setSinkId/index.json (in the test group) is modified.
  2. Triggered a stage-build.

@caugner caugner changed the title fix(seo): rewrite constructor/method/property titles fix(seo): run experiment to rewrite titles of 500 Web/API pages Apr 17, 2024
build/seo.ts Outdated Show resolved Hide resolved
@caugner caugner marked this pull request as ready for review April 18, 2024 15:20
@caugner caugner requested a review from a team as a code owner April 18, 2024 15:20
@caugner caugner merged commit d8173cc into main Apr 18, 2024
13 checks passed
@caugner caugner deleted the MP-1054-rewrite-page-titles-for-seo branch April 18, 2024 16:56
@caugner caugner changed the title fix(seo): run experiment to rewrite titles of 500 Web/API pages feat(experiment): rewrite Web/API page titles Apr 18, 2024
mostafaroshdy1 pushed a commit to mostafaroshdy1/yari that referenced this pull request Apr 19, 2024
Problem: We identified a drop in search engine impressions in April 2023, which coincides
with the Web/API retitle project (mdn/mdn#284), and we cannot
rule out that there is a causal relationship.

Solution: Run an experiment with 500 randomly sampled Web/API pages (of 2719 affected),
partially reverting  the change to their `<title>` (but not to the `<h1>`) by essentially
replacing `Foo: bar property` with `Foo.bar property`.
caugner added a commit that referenced this pull request May 30, 2024
caugner added a commit that referenced this pull request May 30, 2024
* Revert "fix(experiment): replace test group for Web/API page titles (#10955)"

This reverts commit 559f8fd.

* Revert "feat(experiment): rewrite Web/API page titles (#10926)"

This reverts commit b625183.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants