Advanced Search

Optimize your local business website for Google Rich Results using markup
05 January 2021 (Edited )
Share this article: markup highlights key information and helps Google understand your pages

Rich Results appear ahead of organic listings

Rich Results that Google serves up in response to search queries - like the examples in the graphic above - can give any business a big edge over competitors, because:

  • Rich results appear at the top of the search results page - often in "position zero" above all organic results.
  • They are the first thing users see on the search return page.
  • They're faster and easier for users to use than organic results, because they appear in boxes, often with images and ratings, and can be presented as a carousel that users of mobile devices can swipe.
  • Rich results can generate high clickthrough rates to your pages, leading to higher Google ranking.
  • Rich results work seamlessly with voice search.
  • markup helps Googlebot crawl and understand your pages, so more pages get indexed for a given crawl budget and Google can present more relevant results to users.
  • Being able to serve up more relevant results decreases bounce rates of your site, enhances the user experience and makes Google happy.

Below, I'm going to give you a simple example of a JSON-LD (JavaScript Object Notation for Linked Data) script to be added to the <HEAD> of a web page on a fictitious website for a fictitious local business called "My Clothing Store" in Boothbay Harbor, Maine.

(FYI, JSON-LD is a scripting language that enables webmasters to communicate data to Google and other search engines.)

Using some resources I'm going to give you later, you can edit this JSON-LD script to fit your business and simply copy/paste it into the <HEAD> of your pages.

Here's the script, between the 2 horizontal lines:


<script type="application/ld+json">
"@context": "",
"@type": "ClothingStore",
"image": [
"@id": "",
"name": "My Clothing Store",
"address": {
"@type": "PostalAddress",
"streetAddress": "100 Any St",
"addressLocality": "Boothbay Harbor",
"addressRegion": "ME",
"postalCode": "04538",
"addressCountry": "US"
"geo": {
"@type": "GeoCoordinates",
"latitude": 43.850524,
"longitude": -69.631540
"telephone": "+1207633XXXX",
"priceRange": "$$$",
"openingHoursSpecification": [
"@type": "OpeningHoursSpecification",
"dayOfWeek": [
"opens": "9:00",
"closes": "17:00"


Customizing the script:

The script is full of variables you need to customize. The first thing is "@type".

To find a standard business type that fits yours, go to the Full Hierarchy page :

and expand the tree as necessary. Anything with a + beside it can be expanded further. Paste the new @type into your copy of the script where I have ClothingStore.

Now start putting in the variables for your own business. But caution: don't change the variable names or the punctuation in the script.

Swap in URLs of some of your photos, your business name, address information, GeoCoordinates (which you can get from Google Maps), phone number, price range ($ to $$$$$) , opening hours (that will get tricky if you have different hours on different days - but see the resources I'll list below).

After completing your changes, head over to the Google Rich Results Test at , click the CODE button, paste in your script and click TEST CODE:

If (and only if, unfortunately) your script is perfect, you'll get a result like this:

If there are errors in the script, the tester will give you some hints as to what they are. If after attempting debugging the script still won't pass the test, Google has a Structured Data Markup Helper tool here that can give you some help:

Should you really want to get deeply into markup, LocalBusiness documentation in infinite detail is available here: and Google documentation of Advanced SEO for Local Business is here: .

Happy scripting!

Share this article:

And if you have questions or comments, you can easily send them to me with the Quick Reply form, below, or send me an e-mail.

David Boggs MS    - David
View David Boggs's profile on LinkedIn

Google Certifications - David H Boggs
View my profile on Quora
Subscribe to my blog

External Article:

Subhead markup highlights key information and helps Google understand your pages
Visit Website
4/5 based on 1 vote.
Show Individual Votes
Related Listings

Sorry, you don't have permission to post comments. Log in, or register if you haven't yet.

Please login or register.

Members currently reading this thread: