How to fix missing schema localbusiness on Adobe Commerce (Magento)

Add LocalBusiness JSON-LD structured data to your store so search engines and AI answer engines can surface your business name, address, phone number, and hours in rich results and direct answers.

Steps for Adobe Commerce (Magento)

  1. SSH into your server (or use your hosting file manager) and navigate to your active theme directory, typically app/design/frontend/<Vendor>/<theme>/Magento_Theme/layout/.
  2. Open or create the file 'default_head_blocks.xml'.
  3. Add a block that renders a .phtml template containing your JSON-LD script tag, or directly inject the script via a CMS block.
  4. Alternatively, go to Admin → Content → Blocks → Add New Block. Paste your JSON-LD script there, then insert the block into your homepage or store's root template via Admin → Content → Pages → Homepage → Design → Layout Update XML using the referenceContainer method.
  5. Flush the Magento cache (System → Cache Management → Flush Cache Storage) and validate with Google's Rich Results Test.
Official Adobe Commerce (Magento) documentation ↗

What is missing schema localbusiness?

LocalBusiness schema is a block of machine-readable code (called structured data or schema markup) that you embed in your website to formally tell Google, Bing, and AI assistants exactly what your business is: its name, physical address, phone number, opening hours, and more. It uses a universal vocabulary defined at Schema.org so every search engine and AI tool reads it the same way. It sits invisibly inside your page's HTML and never changes what shoppers see — it only speaks to machines. Without it, search engines have to guess your business details from your page text, and they often get it wrong or skip rich features entirely.

LocalBusiness schema directly powers Google's Knowledge Panel, the map pack snippet, and voice-search/AI answers — all of which put your business in front of high-intent shoppers before they even click a result. Stores with complete schema are significantly more likely to appear in zero-click answer boxes and AI-generated responses (AEO — Answer Engine Optimization), driving brand visibility without needing a click. Missing or incomplete schema means a competitor who has it can outrank you in these rich placements even if your page content is identical. For stores with a physical location or local service area, this is one of the highest-leverage, lowest-effort SEO wins available.

See the complete Missing schema localbusiness guide for every platform and the full background.

Not sure if your Adobe Commerce (Magento) store has this?

Run a free SEOLZ scan — we’ll find missing schema localbusiness and every other issue across your whole site.

Scan my site free

Fix missing schema localbusiness on another platform