How do I add schema markup for a local business?

Schema Markup (or “Structured Data”) is a standardized code vocabulary that helps search engines strictly understand your content.

Without Schema, Google has to “guess” that a string of numbers is a phone number. With Schema, you explicitly tell Google: “This specific string is our Customer Service number.” This clarity helps you qualify for Rich Snippets and enhances your Knowledge Panel.

1. Choose the JSON-LD Format

There are different ways to write schema (Microdata, RDFa), but Google explicitly prefers JSON-LD (JavaScript Object Notation for Linked Data).

  • Why? It is a single block of code you can paste into your site header, rather than messy code you have to wrap around every individual HTML element.

2. Generate Your Code

Do not try to write this code from scratch; it is easy to make syntax errors. Use a trusted generator tool.

  • Recommended Tool: The Merkle Schema Markup Generator or TechnicalSEO.com.
  • Action: Select “Local Business” from the dropdown menu and fill in your details (Name, Image URL, Address, Opening Hours, Coordinates).

3. The Code Structure (Example)

Here is what the code looks like. You can customise this template if you are comfortable editing code.

📋
filename.json
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Advertising",
  "name": "UTDS Optimal Choice",
  "image": "https://utds.al/logo.png",
  "@id": "",
  "url": "https://utds.al",
  "telephone": "+355 69 291 3855",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "123 High Street",
    "addressLocality": "London",
    "postalCode": "SW1A 1AA",
    "addressCountry": "GB"
  },
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": 51.5074,
    "longitude": -0.1278
  },
  "openingHoursSpecification": {
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": [
      "Monday",
      "Tuesday",
      "Wednesday",
      "Thursday",
      "Friday"
    ],
    "opens": "09:00",
    "closes": "17:00"
  }
}
</script>

4. Install the Code

Once you have your code snippet:

  • WordPress Users: The easiest method is to use a plugin like WPCode (formerly Insert Headers and Footers).
    1. Install the plugin.
    2. Go to “Code Snippets” > “Header & Footer”.
    3. Paste your JSON-LD script into the Header section.
    4. Save.
  • Custom Sites: Send the code to your developer and ask them to place it inside the <head> tags of your Homepage HTML.

5. Validate Your Work (Critical)

One missing comma will break the entire code block. You must test it.

  • Tool: Go to the official Google Rich Results Test.
  • Action: Enter your homepage URL (or paste the code snippet directly).
  • Success: Look for a green checkmark saying “Local Business detected.”

 

Clarification vs. Ranking

It is important to understand that Schema is not a “magic switch” for higher rankings, but it is a “clarity switch.”

Schema helps Google be confident about your location and hours. When Google is confident, it is more likely to show your business in the Local Pack for relevant queries.

Last Updated 2nd February 2026.

Was this article helpful?

We publish our Knowledge Base to help individuals and businesses resolve common issues across websites, advertising platforms, Salesforce and other digital systems.

We regularly review and update our guides, but the platforms, software and services covered can change without notice. As a result, screenshots, settings, features or recommended processes may differ from those available when an article was last reviewed.

The information provided is general guidance and should not be treated as advice specific to your systems or circumstances. UTDS Optimal Choice cannot accept responsibility for errors, data loss, service disruption or other issues resulting from changes made by following these guides.

If you are unsure about any of the steps, particularly where a change could affect live systems, data, tracking or business processes, we recommend speaking to us before making the change. Our team can review your specific setup and provide advice based on the current platform and configuration.

Time for some professional support?

Our team area ready to help. As one of the few digital agencies that is a registered Salesforce Consulting Partner and Google Partner Agency, UTDS Optimal Choice is expertly positioned to support you across your entire digital landscape.