Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save devinschumacher/e2f698ca84bd8947c220e5fbc19fc5aa to your computer and use it in GitHub Desktop.

Select an option

Save devinschumacher/e2f698ca84bd8947c220e5fbc19fc5aa to your computer and use it in GitHub Desktop.
Generalized Schema Template for Local SEO Service Pages
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "WebPage",
"@id": "https://www.yourwebsite.com/your-city-service-page/#WebPage",
"url": "https://www.yourwebsite.com/your-city-service-page/",
"headline": "Expert [Main Service] in [City, ST] | [Business Name]",
"description": "We provide expert [main service], [secondary service], and [tertiary service] to residents and businesses in [City, ST] and the surrounding areas.",
"specialty": "We are a local, family-owned business specializing in [Your Specialty] for the [City] area.",
"primaryImageOfPage": {
"@id": "https://www.yourwebsite.com/your-city-service-page/#PrimaryImage"
},
"contentLocation": [
{
"@type": "Place",
"name": "[City, ST]",
"sameAs": "[Wikipedia-URL-for-Your-City]" <!-- Find the Wikipedia page for your city and link it here. -->
}
],
"author": {
"@id": "https://www.yourwebsite.com/your-city-service-page/#Person"
},
"creator": {
"@id": "https://www.yourwebsite.com/your-city-service-page/#Business"
},
"copyrightHolder": "[Business Name]",
"copyrightYear": "2024",
"citation": [
"[URL-to-Relevant-Video-on-YouTube]", <!-- Link to a video about your service or business. -->
"[URL-to-Relevant-Audio-or-Post-on-Another-Site]" <!-- Demonstrates authority on other platforms. -->
],
"inLanguage": "en-US",
"keywords": [
"[service] [city]",
"[service] near me",
"[city] [service]",
"[secondary service] [city]"
],
"mainEntityOfPage": [
"https://www.yourwebsite.com/your-city-service-page/",
"https://www.google.com/maps?cid=[Your-Google-Business-Profile-CID]", <!-- **CRITICAL:** Replace with your GMB CID. Find it using a tool like the "GatherUp Google Review Link Generator". -->
"https://www.google.com/search?kgmid=[Your-Knowledge-Graph-ID]" <!-- **CRITICAL:** Find this by searching for your business. If a knowledge panel appears, click the "share" icon; the link will contain the kgmid. -->
],
"significantLink": "https://www.yourwebsite.com/your-city-service-page/#service-anchor",
"significantLinks": [
"https://www.yourwebsite.com/services/service-1/",
"https://www.yourwebsite.com/services/service-2/",
"https://www.yourwebsite.com/services/service-3/"
],
"about": [
{
"@type": "Thing",
"name": "[main service]",
"sameAs": [
"[Wikipedia-URL-for-Service-Concept]",
"[Google-Search-URL-with-KG-MID-for-Service-Concept]" <!-- Search Google for the service; copy the share link from the knowledge panel. -->
]
},
{
"@type": "Thing",
"name": "[city]",
"sameAs": [
"[Wikipedia-URL-for-Your-City]",
"[Google-Search-URL-with-KG-MID-for-City]"
]
}
<!-- Add more "Thing" objects for every relevant concept (e.g., "repair", "installation", "emergency service"). -->
],
"mentions": [
<!-- This is similar to "about". List all related concepts and link them to their authoritative entities. -->
],
"isPartOf": {
"@id": "https://www.yourwebsite.com/#Website"
},
"hasPart": [
{
"@id": "https://www.yourwebsite.com/your-city-service-page/#Faq"
}
],
"lastReviewed": "2024-10-26"
},
{
"@type": "FAQPage",
"@id": "https://www.yourwebsite.com/your-city-service-page/#Faq",
"mainEntity": [
{
"@type": "Question",
"name": "Why Choose [Business Name]?",
"acceptedAnswer": {
"@type": "Answer",
"text": "As a local, family-owned business, we are deeply committed to our community. We provide outstanding, reliable service tailored to the specific needs of our neighbors in [City]."
}
},
{
"@type": "Question",
"name": "What areas do you serve?",
"acceptedAnswer": {
"@type": "Answer",
"text": "We proudly serve [City], [Neighboring City 1], [Neighboring City 2], and the greater [County Name] area."
}
}
]
},
{
"@type": "[Service]Business", <!-- E.g., HVACBusiness, Plumber, Electrician, RoofingContractor -->
"@id": "https://www.yourwebsite.com/your-city-service-page/#Business",
"additionalType": ["LocalBusiness", "Organization"],
"name": "[Business Name]",
"alternateName": "[Alternate Business Name]",
"legalName": "[Full Legal Business Name, LLC/Inc]",
"description": "Your reliable local expert for all [service] needs in [City]. We offer same-day service, free estimates, and warranties on our work. With over [X] years of experience, we are your trusted choice.",
"image": {
"@id": "https://www.yourwebsite.com/your-city-service-page/#PrimaryImage"
},
"slogan": "[Your Company Slogan]",
"knowsLanguage": ["en-US", "es"],
"naics": "[Your_NAICS_Code]", <!-- Find your industry's NAICS code online. e.g., 238220 for HVAC. -->
"priceRange": "$$",
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.9",
"reviewCount": "158"
},
"review": [
{
"@type": "Review",
"reviewBody": "[Business Name] is the best! Their team was professional, on-time, and fixed our issue quickly. Highly recommended for anyone in [City] needing [service].",
"author": {
"@type": "Person",
"name": "[Customer Name]"
},
"reviewRating": {
"@type": "Rating",
"ratingValue": "5"
}
}
],
"knowsAbout": [
<!-- Repeat the same "Thing" list from the WebPage schema to reinforce your expertise. -->
],
"openingHoursSpecification": {
"@type": "OpeningHoursSpecification",
"dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"],
"opens": "00:00",
"closes": "23:59"
},
"telephone": "+1-XXX-XXX-XXXX",
"email": "info@yourwebsite.com",
"address": {
"@type": "PostalAddress",
"streetAddress": "[123 Main Street]",
"addressLocality": "[City]",
"addressRegion": "[ST]",
"postalCode": "[XXXXX]"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": "XX.XXXXXX",
"longitude": "-XX.XXXXXX"
},
"areaServed": {
"@type": "AdministrativeArea",
"@id": "https://www.yourwebsite.com/your-city-service-page/#ServiceArea",
"geo": {
"@type": "GeoShape",
"postalCode": [
"[XXXXX]",
"[XXXXX]",
"[XXXXX]"
]
},
"containsPlace": [
{
"@type": "City",
"name": "[City], [ST]",
"url": "[Google-Maps-URL-for-City]"
},
{
"@type": "City",
"name": "[Neighboring City 1], [ST]",
"url": "[Google-Maps-URL-for-Neighboring-City-1]"
}
]
},
"founder": {
"@id": "https://www.yourwebsite.com/your-city-service-page/#Person"
},
"makesOffer": {
"@type": "Offer",
"itemOffered": [
{
"@id": "https://www.yourwebsite.com/your-city-service-page/#service-1"
},
{
"@id": "https://www.yourwebsite.com/your-city-service-page/#service-2"
}
]
},
"mainEntityOfPage": [
<!-- Repeat the critical mainEntityOfPage from the WebPage schema here. -->
]
},
{
"@type": "Service",
"@id": "https://www.yourwebsite.com/your-city-service-page/#service-1",
"name": "[Name of Service 1, e.g., Emergency AC Repair]",
"description": "Our expert technicians provide fast and reliable emergency [service 1] solutions.",
"url": "https://www.yourwebsite.com/services/service-1/",
"provider": {
"@id": "https://www.yourwebsite.com/your-city-service-page/#Business"
},
"areaServed": {
"@id": "https://www.yourwebsite.com/your-city-service-page/#ServiceArea"
},
"serviceType": "[Name of Service 1]"
},
{
"@type": "Service",
"@id": "https://www.yourwebsite.com/your-city-service-page/#service-2",
"name": "[Name of Service 2, e.g., Duct Cleaning]",
"description": "Improve your indoor air quality with our professional [service 2] services.",
"url": "https://www.yourwebsite.com/services/service-2/",
"provider": {
"@id": "https://www.yourwebsite.com/your-city-service-page/#Business"
},
"areaServed": {
"@id": "https://www.yourwebsite.com/your-city-service-page/#ServiceArea"
},
"serviceType": "[Name of Service 2]"
},
<!-- Create a separate "Service" node for EACH service you offer. -->
{
"@type": "Organization",
"@id": "https://www.yourwebsite.com/#Website",
"url": "https://www.yourwebsite.com",
"name": "[Business Name]",
"logo": "https://www.yourwebsite.com/wp-content/uploads/logo.png",
"sameAs": [
"[Your-Facebook-URL]",
"[Your-Twitter-URL]",
"[Your-YouTube-Channel-URL]"
]
},
{
"@type": "ImageObject",
"@id": "https://www.yourwebsite.com/your-city-service-page/#PrimaryImage",
"url": "https://www.yourwebsite.com/wp-content/uploads/service-in-city.jpg",
"caption": "A photo of our team providing [service] in [City].",
"description": "Our expert [service] contractor working on a project in [City, ST]."
},
{
"@type": "Person",
"@id": "https://www.yourwebsite.com/your-city-service-page/#Person",
"name": "[Founder/Owner Name]",
"url": "[URL-to-Founder's-LinkedIn-or-About-Page]",
"image": "https://www.yourwebsite.com/wp-content/uploads/owner-photo.jpg",
"description": "Owner of [Business Name], a company specializing in [service] for the [City] area.",
"jobTitle": "Owner & Lead Technician",
"worksFor": {
"@id": "https://www.yourwebsite.com/#Website"
},
"award": [
"Best of [City] [Year]",
"Top-Rated Local Pro on [Platform]"
],
"knowsAbout": [
"[Service 1]",
"[Service 2]",
"[Relevant Skill]"
]
}
]
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment