
Google your own website's name. If someone else's company sits on top, it is usually not about money: Google doesn't clearly know who you are. There is a small, free fix: a block of code on your home page, called schema, that works like an ID card for your site. It tells Google your site's name and the other spellings people use for it. This guide gives you the template to copy, the title formula, and the Google Search Console steps. It is the same setup CodeWing uses, with real numbers from CodeWing's own Search Console, and an honest list of what it can and can't do.
The short version
- Write down your site's name and every spelling people really use for it.
- Put a
WebSiteblock of JSON-LD on your home page with thename, theurland those spellings asalternateName. - Check it with the Schema Markup Validator (not the Rich Results Test, which doesn't support site names).
- In Search Console, inspect your home page and press Request indexing, and submit your sitemap.
- Write every page title as "what people search – benefit | Brand", then wait: Google needs days to weeks.
If you came from my reel and commented RANK: this is the full guide I promised, with the template, the title formula and the Search Console steps.
In this guide
- The problem: Google doesn't know who you are
- What the schema "ID card" does, and what it doesn't
- The template to copy
- Set it up, step by step
- The title formula
- Search Console: the steps that matter
- What this looks like on CodeWing (with numbers)
- Honest limits and mistakes to avoid
- When the name doesn't change
- Frequently asked questions
The problem: Google doesn't know who you are
Search for the name of a young site and you often get older companies, a similar name, or a directory page. A bigger ad budget doesn't change that. What changes it is Google being sure that this website is the one behind this name.
CodeWing has that problem. Search for "codewing" and you find several unrelated companies with the same or nearly the same name, and Google's AI Overview says so itself: the name "can refer to a few different software platforms and companies". Those other companies have nothing to do with us. Even so, CodeWing's site is the first result, and the first one the AI Overview lists. The rest of this guide is what I set up so that Google can connect the name to the right site.
What the schema "ID card" does, and what it doesn't
Schema (structured data) is a small block of code in your page that describes it in a way machines read easily. For your site's name, Google uses the WebSite type. According to Google's own documentation:
- It goes on your home page (the root of your domain), and only the home page needs it.
nameandurlare required.alternateNameis optional: it is where you list other names people use for the site.- Google supports one site name per site, and your home page must be crawlable.
- It can take a few days to a few weeks for Google to find and use a change.
- Site names are chosen automatically. Google says it generally tries to use the name you indicate, but it may sometimes use other sources or show your domain instead.
So this is not a guarantee of ranking number one. It helps Google tie your name, and the spellings you list, to one site. It does not replace good pages, a good title, and people searching for you.
The template to copy
Paste this on your home page, inside the <head>, and replace three things: YourSite with your name, the url with your home page address, and the list with your own spellings.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "YourSite",
"url": "https://www.yoursite.com/",
"alternateName": [
"Your Site",
"YourSites",
"Your Sites",
"yoursite.com",
"YourSite app",
"YourSite beta"
]
}
</script>
CodeWing's own home page uses the same shape. Its name is "CodeWing" and its alternateName list has ten entries: CodeWings, Code Wing, Code Wings, CodeWin, Code Win, Codewin.in, CodeWing TestFlight, CodeWings TestFlight, CodeWing Beta and Code Wing Beta. It also describes the site's search box, which is optional.
Which names to put in alternateName
- With and without a space: "CodeWing" and "Code Wing".
- Plural or an extra letter people add: "CodeWings".
- Spellings people really type. Look in Search Console (see below) for queries that contain your name spelled differently.
- Your name plus what you do: "CodeWing TestFlight", "CodeWing Beta".
- Your domain in lowercase, such as "yoursite.com". Google's example suggests it as a last entry.
List them in order of preference, with the most important first. Only list names that really mean your site.
Set it up, step by step
Step 1. Write down your names
Start with your exact site name. Then add the spellings above. Six to ten is plenty; there is no benefit in a long list.
Step 2. Fill in the template
Use the exact address of your home page in url, in the form Google should treat as the main one (for example with https:// and the same www choice as your canonical address).
Step 3. Put it on your home page
- Plain HTML: paste the whole block inside
<head>ofindex.html. - Next.js (Pages Router): add the script inside
next/headon your home page, withdangerouslySetInnerHTML={{ __html: JSON.stringify(data) }}. - Next.js (App Router): render the
<script type="application/ld+json">in your home page component. - WordPress: use an SEO plugin's site name / site representation setting, or add the block to the theme's header for the front page only.
If your site opens at several home page addresses (with and without www, or http and https), the same block should be on each.
Step 4. Check it with the right tool
Open validator.schema.org (the Schema Markup Validator), paste your home page address or the code, and make sure it reads without errors. Don't use Google's Rich Results Test for this: Google says site names aren't supported there, so it will not show them. Also open your page's source (right click, View source) and search for alternateName to see that it is really in the page.
Step 5. Ask Google to look again
In Search Console, paste your home page address into the URL inspection bar at the top, then press Request indexing. This asks Google to re-crawl the page; it doesn't make it faster to rank.
Step 6. Wait, then look at your queries
Google says it can take a few days to a few weeks. Check your name again after a week or two, and keep an eye on Performance → Search results → Queries in Search Console for searches that contain your name.
The title formula
The title of each page is what people see in the results. Google's guidance is simple: every page should have its own title that describes that page, a descriptive and concise one, with your brand added briefly at the start or end. There is no fixed length limit, but long titles are cut off to fit the screen, so put the important words first.
Formula:
[What people search] – [benefit] | [Brand]
CodeWing's home page title is: TestFlight Beta Apps & Public Links (2026) – Join iOS Betas | CodeWing. The words people search come first, then the benefit, then the brand. Each app page follows the same pattern with its own name, "<App> TestFlight Beta: … | CodeWing", so no two titles are the same.
A few rules that matter more than the formula:
- Never leave titles like "Home" or "Untitled".
- Don't repeat one title on many pages with a single word changed.
- Write for the person searching, not for a robot.
One more thing that helps: one page for each thing people search, each with its own title. CodeWing has about 14,000 app pages for this reason. I explain the whole approach in the SEO checklist guide.
Search Console: the steps that matter
- Add your site at search.google.com/search-console. The Domain option covers every address of your site and is verified with a DNS record at your domain provider. The URL prefix option checks one address.
- Submit your sitemap: open Sitemaps, type the address of your sitemap (often
sitemap.xml) and submit. Check later that it says "Success" and how many pages it found. - Inspect your home page and press Request indexing after you add the schema, or whenever you change it.
- Read the Queries report: Performance → Search results → Queries. Searches that contain your name show which spellings people use. Add the real ones to
alternateName. - Repeat every week or two. Look at your impressions, clicks and average position for your own name.
What this looks like on CodeWing (with numbers)
These numbers come from CodeWing's own Google Search Console, for the 7 days to November 27, 2026, search type Web:
| What | Number |
|---|---|
| Clicks from Google | 1.82K |
| Impressions | 19.2K |
| Click-through rate | 9.5% |
| Average position | 8.2 |
| "codewing mlbb beta" | 29 clicks from 35 impressions (82.9%) |
| "codewings testflight" (a spelling in my alternateName list) | 3 clicks from 4 impressions, position 1.0 |
How to read this: a misspelled search that still puts the site first is what I hoped to see. But the numbers are small, so please treat them as an example and not as proof that the schema caused it. The title, the pages and the other searches that bring people matter too.
Honest limits and mistakes to avoid
- It is not a ranking guarantee. It helps Google understand your name, nothing more.
- Results take days to weeks. Changing the code every day only slows you down.
- Never put someone else's company name in your list, or a name that isn't really yours. It's misleading, and it can only hurt.
- Don't make the list long. Real spellings only.
- An old, well-known company can still be above you. A strong brand, many links and years of history count too.
- Google decides the final name. It may show your domain or something else.
When the name doesn't change
- It's only on an inner page. It must be on the home page, at the root of the domain.
- Google can't crawl the home page. Check for a
noindextag or a robots.txt block, and use URL inspection to see what Google fetched. - Several home page addresses. Put the same block on
http,https,wwwand non-wwwversions, or redirect them to one. - The code isn't in the page Google sees. If your site builds the page with JavaScript, view the page source or use URL inspection's live test to see whether the block is there.
- You just changed it. Give it a few weeks.
Frequently asked questions
What is schema markup?
A small block of code, usually JSON-LD, that describes a page for search engines. For your site's name, the type is WebSite.
Will schema make my site number one on Google?
No. It helps Google connect your site to its name and spellings, but it's not a ranking guarantee. Google also decides the site name itself and may use other sources.
How long does it take to work?
Google says it can take from a few days to a few weeks for it to find and use a change.
Which tool should I use to check my schema?
The Schema Markup Validator at validator.schema.org. Google's Rich Results Test doesn't support site names. URL inspection in Search Console shows how Google sees your page.
Can I add my domain name or common misspellings?
Yes: alternateName accepts a list of other names. Add your lowercase domain and the spellings people really type, and nothing that belongs to someone else.
Do I need this on every page?
No. Only the home page needs the WebSite markup. Every page, though, needs its own clear title.
Sources
- Google Search Central, Provide a site name to Google Search
- Google Search Central, Influence your title links in search results
- Schema.org, Schema Markup Validator
- Google, Search Console

