The sitelinks search box (schema.org/SearchAction) is one of the most popular markups out there. According to SimilarTech, there are now more than 650,000 sites that have implemented this markup, making it one of the most popular of all schema markup types.
That said, we don't really know the reason why Google sometimes shows the search box for branded queries for sites that have implemented the markup, and sometimes doesn't. While we don't know what Google's criteria are behind the search box algorithm, we have the data to definitely see that there's a correlation between the traffic of the websites and the appearance of the markup.
source: "Sitelinks Search Box" on Google's developers site
What determines if Google displays your search box?
Using a SimilarTech "Websites using SearchAction Schema Entity" report, we compiled a list of websites implementing the above schema. We chose over 300 websites to sample, with varying traffic volumes. Then we researched each site and checked if Google was displaying a sitelinks search box when searching for the URL.
If we found a search box wasn't displayed, we looked at the website in question to see if there were technical issues (based on Google's setup instructions). Finally, we analyzed the results and produced the most common scenarios that would prevent Google from showing the sitelinks search box for a website.
Reasons why the sitelinks search box may not show (and what to do about it)
This list is ordered by frequency, from the most common to least common reasons that the Google sitelinks searchbox isn't being displayed:
Reason No. 1: Traffic to the website is too low
As you can see in the chart, amongst the sites with SearchAction schema markup, there's a definite correlation between website traffic and the likelihood that the searchbox will appear in Google search results. There were just a few sites (2.5%) with 100K monthly desktop visits where the searchbox was displayed. By contrast, nearly three-quarters of the sites with 50M monthly desktop visits had the sitelinks searchbox.
All the websites we tested implemented the schema SearchAction markup.
Here's what it means:
- Monthly desktop visits – the number of average monthly desktop visits to the website according to SimilarWeb's analytics.
- With "site:" search box – the number of websites that have the "site:" search box for their website:
- With the custom search box – the number of websites that have the custom search box for their website:
The biggest difference between the custom search box and the "site:" search box: Searches inside the custom search box will redirect you to the website results page in the website itself, while the searches in the site:searchbox will lead you to a second search within Google.
Reason No. 2: Markup is not implemented in the site
This is fairly obvious, but it needs to be reiterated: The searchbox can only appear if the markup is implemented. There are two available schema formats you can use to implement the markup.
1. Using JSON-LD:
<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "WebSite", "url": "https://www.example.com/", "potentialAction": { "@type": "SearchAction", "target": "https://query.example.com/search?q={search_term_string}", "query-input": "required name=search_term_string" } } </script>
2. Using Microdata:
<div itemscope itemtype="https://schema.org/WebSite"> <meta itemprop="url" content="https://www.example.com/"/> <form itemprop="potentialAction" itemscope itemtype="https://schema.org/SearchAction"> <meta itemprop="target" content="https://query.example.com/search?q={search_term_string}"/> <input itemprop="query-input" type="text" name="search_term_string" required/> <input type="submit"/> </form> </div>
The Google recommendation is to implement the JSON-LD format, so if you prefer to do that, you can find the instructions here.
Reason No. 3: The URL attribute is wrong
This occurs when the "URL" attribute's value doesn't match the canonical URL of the domain's homepage, or there are problems with the canonical tags of the main domain.
The most common problems are differences between the URL value in the markup to the domain himself.
Here are some examples:
- https:// instead of https:// or the opposite
- With WWW or without
This can be tested by using Google's structured data testing tool and checking for problems with the URL value.
Reason No. 4: Issues with the search results page
The "target" attribute in the markup should point to the search results page URL on the website, including a placeholder for the query input parameter name, wrapped by curly braces."target": "https://query.example.com/search?q={search_term_string}"
- "target" attribute is not defined in the markup or defined incorrectly.
- No search results page exists (404) or it's returning a server error (500)
- The results page never yields results or the content is irrelevant to the search query input (this can be due to a technical problem in the engine of the search results page)
- The field of the target in the markup isn't defined well.
Reason No. 5: The query input doesn't match
The value of the "query-input" name attribute doesn't match the string that's inside the curly braces in the "target" property. You need to make sure that the value of the "name" will match, otherwise it won't work.
"query-input": "required name=search_term_string"
Reason No. 6: Using nositelinkssearchbox to disable the markup
<meta name="google" content="nositelinkssearchbox" />
Use this tag and, you guessed it, Google won't show the searchbox. But unless you're actively trying to disable the searchbox markup, this is likely one of the least common scenarios.
Now that we've covered all the reasons the sitelinks searchbox may not appear, here's what it means in a nutshell:
Beyond markup: Best practices for winning the box
First, there's a very strong correlation to site traffic. This is perhaps the main factor that determines whether or not Google will show the search box, even if all technical issues are addressed and schema is implemented correctly. Again, out of the websites we sampled that have more than 50M monthly desktop visits, 74% of them have sitelinks searchbox for their websites. When we checked the websites that have just 25-100K monthly visits, however, only 1.4% had the searchbox working for their site.
Secondly, as you can see from the various reasons listed above, there are a slew of technical kinks that may result in Google not displaying the searchbox. Some of these have to do with improperly implemented schema. If you suspect a technical issue is to blame, be sure to go through all of the tech-related scenarios listed above to ensure the bug is found. Then you can use our troubleshooting tips to fix the problem.
As you can see, there are several factors that affect the searchbox appearance in Google's search results. But if you play your cards right and do your due diligence, getting those valuable searchboxes to appear is easier than you think.
The example code provided by Google sitelinks search box is generating error when tested in https://developers.google.com/structured-data/testing-tool/. Why is this happening? Should we still use this code as reference?
Very interesting. I wonder if this could even help trigger getting site links? That would be pretty valuable.
Site links for branded searches? or on long tail searches?
Googleception. Search inside a search :)
Hey Roy,
Loved the article! One of my friends was wondering why his site searchbox wasn't showing in Google even after he had placed the markup. This article definitely will help him.
Great post!
It's so nice to see some good data on this. With only only 1.4% of sites with 25-100K monthly visits having the sitelinks searchbox, I think that it may not be worth the time for mid-size websites to impliment the markup.
Yep, maybe in the future it will be changed.
Has anyone implemented the sitelinks search box for international, mulitlingual sites? On the 10+ brands that I've researched across multiple languages, many of the sitelinks search boxes lead to English site search results. Only one site that I checked out (on google.jp) lead to Japanese site search results. Has anyone looked into the implications of the sitelinks search box for multilingual sites?
It's working also for multilingual sites.
Okay, I have a lot of work to do. Great article, Roy!
Thanks!
Roy,
I love you study. I'm just going to try it for one of my client website but just wondering do you have any tool to test the JSON-LD code?
Thanks in advance! :)
Hi Hardik,
Looking forward to see the results :)
Hey Hardik,
I had the same thought as you.
Google say (https://developers.google.com/structured-data/slsb...): "We expect to have a markup testing tool in the near future. In the meantime, you can use the JSON-LD Playground to validate your JSON-LD syntax, and use a generic microdata validator if you plan to use microdata format."
P.S. Great post Roy.
Thanks David!
That's a very extensive guide to get search scheme Roy. Totally appreciated your efforts, but I personally do not prefer search schema, a search option within your website is always better. You can use site search option in Analytics and tweak it in a better way rather than Google playing all the part and keeping the traffic on its platform rather than your website. One more thing, there is a correlation of branded searches with the scheme box as well, I have seen website getting that search box pretty early with lots of branded searches.
It's nice to see some actual data on this, because it confuses the heck out me. I am involved in a few sites, and whether or not Google decides to show mark-up features seems almost random. It gets even more confusing for some, which show subpages in the results for certain spellings and not for others.
After reading this, I may have to revise my theory that Google employees turn it on or off randomly, just as a fun way to mess with website owners when they're bored. I'm not saying Google does that, I'm just saying I would, if I worked there.
All joking aside, it's great to see what's really impacting this, especially since you put together a really great sample.
Good article Roy!
Thank Connor!
It's a nice theaory :)
Great article!
I have just implemented your suggestions on a low traffic but important industry website.
Let's see what happens!
Looking forward to see the results!
If the search page on the site strips the query parameter from the url, is this schema still possible?
Visiting the site by typing in a url that includes a query parameter, does return valid search results. But visiting the search page through the website search box, strips the query parameter from the url.
As far as markups go, not many beat the SearchAction sitelinks search box on search engine powerhouse Google. SimilarTech states that over 650,000 websites exist that have started using this markup. Although this markup is rising and rising in prominence, there are still a few questions about it that need answers. Google isn't always consistent in when it displays the search box regarding branded queries. If a website uses the SearchAction markup, Google sometimes displays the box. It sometimes doesn't display it, too, however, making the whole thing rather unpredictable to users. The search engine's standards regarding the search box formulas are still unknown to many. Despite that, it's crystal clear to many that there indeed is a relationship between the look of the markup and website traffic. Google sometimes fails to display search boxes when websites have incorrect URL (uniform resource locator) attributes, for example. The search engine also sometimes fails to display them when there are issues with available search results.
thanks for the info, i've never listen about "micro data"
Great post! Thanks for this!!!
that sound great, i really agree with Alberto!!!
Great article. Does Google provide a test area. I.e. if the coded is added to a site how do we know for sure that this is added correctly.
https://search.google.com/structured-data/testing-...
This will validate the data being provided and seems the best testing we can find.
Hi there, thanks for commenting! However, as this post is now over a year old, you'd likely be better off asking this question in the Q&A. Best of luck! :)
hello...i have a question...
in my website i don't have a search results page...i created a google custom search engine...google gave me a search box , this box is in all pages of my website and it shows results in overlay mode.......so....
what can i write inside this two tags ?
<meta itemprop="target" content="https://query.example.com/search?q={search_term_string}"/>
<input itemprop="query-input" type="text" name="search_term_string" required>
thank you very much for the help...
Raffaele
Hi there! This is the sort of question that is much more likely to get a response in our Q&A forum. I recommend asking there. :)
Very interesting, great post
Very insightful. Thanks for this
Thank.. ..
Great observation or study Roy Hinkis. It is really frustrating when a site has enough number of visitors and eligible for a search box but that don't appears. You post will help them to resolve the issue i think. I support the criteria that google follows for showing the search box in SERP. A website must have a minimum visitor to get the badge from google.
Maybe in the future Google will decide that it won't be related to the number of visitors in order to create more boxes in the SERP
A nice and informative post Roy Hinkis!
Can anybody tell me, how to earn site links for website or branding for website in Google search? Is any genuine way exist for it?
Read this guide by Neil Patel
thanks for that link roy !
Good write up, its definitely something that when i come across i use, would love to know if there is a wordpress plugin that allows this to be setup automatically for your site.
I don't think there is,but it's very easy to do it manually.
Hi Roy,
my website is ppcexpert.me have setup successfully Google site links search box by using JSON-LD script but why still I am not able to see this site link search box in google search results for my website.
So you probably don't enough visits to your website
That's nice for big content site with lot information i will to try it on my site and see result
thanks for great information that help me today . i am looking on it because my website not shown the site links on my website worth calculator.
This is a great question for our Q&A forum!