How to change this title or what its called? Og tag?
Answered
Fire ant posted this in #help-forum
Fire antOP
I already implemented og tag stuff like title, desc, og image and others, but my website still appear in google my domain name above the url, and not like the titles. Like "domain.com" but not "My title" like example on those image it shows the title above the url. What should i add on my layout page? Or what tag does it called?
Answered by B33fb0n3
you need to add this kind of script:
After you done that do the following:
1. Check if everything is there: https://validator.schema.org/
2. Check if your page is indexed: https://support.google.com/webmasters/answer/9012289
3. Let google recrawl your page: https://developers.google.com/search/docs/crawling-indexing/ask-google-to-recrawl
You can read more here: https://developers.google.com/search/docs/appearance/site-names
<script type="application/ld+json">
{
"@context" : "https://schema.org",
"@type" : "WebSite",
"name" : "Example Company",
"alternateName" : "EC",
"url" : "https://example.com/"
}
</script>
After you done that do the following:
1. Check if everything is there: https://validator.schema.org/
2. Check if your page is indexed: https://support.google.com/webmasters/answer/9012289
3. Let google recrawl your page: https://developers.google.com/search/docs/crawling-indexing/ask-google-to-recrawl
You can read more here: https://developers.google.com/search/docs/appearance/site-names
10 Replies
Fire antOP
Is it under opengraph too?
@Fire ant I already implemented og tag stuff like title, desc, og image and others, but my website still appear in google my domain name above the url, and not like the titles. Like "domain.com" but not "My title" like example on those image it shows the title above the url. What should i add on my layout page? Or what tag does it called?
you need to add this kind of script:
After you done that do the following:
1. Check if everything is there: https://validator.schema.org/
2. Check if your page is indexed: https://support.google.com/webmasters/answer/9012289
3. Let google recrawl your page: https://developers.google.com/search/docs/crawling-indexing/ask-google-to-recrawl
You can read more here: https://developers.google.com/search/docs/appearance/site-names
<script type="application/ld+json">
{
"@context" : "https://schema.org",
"@type" : "WebSite",
"name" : "Example Company",
"alternateName" : "EC",
"url" : "https://example.com/"
}
</script>
After you done that do the following:
1. Check if everything is there: https://validator.schema.org/
2. Check if your page is indexed: https://support.google.com/webmasters/answer/9012289
3. Let google recrawl your page: https://developers.google.com/search/docs/crawling-indexing/ask-google-to-recrawl
You can read more here: https://developers.google.com/search/docs/appearance/site-names
Answer
@Fire ant solved?
@B33fb0n3 you need to add this kind of script:
tsx
<script type="application/ld+json">
{
"@context" : "https://schema.org",
"@type" : "WebSite",
"name" : "Example Company",
"alternateName" : "EC",
"url" : "https://example.com/"
}
</script>
After you done that do the following:
1. Check if everything is there: https://validator.schema.org/
2. Check if your page is indexed: https://support.google.com/webmasters/answer/9012289
3. Let google recrawl your page: https://developers.google.com/search/docs/crawling-indexing/ask-google-to-recrawl
You can read more here: https://developers.google.com/search/docs/appearance/site-names
If you don’t mind, what’s this supposed to do? I’ve never done that 🧐
@luis_llanes If you don’t mind, what’s this supposed to do? I’ve never done that 🧐
it provides the search engines (e.g. google) with extra search data. Like that you can easily change the appearance of your page inside search engines
I honestly thought Next.js would take care of that via the metadata API and you didn’t have to do it manually
@luis_llanes I honestly thought Next.js would take care of that via the metadata API and you didn’t have to do it manually
yes, nextjs does that as well. However google itself decide where to use the data from. If you don't provide it, google will determine some fields itself by looking at your website
Oh cool, good to know!
Asian paper wasp
Just to add that the steps above only HINTED Google the site name you wish it to use, but Google may choose to ignore itfor its own reasons what so ever
This is also mentioned in the article linked above
This is also mentioned in the article linked above