Scanned portion of google links search box not working

I am trying to implement a code snippet to search for links on google according to the documentation at https://developers.google.com/webmasters/richsnippets/sitelinkssearch .

My implementation is like this:

<script type="application/ld+json">
{
   "@context": "http://schema.org",
   "@type": "WebSite",
   "url": "http://www.petmd.com/",
   "potentialAction": {
     "@type": "SearchAction",
     "target": "http://www.petmd.com/search?Q={Q}",
     "query-input": "required name=Q"
   }
}
</script>

      

The target works if you replace {Q} with a keyword and the search field is "Q". Is there something wrong with this implementation?

I put the code inside the body tag at the bottom of the page.

+3


source to share


2 answers


I noticed this is now working on petmd.com, so if you haven't changed anything, I suspect you just didn't give it enough time for Google to pick it up.

To give some idea of ​​time frames for anyone looking for this, I'll share my experiences below (note that this will change depending on the size of your site):

I added a snippet similar to the previous one to the home page of my website. I used "Fetch as Google" in Google Web Master Tools to re-submit the homepage to Google to try and get it to scan as soon as possible.



Within a few days I saw a snippet in Google Webmaster Tools under Search Appearance-> Structured Data and clicking on it showed that all the data was matched correctly, so everything looked good, but the link search box in the Google Results box was still being used locally by google, not through my website.

Next 3 and a half weeks for the link search box in the google results box to redirect to the site search page.

So you just need to be patient adding this as it can take weeks. Note that after updating it, there are no visible changes in search results or Google Web Master Tools, so you just need to keep searching in test mode to see if it's updated to point to your site.

+2


source


Seems to be correct. However, Google decides when and when to show its link search box for your site.



Please note that it is not necessary to place it at the bottom of the page, as you are using the element script

as a data block and not as a dynamic script (i.e. for JavaScript).

0


source







All Articles