support@schemaclinic.com Free JSON-LD checker Free schema generator Shopify App Store
Schema guide

Shopify JSON-LD generator vs manual schema: when to use each

You can write schema into your Shopify theme by hand, or let an app generate it. Both work. The right choice depends on your skills, how often your store changes and what is already there.

Short answer: hand-coded JSON-LD in the theme gives full control and no monthly cost, but it needs Liquid skills, breaks easily on theme changes and is often forgotten. A generator app is quicker and keeps markup consistent, but costs a subscription and can duplicate the theme's schema if you do not check first. Whichever you choose, audit what is already on the store, keep one source per schema type, and link the blocks with @id.

Manual schema in the theme: pros and cons

If you go manual, start from a tested Shopify JSON-LD template rather than a blank file: our guide on how to add schema markup to Shopify has Product and Organization templates in Liquid.

Manual schema means writing JSON-LD into Liquid files such as theme.liquid or the main product section, using Liquid objects to fill in the values:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": {{ product.title | json }},
  "sku": {{ product.selected_or_first_available_variant.sku | json }},
  "offers": {
    "@type": "Offer",
    "price": {{ product.price | divided_by: 100.0 | json }},
    "priceCurrency": {{ cart.currency.iso_code | json }}
  }
}
</script>

Pros: full control over every property; no app subscription; no extra scripts; output is server-side.

Cons: you need to know Liquid and Google's requirements; a missed | json filter on a product title with a quote mark produces unparsable structured data; theme updates or a theme switch can wipe the code or leave the theme's own schema running alongside it; and it is easy to forget the code exists.

Manual schema makes sense if you have a developer, a stable theme, and needs a generator does not cover, such as FAQPage or LocalBusiness.

A Shopify schema generator app: pros and cons

A generator app builds JSON-LD from your Shopify data and adds it to the store, usually through a theme app embed or a script.

Pros: no code; consistent markup across every product; updates automatically as prices and stock change; survives theme updates if it is added through an app embed rather than edited theme files.

Cons: a monthly cost; less control over unusual properties; and the big one, many apps add their schema on top of whatever the theme already outputs, so you end up with duplicates. Apps that inject schema with JavaScript also carry a risk Google itself notes: its documentation says dynamically generated Product markup can make Shopping crawls less frequent and less reliable.

The connected JSON-LD advantage

Whichever way you build it, the best schema is connected. Each entity gets an @id and other blocks point to it rather than repeating it:

{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Organization",
      "@id": "https://example.com/#organization",
      "name": "Example Ltd",
      "url": "https://example.com/"
    },
    {
      "@type": "WebSite",
      "@id": "https://example.com/#website",
      "url": "https://example.com/",
      "publisher": { "@id": "https://example.com/#organization" }
    }
  ]
}

This is perfectly possible by hand, but it takes discipline to keep the IDs consistent across every template. It is one area where a generator saves real time.

Cost: developer time vs subscription

A developer can add core schema to a theme in a few hours. The ongoing cost is what catches people out: re-checking after theme updates, adding new fields as Google's requirements change, and fixing things when a new app adds its own schema. If you pay for that work, a few hours a year can cost more than an app subscription. If you do it yourself and enjoy it, manual is cheaper.

Apps are a predictable monthly cost. Check what each one covers, whether it removes or works around the theme's schema, and what happens to the markup if you uninstall.

How to decide

  • Your theme's schema is clean and complete: leave it. Add a review app for ratings and stop there.
  • The theme's schema is incomplete or broken, and you have a developer: fix it in the theme, then audit after each update.
  • You do not want to edit code: use a generator, but switch off or work around the theme's duplicate blocks first.
  • You need types a generator does not output (FAQPage, LocalBusiness, VideoObject, return or shipping policies): add those by hand, or use Google Merchant Center and Search Console settings for shipping and returns.

Mixing is fine. A generator for the core types plus a hand-coded LocalBusiness block works well, as long as no type is output twice.

What to check before choosing a generator app

Schema apps differ more than their listings suggest. Before installing one, find out:

  • Which types it outputs, and which it does not.
  • What it does about your theme's schema. Does it detect it, replace it, or simply add more?
  • How it adds markup: server-side through an app embed, or with JavaScript after the page loads.
  • Whether the blocks are linked with @id, or output as separate islands.
  • What happens when you uninstall. Does the markup stop cleanly, or does code stay behind in your theme files?
  • The price and whether the features you need are on the plan you are looking at.

Our comparison of Shopify schema apps sets these out side by side.

Keeping hand-written schema healthy

If you go the manual route, a few habits prevent most problems:

  • Keep all custom schema in one snippet file, such as snippets/custom-schema.liquid, so it is easy to find and copy to a new theme.
  • Comment the file with what it outputs and why, for whoever edits the theme next.
  • Re-test with the Rich Results Test after every theme update and every new app.
  • Check Search Console's structured data reports once a month.
  • Re-read Google's documentation once or twice a year. Requirements change, and features such as FAQ and HowTo rich results have been restricted or removed.

Audit before you generate

The step people skip is finding out what is already there. Install a generator on a store whose theme already outputs Product schema, and every product page now has two. Run an audit first: see our schema audit guide and duplicate Product schema.

Schema Clinic's approach

Schema Clinic is built as audit first, generate second. Its audit finds every block on the store, from the theme, apps and manual code, and flags duplicates and conflicts. On the Pro plan ($19.99 a month) its generator outputs connected JSON-LD, linked by @id, for Organization, WebSite (with SearchAction), Product (offers, brand, identifiers, images and ratings where review data exists), Article, BreadcrumbList and CollectionPage with ItemList.

It deploys through a theme app embed called "Schema Clinic": no theme code is edited, the output is server-side, and switching the embed off reverts it. It does not generate FAQPage, VideoObject, LocalBusiness, return policy, shipping or ProductGroup markup. If you just want to draft a snippet to paste in yourself, try our free schema markup generator.

Questions people ask

Is it safe to edit schema in my Shopify theme?
Yes, if you duplicate the theme first and test the copy. Always output Liquid values through the json filter so quotes and special characters do not break the JSON.
Will a schema app conflict with my theme?
It can. If the theme and the app both output Product or Organization schema, you get duplicates. Check what the theme outputs before installing, and turn off one of the two sources.
Do theme updates remove manual schema?
Updating a theme to a new version usually means a fresh copy of the theme files, so custom code has to be copied across again. Schema added through an app embed is not affected.
Is generated schema worse for SEO than hand-written schema?
No. Google reads the JSON-LD, not how it was made. What matters is that it is accurate, complete, matches the visible page and is not duplicated.
Can I use a generator and manual code together?
Yes, as long as each schema type comes from only one source. For example, an app for Product and Organization, and hand-written LocalBusiness on the contact page.

See what Google sees on your store

Run an audit in minutes. Every schema block, every error and duplicate, with its source.

Install Schema Clinic