How to Add Netlify Sites to Google Search Engine Results Page
Suppose we’ve registered a NameCheap domain and pointed it to our deployed site in Netlify.
If you haven’t yet, read up on how to connect a custom NameCheap domain to a Netlify deployable.
How can we index this site in Google and have it show up in Google’s search results?
We have two criteria before continuing with this article:
- We have a Google account
- We have a custom domain pointing to a Netlify app
1. Google Search Console: verify site ownership
- Head over to the Google Search Console (GSC)
- Select
Add Property
- Type in your custom domain, and click
Continue
- In the
Verify domain ownership via DNS record
popup, copy the string of text starting withgoogle-site-verification=*
- Leave this page open, and open a new tab for the next section
2. Netlify: verify domain with TXT
record
- Go to the Netlify Dashboard, where it lists
Sites
andBuilds
- Select
Domains
(or go tohttps://app.netlify.com/teams/your_username/dns
) - Click the custom domain you want to add to Google
- Select
Add new record
- Record type:
TXT
- Name:
@
- Value:
google-site-verification=*
- Record type:
3. Google Search Console: request indexing
- Let’s go back to the GSC tab and select
Verify
- Once in site’s search console page, select
URL Inspection
- Type in a page you want to index
- Select
Request Indexing
- Repeat
2-5
for all pages to index
GSC will automatically crawl any submitted site, but it may take a few days or even a few weeks. Manually requesting indexing may speed up the process.
We can also submit a sitemap if there are too many URLs to index.