LocalBusines Schema Example + Template for Local SEO

What is LocalBusiness Schema?

LocalBusiness Schema is a type of structured data markup (aka code) you can add to a website to make it easier for search engines to identify what type of business it is and what they do.

LocalBusiness Schema is a great way to add more context to your web pages for search engines. It allows you to tell search engines exactly what the business name, address, phone, etc. are so that there’s no confusion.

LocalBusiness Schema Template + Example

You can copy and paste the LocalBusiness Schema template below for your own use.

You will need to replace all content that is in {{ALL CAPS}} with you own information. If you use the template as-is, it will not work for you.

The “priceRange” field is not required by Google. If you do end up using it, you can also enter $, $$ or $$$ if you don’t want to use a specific number.

For the “hasMap” field, you can use this free tool to find the CID number for the Google Business Profile.


Further Reading: https://help.agencyanalytics.com/en/articles/1836957-find-the-cid-number-for-a-google-my-business-listing

Implementing LocalBusiness Schema

What Schema Format Should I Use?

Directly from Google: “In general, Google recommends using JSON-LD for structured data if your site’s setup allows it, as it’s the easiest solution for website owners to implement and maintain at scale (in other words, less prone to user errors).”

Reference: https://developers.google.com/search/docs/appearance/structured-data/intro-structured-data

What Pages Should I Add LocalBusiness Schema To?

When it comes to adding LocalBusiness Schema to a website that has multiple locations, I recommend adding unique LocalBusiness Schema on each location page.

But if you only have one location, I’d add it to the home page, about page and the contact page.

If you have time, I recommend reading this thread on what pages to add LocalBusiness Schema to: https://localsearchforum.com/threads/does-localbusiness-schema-have-to-go-on-every-page.53785/

Where Do I Add the LocalBusiness Schema on a Web Page?

You can add the Schema code anywhere on your website. It doesn’t matter if you place it in the head, body or footer section. Google will have no problem reading the code.

Since JSON-LD is a data linking format, there are no additional requests to the server. Therefore, it doesn’t matter if the script is loaded at the top or bottom of the page – there is no render delay whatsoever.

I usually place it in the <footer> just to make sure the more important scripts like Google Analytics, Facebook Pixel, etc. can run with no issues in the <head>.

Reference: https://whitespark.ca/blog/the-json-ld-markup-guide-to-local-business-schema/

How Do I Add the LocalBusiness Schema to a Web Page?

This can get tricky. It’s best to use your developer for this. If you don’t have a developer, you will need to search for how to do this.

If you are implementing LocalBusiness Schema on a WordPress website, you can use this free plugin: https://wordpress.org/plugins/insert-headers-and-footers/

I use this plugin because you can pick and choose what pages the LocalBusiness Schema will be implemented on.

For example, you can implement LocalBusiness Schema for location #1 on its location page, and you can implemented LocalBusiness Schema for location #2 on its location page.

Testing LocalBusiness Schema

Once you have added this script to your website, you will need to confirm that you have implemented the code correctly by using this Schema Validator tool.

Simply enter the URL of the website that you installed the script on under the “Fetch URL” tab. Or you can copy and paste the script under the “Code Snippet” tab.