SEO

Google Search on Your Website: How to Search Any Site, Embed It, and Get Found

How to search any website using Google, add a Google search box to your own site, and what it actually costs to show up in Google's search results.

Jason Poonia Jason Poonia | | 13 min read
Google Search on Your Website: How to Search Any Site, Embed It, and Get Found

Key Takeaways

  • Searching any website through Google takes one extra word in the search box. Type site:example.com your keywords and Google filters its index to that domain only, even if the site has no built-in search.
  • Embedding Google search on your website is free using Google’s Programmable Search Engine. The setup takes about 20 minutes. The free tier shows ads alongside results.
  • Appearing in Google’s organic results costs nothing in ad spend. You earn organic rankings through SEO, which takes time and effort but not a media budget.
  • Google Ads is the paid path. You bid on keywords and pay per click. The two approaches are not either/or; many businesses run both.
  • If your site is not appearing in Google at all, submit a sitemap through Google Search Console. That is the fastest way to get Google to discover and index your pages.
  • Most small business websites do not need an embedded search box. A well-organised menu and clear internal linking typically serves visitors better and is simpler to maintain.

The phrase “google search on website” covers three quite different questions. You might want to search a specific website through Google because the site itself has no search function. You might want to add a Google-powered search box to your own website. Or you want to know whether getting your business into Google’s results costs money. This post gives you a direct answer to all three, with the steps to act on each one.

Searching Within Any Website Using Google

Google has indexed most public websites. That means you can use Google as a search engine not just for the whole web but for any single site on it, including ones with no search bar of their own.

The technique uses what is called the site: operator.

How the site: operator works

In Google’s search box, type:

site:example.com your search terms

Replace example.com with the actual domain and your search terms with what you are looking for. Google returns only results from that domain.

A few practical examples:

  • You want to find all pages about pricing on a competitor’s site: site:competitor.co.nz pricing
  • You want to find a specific article on a publication whose own search is broken: site:nzherald.co.nz "Albert Park" 2026
  • You want to see whether Google has indexed your own service pages: site:yourdomain.co.nz services

This works because you are not searching the site directly. You are asking Google to show you everything from its index that comes from that domain, filtered by your keywords. The site itself is not involved at all.

You can use quotation marks inside the query to search for an exact phrase: site:example.com "free consultation". You can combine it with other operators too, such as excluding certain terms with a minus sign.

What the site: operator tells you about your own site

Running site:yourdomain.co.nz with no extra keywords shows you roughly how many of your pages Google has indexed. If you have 40 pages and Google is returning 12, that signals some content is not being crawled, is blocked from indexing, or has been deemed too thin to include.

Running site:yourdomain.co.nz and seeing zero results means Google has not indexed your site yet, or has been explicitly told not to. Both are fixable. The section on getting your site into Google covers how.

You can also use it to spot problems. If your site is returning pages you did not expect, such as old staging pages, duplicate content or test environments, those results tell you something is misconfigured.

Adding Google Search to Your Website

If you want visitors to search your site from within it and you want the results powered by Google’s algorithm, the tool is Google Programmable Search Engine.

What Google Programmable Search Engine is

It is a free tool from Google that creates a custom search engine scoped to one or more websites you specify. You embed a small code snippet on your site and visitors get a Google-powered search box, with results drawing on Google’s existing index of your pages.

The free tier shows ads in the results. You can pay to remove them, but for most small business websites the free tier is sufficient and the ads are not obtrusive.

How to set it up

  1. Go to programmablesearchengine.google.com and sign in with a Google account.
  2. Click “Add” to create a new search engine.
  3. In the “Sites to search” field, enter your domain, for example yourdomain.co.nz/* to include the entire site.
  4. Give it a name and click “Create”.
  5. Copy the code snippet Google generates.
  6. Paste the snippet on the page where you want the search box to appear. On WordPress, this goes into a widget area or a page builder block. On a custom-built site, your developer drops it into the template wherever you want it.

The Programmable Search Engine dashboard also lets you tune results, promote specific pages, exclude certain URLs, and adjust the visual style to match your brand.

When to add a search box, and when not to

If your site has more than 50 pages and users regularly need to navigate to specific content, a search box adds real value. Documentation sites, resource libraries, news archives and large ecommerce catalogues are the obvious cases.

For a typical small business service site with a homepage, five or six service pages, a contact page and a blog, a search box rarely gets used and adds maintenance overhead for negligible return. A clear menu and a few well-placed internal links give visitors faster navigation than a search box would.

If you do add one, put it where users expect to find it: in the header on desktop and in a prominent position on mobile. A search box buried in the footer does not get used.

Is Getting on Google Free?

The short answer is yes. Appearing in Google’s organic search results costs nothing directly. There is no fee to list your website, no monthly charge for staying in the results, and no payment that buys you a higher position over a competitor.

The honest answer is that “free” describes the media cost, not the total cost. Earning a good ranking requires content, technical work and backlinks, which take time and often professional help.

Organic results versus Google Ads

Google’s search results page has two types of listings.

Organic results are the main body of results below any ads. Google’s algorithm decides which pages appear here and in what order, based on hundreds of factors: the relevance of your content, your site’s technical health, your domain’s authority, page speed, and many others. You cannot pay for a position in organic results. You earn it through SEO.

Google Ads are the paid listings that appear at the top of the page, labelled “Sponsored”. You set up a campaign, choose keywords to bid on, and pay each time someone clicks your ad. The cost per click varies by keyword and competition level. For New Zealand service businesses, commercial keyword clicks can range from a few dollars to over $30 depending on the industry and how competitive the search term is. Our post on Google Ads pricing in New Zealand covers what to expect for specific industries.

Many businesses run both. Google Ads delivers traffic immediately. SEO builds a larger, more durable source of traffic over time, with no ongoing media cost once you have the rankings. For a practical comparison of when each makes sense, our guide to using Google Ads for your business is a good starting point.

What SEO involves

Ranking organically on Google comes down to one thing: Google wants to show searchers the most useful, trustworthy result for their query. If your page genuinely answers the question better than anyone else’s, Google wants to rank it.

In practice, that means:

Content. Does your page actually answer the question in full? Is it specific and useful, or thin and generic? A page about a service that lists three bullet points and a phone number is not what Google considers the best result for a commercial search.

Technical health. Can Google find and crawl your pages easily? Do they load fast on mobile? Are there errors that stop crawling or indexing? Google has confirmed that page experience signals, including Core Web Vitals, affect rankings.

Authority. Does your domain have other credible sites linking to it? Links remain one of Google’s strongest signals that a page is worth ranking.

Local signals. For businesses serving a specific area, your Google Business Profile, local citations and reviews affect your visibility in local and map results.

Our SEO guide for beginners covers all of these in more depth, along with the realistic timeframes for seeing results.

Getting Your Website Into Google’s Index

Before Google can rank your pages, it has to know they exist. Google discovers new content by crawling the web, following links from known pages to new ones. Most websites end up in Google’s index without any action from the owner, because other sites link to them or because the domain was previously known to Google.

If your site is new, or if you want to speed up the process, the right tool is Google Search Console.

Setting up Google Search Console

Search Console is a free tool from Google that shows you how Google sees your site. It is one of the most useful free tools available to any website owner. To get started:

  1. Go to search.google.com/search-console and sign in.
  2. Click “Add property” and enter your website’s URL.
  3. Verify ownership. The easiest method for most sites is adding a small HTML tag that Google provides. On WordPress, the Yoast or RankMath plugin handles this in one click.

Once verified, you can submit a sitemap, see which pages are indexed, check for crawl errors, and monitor how your pages perform in search, including which queries bring traffic and what your average position is. Our post on Google Search Console and why it matters for SEO covers how to read the most useful reports.

Submitting your sitemap

A sitemap is an XML file that lists all the pages on your website. Submitting it to Search Console tells Google exactly where to look, which is faster than waiting for it to find everything by following links.

Most website platforms generate a sitemap automatically:

  • On WordPress with Yoast or RankMath, your sitemap is typically at yourdomain.co.nz/sitemap.xml or yourdomain.co.nz/sitemap_index.xml
  • On Shopify, it is at yourdomain.co.nz/sitemap.xml
  • On Squarespace and most other hosted platforms, the same path applies

To submit it: open Search Console, click “Sitemaps” in the left menu, paste the sitemap URL, and click “Submit”. Google will begin crawling the pages listed. For a new site, it can take days to several weeks for pages to start appearing in results.

Checking if you are indexed

The fastest check is the site: operator. Type site:yourdomain.co.nz into Google. If pages appear, Google has indexed your site. If nothing appears and your site has been live for more than a few weeks, use Search Console to check the Pages report for indexing errors.

Common reasons a page might not be indexed:

  • A noindex tag in the page’s HTML, sometimes added by a plugin or a developer setting that was never removed after testing
  • The page is blocked in your robots.txt file
  • The page has very thin content and Google decided it was not worth indexing
  • The page is on a staging or development domain that was never made live, or is still password-protected

All of these are fixable once you know where to look. Search Console’s Pages report shows you exactly which pages are excluded and why, which turns a guessing game into a specific list.

Site Search Alternatives Worth Knowing

If you are considering adding search to your website, Google Programmable Search Engine is not the only option.

WordPress has a built-in search function that is quick to enable but searches only your database content directly, without Google’s relevance algorithm. For a blog with hundreds of posts, the results can be less accurate than a Google-powered alternative.

Algolia and Typesense are commercial search products used on larger sites and ecommerce stores. They are fast and highly customisable, with real-time indexing that Google’s crawler cannot match for freshness. They require developer integration and cost money at meaningful scale.

For most New Zealand small business websites, none of these are necessary. Before adding a search box, ask a simple question: are visitors actually getting lost on my site? If the answer is no, a well-built navigation menu is the right solution. If the answer is yes, and the site has the content volume to justify it, Google Programmable Search Engine is the lowest-effort starting point.

Frequently Asked Questions

Is SEO free on Google?

Organic search rankings are free in the sense that you pay nothing to Google for them. You cannot buy a ranking. Earning one requires content, technical work and backlinks, which take time and often professional help. SEO retainers in New Zealand typically cost between $1,000 and $2,500 per month depending on the scope and competition. Google Ads, by contrast, is straightforwardly paid: you bid on keywords and pay per click.

How do I search something on a site?

In Google’s search box, type site: followed by the domain, then your keywords. For example: site:stuff.co.nz Wellington flooding. Google returns only results from that domain, drawing on its full index of the site. This works on any publicly indexed website, whether or not the site has its own search function.

How do I open a search on a website?

Most websites with a built-in search function place it in the header, often as a magnifying glass icon on mobile. Tap or click it to expand the search box, then type your query. If the site has no visible search, use the Google site: method described above as a reliable alternative.

How do I embed Google Search in my website?

Use Google Programmable Search Engine at programmablesearchengine.google.com. Create a new search engine, set the scope to your domain, copy the generated code snippet, and paste it onto the page where you want the search box. The free version shows ads alongside results. For most small business websites with fewer than 50 pages, a well-organised navigation menu is a simpler and more effective alternative.


If you want to know whether your website is appearing in Google the way it should, or whether your current SEO is producing the results your business needs, the easiest starting point is a conversation. Get in touch with us at Lucid Media and we will tell you what we would look at first.

Written by

Jason Poonia

Jason Poonia is the founder and Managing Director of Lucid Media, helping New Zealand businesses grow online since 2018. With over 7 years delivering results for clients across New Zealand and internationally, Jason combines technical expertise with proven marketing strategies to help businesses attract more customers and build scalable systems. Background in Computer Science from the University of Auckland.