Sentinel StudioSentinel Studio
Available · 2026Start a project
← Journal·Strategy

Schema markup for Moroccan businesses: copy-paste templates for restaurants, hotels, and shops

Schema markup helps Google understand your business and show rich results. Copy-paste templates for Moroccan restaurants, hotels, riads, and local shops.

By Ayoub Kassimi·May 9, 2026·10 min read

Schema markup is structured data that you add to your website's HTML to help Google understand what your business is, where it is located, what it sells, and what customers think of it. When implemented correctly, it triggers rich results in Google Search — star ratings, price ranges, business hours, and review counts displayed directly in search results. For Moroccan businesses competing for local search visibility, schema markup is one of the highest-ROI technical SEO investments you can make.

What schema markup does for your business

Without schema, Google sees your website as text and images. With schema, Google sees structured information: your business name, address, phone number, opening hours, menu items, room rates, product prices, and aggregate review ratings. This structured data enables rich snippets — enhanced search results that display more information and get significantly higher click-through rates than standard results.

A restaurant in Marrakech with schema markup showing a 4.7-star rating, price range ($$), and cuisine type will get more clicks than the same restaurant without rich results — even if they rank in the same position.

LocalBusiness schema — for every Moroccan business

Every Moroccan business with a physical location should implement LocalBusiness schema. This tells Google your business name, address (including Morocco-specific formatting), phone number, opening hours, and geo-coordinates. The key fields: @type (Restaurant, Hotel, Store, etc.), name, address with streetAddress, addressLocality (Casablanca, Marrakech, etc.), addressRegion, postalCode, and addressCountry ("MA"), telephone in international format (+212...), openingHoursSpecification for each day, and geo with latitude and longitude.

Restaurant schema — for Moroccan restaurants and cafés

Restaurant schema extends LocalBusiness with food-specific fields. Add servesCuisine ("Moroccan", "Mediterranean", "French"), priceRange ("$$" or "50-200 MAD"), menu (URL to your online menu), and acceptsReservations. If you have reviews, add aggregateRating with ratingValue and reviewCount. This enables the rich restaurant cards that appear in Google Search and Maps.

Hotel and riad schema — for Moroccan accommodation

LodgingBusiness schema is critical for riads, hotels, and guesthouses. Key fields: starRating, checkinTime and checkoutTime, amenityFeature (pool, WiFi, parking, rooftop terrace), numberOfRooms, and pricing via priceRange. For riads specifically, use the "BedAndBreakfast" or "LodgingBusiness" type — there is no specific "Riad" type in Schema.org, but LodgingBusiness captures the essential information.

Product schema — for Moroccan online shops

If you sell products online, Product schema triggers rich results with prices, availability, and ratings. Essential fields: name, description, image, brand, offers with price, priceCurrency ("MAD"), and availability (InStock, OutOfStock), and aggregateRating if you have reviews.

FAQ schema — for service businesses

FAQ schema lets Google display expandable questions and answers directly in search results. For Moroccan service businesses (agencies, consultants, clinics), adding FAQ schema to your service pages with common questions increases your search result real estate dramatically. Each question-answer pair appears as an expandable accordion in Google results.

How to implement schema markup

Method 1 — JSON-LD in the page head (recommended). Add a script tag with type="application/ld+json" containing your structured data. This is the method Google recommends and the one we use on every site we build. In Next.js, this is added via the metadata API or a script component.

Method 2 — WordPress plugins. Yoast SEO and Rank Math can generate basic schema markup automatically. But they often miss industry-specific fields (menu URL for restaurants, amenities for hotels). You usually need to add custom schema manually even with plugins.

Verification: Use Google's Rich Results Test (search.google.com/test/rich-results) to validate your schema. Paste your URL and check that all structured data is detected without errors.

Common mistakes on Moroccan websites

Missing or wrong phone format. Always use international format: +212 followed by the number without the leading 0. Not 06xxxxxxxx but +2126xxxxxxxx.

Wrong currency. Use "MAD" as the priceCurrency, not "DH" or "dhs". Schema.org uses ISO 4217 currency codes.

Missing geo coordinates. Without latitude and longitude, your LocalBusiness schema is incomplete. Get your coordinates from Google Maps.

Fake reviews in schema. Adding fabricated aggregateRating data (a 5.0 rating with 500 reviews when you have 20) violates Google's guidelines and can result in a manual penalty. Only include real review data.

The impact on your search visibility

Schema markup does not directly improve your ranking position, but it dramatically improves your click-through rate. A search result with star ratings, prices, and business hours gets 20–30% more clicks than a plain text result. For Moroccan businesses competing in local search, this is a significant competitive advantage — especially since most competitors have no schema markup at all.

For a complete SEO strategy including schema, see our SEO guide for Morocco in 2026. If you need schema markup implemented on your website, let's get it done.

(- Next step)

Ready to build something that works?

We implement schema markup on every site we build — restaurants, hotels, shops, and service businesses.

Need schema markup on your site? →