Local business schema is a small block of code on your website that tells search engines, in a fixed format, who you are, where you are, when you're open and how to contact you. It doesn't change what visitors see. It removes guesswork for Google and other systems that read your site.
Will it shoot you up the rankings? No. Google has said structured data helps it understand a page and can make it eligible for certain rich results, but it is not a magic ranking factor. What it does do is make your business details consistent and machine-readable, which supports everything else you do for local SEO.
This guide shows you what to include, gives you a working example to adapt, and explains where people go wrong.
What schema markup is, in plain terms
Schema markup uses a shared vocabulary from Schema.org. Think of it as labels. Your page might say "Open 8 to 5, Monday to Friday" in a sentence. Schema says the same thing as openingHours with values a machine can parse without reading English.
There are three formats: JSON-LD, Microdata and RDFa. Use JSON-LD. Google recommends it, it sits in one block inside a <script> tag, and you can add or edit it without touching your page layout.
For a local business, the main type is LocalBusiness. Even better, use a more specific subtype when one fits, such as Dentist, Plumber, Restaurant, AutoRepair or LegalService. Schema.org has a long list of these. A specific type gives search engines more context than the generic one.
The fields that actually matter
You can add dozens of properties. These are the ones I fill in on every local site:
| Property | What it holds | Notes |
|---|---|---|
@type | Business type | Use the most specific subtype that is true |
name | Business name | Exactly as on your Google Business Profile |
address | Street, city, region, postcode, country | A PostalAddress object |
telephone | Main phone | Include the country code |
url | Homepage or location page | The canonical URL |
geo | Latitude and longitude | Copy from Google Maps for your pin |
openingHoursSpecification | Opening hours | One entry per set of days |
image | Logo or photo of the premises | A crawlable image URL |
priceRange | Rough price level | Optional, keep it honest |
sameAs | Your social and profile URLs | Facebook, LinkedIn, Yelp and so on |
areaServed | Cities or regions you serve | Useful for service-area businesses |
The rule that matters most: every value must match what visitors see on the page and what's on your Google Business Profile. Schema is a description of real information, not a place to add extra claims.
A JSON-LD example you can adapt
Here is a complete example for a fictional plumbing business. Replace every value with your own.
{
"@context": "https://schema.org",
"@type": "Plumber",
"name": "Example Plumbing Co",
"url": "https://www.example.com/",
"telephone": "+1-555-010-0199",
"image": "https://www.example.com/images/logo.png",
"priceRange": "$$",
"address": {
"@type": "PostalAddress",
"streetAddress": "123 Main Street",
"addressLocality": "Springfield",
"addressRegion": "IL",
"postalCode": "62701",
"addressCountry": "US"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": 39.7817,
"longitude": -89.6501
},
"openingHoursSpecification": [
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
"opens": "08:00",
"closes": "17:00"
}
],
"areaServed": ["Springfield", "Chatham", "Rochester"],
"sameAs": [
"https://www.facebook.com/exampleplumbing",
"https://www.linkedin.com/company/exampleplumbing"
]
}On the page, this goes inside <script type="application/ld+json"> and </script>, usually in the head or near the end of the body. Either location works.
If you have more than one location, give each location its own page with its own LocalBusiness block. Don't stack every branch into one block on the homepage.
How to add it to your site
The method depends on your platform.
- WordPress. Most SEO plugins (Yoast, Rank Math, SEOPress and similar) have a local business section that generates schema from a form. That's fine for a single location. For unusual cases, I add a custom JSON-LD block through the theme or a small snippet so I control every field.
- Shopify. Many themes include basic
Organizationschema. For a physical shop you can add aLocalBusinessblock to the theme's layout file or use a structured data app. - Next.js or custom sites. Render the JSON-LD from a component on the relevant page. I keep business details in one config file so the footer, contact page and schema all read from the same source and can't drift apart.
- Wix and Squarespace. Both have settings for business info and some allow custom code in the page head. Check what they already output before adding your own, to avoid duplicates.
Whatever the method, avoid having two plugins each output a LocalBusiness block with slightly different data. That's one of the most common problems I find in audits.
One more tip from my own builds: decide which page carries the schema. For a single-location business, the homepage or contact page is usually right. Putting the same LocalBusiness block on every page doesn't add anything, and it can make updates harder if each page needs editing. Keep it in one template, fed from one set of business details, so a change of hours or phone number is a single edit.
Testing and validating
Always test before and after you publish.
- Paste the page URL into Google's Rich Results Test. It shows which structured data Google found and any errors that affect rich result eligibility.
- Run the Schema.org validator (validator.schema.org) for a stricter check of the vocabulary itself.
- After publishing, watch the Enhancements reports in Google Search Console for errors or warnings over the following weeks.
Errors usually mean a required field is missing or a value is in the wrong format, like a time written as "8am" instead of "08:00". Warnings are for recommended fields you left out. Fix errors first. Fill warnings if you genuinely have the information.
Google's own documentation on local business structured data is the reference I check when something is unclear: developers.google.com/search/docs.
Mistakes that cause problems
These come up again and again:
- Details that don't match. Different phone numbers on the site, the schema and the Google profile. Pick one and use it everywhere.
- Fake reviews in schema. Adding
aggregateRatingwith made-up numbers, or self-serving reviews of your own business on your own site, goes against Google's guidelines and can lead to a manual action. Don't. - Wrong business type. Choosing
Storefor a service business, or a subtype that isn't accurate, just to sound bigger. - Copying another site's code and forgetting to change the coordinates or postcode.
- Hours left stale after you change them. Update schema at the same time as your profile.
- Marking up content that isn't on the page. Schema should describe what visitors can see.
Where schema fits in local SEO
Schema is one supporting piece. The things that move local rankings most are still your Google Business Profile, your reviews, the relevance of your service pages and how close you are to the searcher. My local SEO guide for small businesses covers how those fit together, and the Google Business Profile optimisation checklist goes through the profile side in detail.
Think of schema as making sure the facts are tidy. Once the facts are tidy across your site, your profile and directories, Google has fewer reasons to doubt any of them.
The short version
Use JSON-LD, pick the most specific business type that's true, and fill in name, address, phone, URL, coordinates, hours and profile links. Make every value match your page and your Google Business Profile exactly. Test with the Rich Results Test and the Schema.org validator, then keep it updated whenever your details change.
If you'd like this set up correctly as part of a wider local SEO clean-up, take a look at my SEO services or send me a message with your site address.