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: seo improvements #803

Merged
merged 2 commits into from
Nov 11, 2024
Merged

Feat: seo improvements #803

merged 2 commits into from
Nov 11, 2024

Conversation

Alessandro100
Copy link
Contributor

closes: #752

Summary:

Most impactful SEO changes listed below and why

Header Elements
Very important to have h1 tags on each page, it lets google (and other search engines) know what the main focus of the page is

Page title / description
Distinct page titles help determine what the content of the page is. This helps a lot of unique pages like feed details. Learned that most search engines only check the first 60 characters and after that it gets cut off. It's important to start with the unique elements of the page and end with - Mobility Database which is less unique to the feed page. Used sites like: Airbnb, Etsy, transitfeeds as reference

Table anchors
Big change. Our table didn't have a tags so google couldn't crawl our feed pages. By turning the table rows into a tags, google knows to visit these pages and index them. This forced to re-think how the + 2 transit providers work. We are also pushing the boundaries of using a table element and should be revisited in the future. Now the table is more accessible and can be tabbed through

Whats next?
This PR implemented the low effort / high reward SEO elements but there are a few more things that could have high impact but more effort

  1. Change the feed detail url from /feeds/mdb-310 to /feeds/capital-transit/mdb-310 for better seo indexing
  2. Improve the lighthouse performance on the feeds / feed page
  3. Back link the mobilitydatabase.org website from our blog / website / social media content. More websites that point to the mobilitydatabse == better authority == better search ranking

Expected behavior:

Explain and/or show screenshots for how you expect the pull request to work in your testing (in case other devices exhibit different behavior).

Testing tips:

Go through the application and make sure everything looks good. Play with the feeds table. Functionality of the application shouldn't change

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Run the unit tests with ./scripts/api-tests.sh to make sure you didn't break anything
  • Add or update any needed documentation to the repo
  • Format the title like "feat: [new feature short description]". Title must follow the Conventional Commit Specification(https://www.conventionalcommits.org/en/v1.0.0/).
  • Linked all relevant issues
  • Include screenshot(s) showing how this pull request works and fixes the issue(s)

+2 is now a tool tip
Screenshot 2024-11-11 at 08 46 26

Feeds Performance (NOTE: localhost kills a little performance, should be around 67)
image

Feed Performance
image

@Alessandro100 Alessandro100 self-assigned this Nov 11, 2024
@emmambd emmambd self-requested a review November 11, 2024 14:23
Copy link

Preview Firebase Hosting URL: https://mobility-feeds-dev--pr-803-jxvxzzo8.web.app

@Alessandro100 Alessandro100 force-pushed the feat/752-seo-improvements branch from 17b685e to 8bedabe Compare November 11, 2024 14:52
@Alessandro100 Alessandro100 force-pushed the feat/752-seo-improvements branch from 8816196 to 60569c2 Compare November 11, 2024 18:09
}
const dataTypeVerbose =
dataType === 'gtfs' ? t('common:gtfsSchedule') : t('common:gtfsRealtime');
return t('detailPageDescription', { formattedName, dataTypeVerbose });
Copy link
Member

Choose a reason for hiding this comment

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

🥳

@Alessandro100 Alessandro100 merged commit 8208e0a into main Nov 11, 2024
4 checks passed
@Alessandro100 Alessandro100 deleted the feat/752-seo-improvements branch November 11, 2024 19:42
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.

SEO improvements
3 participants