Skip to content
bogl.ai

Fix guide

Structured data for a local business: how to add it

Structured data states your business name, address, phone and hours in a form machines read reliably. How to add it on Wix, Squarespace, WordPress, Shopify.

By bogl.ai · Updated

Check if your site has this problemFree, no sign-up · Score out of 100 · About 10 seconds

What the problem is

Structured data is a short block of code in your page, usually in a format called JSON-LD, that states facts about your business: name, address, phone number, opening hours and links to your profiles elsewhere. It uses the shared schema.org vocabulary, so search engines and other tools read it the same way. For a local business the type is LocalBusiness, or a more specific type such as Plumber or Restaurant.

We look for it on your homepage and check it has your name, address and phone number. The full report also checks that the name and phone number are the same across your pages.

Why it matters for AI search

Reading facts from ordinary page text is guesswork; structured data states them plainly. When your name, address and phone number are marked up the same way everywhere, tools can be surer they're describing the right business and how to reach it.

If different pages give different names or numbers, an AI tool may repeat an old or wrong one.

How to fix it

  1. Decide on one exact business name, one main phone number and one address, and use them everywhere: website, Google Business Profile and directories.
  2. Add a JSON-LD block like the one below to your homepage, with your own details. (The full report builds this block for you from what it finds on your site.)
  3. Only include facts that are true and shown to visitors on the page as well.
Example
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "LocalBusiness",
  "name": "Your Business Name",
  "url": "https://www.yourbusiness.co.uk/",
  "telephone": "+44 1234 567890",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "1 High Street",
    "addressLocality": "Bristol",
    "postalCode": "BS1 1AA",
    "addressCountry": "GB"
  },
  "openingHours": "Mo-Fr 09:00-17:00",
  "sameAs": ["https://www.facebook.com/yourbusiness"]
}
</script>

On your site builder

Wix

  • Wix adds basic LocalBusiness data from Settings → Business info, but only the name, address, logo and web address: not your phone number or opening hours.
  • For the full block, add it to the homepage's SEO settings: Advanced SEO → Structured Data Markup (JSON-LD only, under 7,000 characters).

Squarespace

  • Squarespace adds its own business and organisation data, which you can't edit. To add the full block, paste it into Code Injection (the homepage's own header, or the site-wide header); Code Injection needs a Core, Plus or Advanced plan.

WordPress

  • Yoast SEO's free settings cover your name, logo and social profiles but not your address or phone; Rank Math's Local SEO covers address, phone and opening hours.
  • Or paste the full block into the header with a plugin such as WPCode (Insert Headers and Footers). On WordPress.com, adding scripts needs a plan with plugins.

Shopify

  • Paste the block into your theme's theme.liquid, just before </head> (Online Store → Themes → … → Edit code). Duplicate the theme first; theme updates can remove code edits, and your theme may already include some structured data.

Menus change from time to time. If a setting has moved, your site builder's help pages will have the current steps.

How to check it's fixed

  • Test the homepage with the Schema Markup Validator (validator.schema.org) or Google's Rich Results Test, and make sure the block reads without errors.
  • Run the free check on bogl.ai again. Results are kept for 24 hours, so if you checked the same site earlier today you'll see the earlier result; check again tomorrow. The “Business facts AI can use” score shows what we found.

Related

Fill in your business details and copy ready-made LocalBusiness code: LocalBusiness schema generator

Questions

What structured data does a local business need?

Google lists two required properties for LocalBusiness: name and address. It recommends others, including telephone, url, geo, openingHoursSpecification and priceRange.

How do I test my structured data?

Google says to validate your code with its Rich Results Test, and you can use the URL Inspection tool in Search Console to see how Google sees the page.

Will adding structured data get me into Google's rich results?

Not guaranteed. Google says it does not guarantee that features using structured data will show up in search results.

Free check

Check your whole website

The free check looks at the main things that affect whether AI tools can find and read your website: crawlers, bot protection, readable text, business details, titles and more. You get a score out of 100 and your top 3 issues in about 10 seconds.

Want the fixes ready to paste? The £39 full report checks up to 15 pages and gives you every fix, filled in for your site. See a sample report.