Menu

Helping Google Know Who I Am: SEO for a Developer Portfolio (Person Schema, Canonical Tags, sameAs)
📰

Helping Google Know Who I Am: SEO for a Developer Portfolio (Person Schema, Canonical Tags, sameAs)

DEV Community: beginners·Ritika Rajput·16 days ago
#zMZULOdt
#devtobeginners#devto#dev#name#portfolio
Reading 0:00
15s threshold

My name is a common one. When I search it, results are mixed, and my own portfolio is not guaranteed to show up. So I spent some time making my portfolio easier for Google to understand.

I can't promise this will rank me first, because Google decides that. But these changes give search engines clear signals about who I am. Here is what I did on a React portfolio hosted on Vercel.

1. Each page needs its own canonical tag

My first problem was in Search Console. One page showed "Alternate page with proper canonical tag" and was not indexed.

URL Inspection showed the canonical was my home page ( / ), not the page itself. A single hard-coded <link rel="canonical"> in index.html was shared by every route, so Google treated my other pages as duplicates of the home page.

The fix: set the canonical per route.

import { useEffect } from " react " ;

const SITE = " https://your-domain.com " ;

export function useCanonical ( path : string ) { useEffect (() => { let link = document .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.