跳转到内容

Schema embed

此内容尚不支持你的语言。

Your theme already tells Google some things about your store and products, through structured data (also called schema). Many themes leave out shipping, returns, a breadcrumb or store details. The Schema embed adds what’s missing.

It’s a Shopify theme app embed: you switch it on in the theme editor, it doesn’t change your theme files, and you can switch it off at any time. It’s the only part of Store Health that adds anything to your storefront; scans stay read-only.

You set it up on the Rich Results page, in the Schema embed tab. The Schema embed is available on paid plans.

Setting it up

  1. Switch it on in your theme. Click Switch on in theme editor, switch on the embed in the theme editor and save. Your theme code stays as it is.
  2. Add shipping and returns for each market (see below). You can fill shipping from your Shopify settings.
  3. Save and check what Google sees. The preview opens a page of your store and shows what the embed adds.

The embed works on your live theme. If you publish another theme where it isn’t switched on, your store log tells you that the details it added are gone from Google until you switch it on again.

Product details: two modes

  • Fill in what’s missing (the default): your theme keeps describing your products. The embed doesn’t add a second product description; shipping and returns are added once for the whole store.
  • Full product details: the embed describes your products itself, with rating, barcode, brand, variants, stock and extra fields such as color, size or material. In this mode, products on sale also get their old price, unit prices are added, products that keep selling while out of stock are marked as shipping when back in stock, and pre-order products show as pre-orders. One line in your theme has to be removed so Google doesn’t read every product twice (see below).

Under What your latest scan says, the app suggests the mode that suits your theme. If your theme already gives Google everything it asks for, filling in what’s missing is enough.

Star ratings come from Shopify’s standard review fields or, if your review app doesn’t fill them, from the app’s own fields; most popular review apps are supported. If your review app also adds its own product details to the page, switch that off in the app, or Google reads the product twice.

What gets added

You can switch off anything you don’t want. Something your theme already gives Google is skipped, so it’s never there twice.

  • Store details: name, logo, social accounts, shipping and returns. On every page.
  • Site name: the name Google shows above your home page.
  • Breadcrumb: “Home › Collection › Product” on products, collections, blog posts and pages.
  • Collections: the products on each collection page.
  • Blog posts: author, date and image of each post.
  • Product videos: on products that have a video.

Under Advanced you can also add a physical store (address and opening hours, for shops customers can visit) and a loyalty program, which Google can mention next to your prices in some countries. Most stores don’t need these.

Shipping and returns for each market

Google shows shipping and return details next to your products, per country. Each market from Shopify Markets gets its own rule, in its own currency. A country without a rule gets no shipping or return details, rather than wrong ones.

  • Shipping: the shipping cost, an optional free shipping threshold, and processing and delivery times in days. You can add more options, such as Express. Fill from Shopify’s shipping settings copies your rates; Shopify doesn’t keep processing and delivery times, so check those yourself. Rates a carrier calculates at checkout can’t be copied, so enter your usual rate.
  • Returns: whether you accept returns, the return window, the return cost (free, customer pays shipping, or a fixed fee) and how customers return items. Fill from Shopify’s return rules fills in the window. Shopify doesn’t share the return shipping fee with apps, so choose the cost yourself. Optional details include the return label, what the customer gets back, a restocking fee and holiday return windows.

Keep these in line with your shipping settings and refund policy; Google may compare them. If your shipping rates in Shopify change later, your store log tells you which rule no longer matches.

If your shipping and returns are set in Google Merchant Center (for example with the Google & YouTube app), Google uses those first. You don’t need rules here; if you add some, keep the amounts the same.

Checking what Google sees

In the preview, pick a page (your home page, your best-selling product, a collection or your latest blog post) and a market. Store Health reads the live page as Google does and shows what it gives, whether each part comes from your theme or the Schema embed, and whether the price matches Shopify’s for that country. Saved changes show there within a few seconds.

After you switch the embed on, the weekly Rich Results check shows how many pages can now show new details in Google.

Removing your theme’s product line (full mode only)

In full mode the embed describes your products, and your theme still does too. Removing one line from your theme fixes that, and the app shows you where it is:

  1. Open the file it names in the code editor.
  2. Find the line it shows and delete it. In some themes it’s a longer block: delete the whole <script type="application/ld+json"> block that contains it, or ask your theme developer.
  3. Save. Your next scan checks that the line is gone.

A theme update can bring the line back; the scan will tell you. You can go back to filling in what’s missing at any time, without touching your theme.

Switching it off

In the theme editor, open App embeds, switch off Schema from Store Health and save. Nothing else changes: your theme files are as they were, and the details the embed added are no longer on your pages.