Customizing product data for sales channels

You can create custom listings for products that you sell on sales channels such as Google & YouTube or Facebook & Instagram.

Choose which data from your store is used for specific product fields on different channels, such as the title, brand, or age group.

Eligible sales channels have a default source for each of their fields. You can view the defaults on the channel's Channel mapping page. For example, a channel's brand field might use your product vendor by default.

If your product data is complete, then you might not need to change anything. You can use channel mapping when you want a channel to use different data.

Your product details in your online store don't change when you use channel mapping. A field mapping change affects only the channel that you select. For example, you can send a shorter title that you store in a metafield to one sales channel, but keep your full product title on your online store.

Considerations for using channel mapping

Before you change mapping fields for your sales channels, review the following considerations:

  • Channel mapping is available for sales channels that use contextual product data. Most sales channels are eligible, but some aren't, such as Shop and Shopify Collective. You can also use channel mapping to set your product data that's used in Shopify Catalog.
  • A channel field mapping applies to all of the products that you publish to that channel. You can't set a different field mapping for a specific product category.
  • A field mapping changes which product data source a channel uses. If you change the value in a source, such as a metafield, then the new value is sent to every channel that uses that source.
  • You can choose a product field, a variant field, or a metafield as a data source for channel mapping. Only sources with a data type that the field accepts are available. Money fields, such as price, can't be used as sources for channel mapping.
  • For single-line and multi-line text fields in channel mapping, you can combine product data, metafields, and text that you enter. For example, you can combine your product vendor and your product title. You can't combine values in other field types, such as media fields. You can choose an unstructured metafield as a field's only source, but you can't use it in a combined value.
  • The product preview in channel mapping displays the values that a sales channel receives from your store. It doesn't tell you whether the channel approves or displays your listing.
  • After you save a channel mapping change, the sales channel's product feed is updated. Your changes can take some time to display on the channel.
  • If you added Google product data, such as age group or gender, in the Google & YouTube sales channel, then that data is stored in metafields with the mm-google-shopping namespace. The Google & YouTube mappings already use these metafields, so you don't need to change anything.

How a channel field gets its value

Sources are used for a channel field in the following order:

  1. Product or Variant: An override, which is a value that you entered for that product or variant in the bulk editor. Only a field that combines values or uses Liquid code can have an override.
  2. Mapping: The source that you choose for the field on the channel mapping page.
  3. Default: The default source that the channel uses when you don't choose a source.

If the source that you choose has no value for a product, then the channel's default source is used for that product. For example, if you map a title field to a metafield, and a product doesn't have a value in that metafield, then the channel receives the product title. This also applies to Shopify Catalog.

Open the channel mapping page

You can open a sales channel's Channel mapping page from the following areas of your Shopify admin.

Steps:

Sales channels
  1. From your Shopify admin, go to Settings > Sales channels.
  2. Click the sales channel that you want to use.
  3. In the Channel mapping section, click Edit mappings.
Markets
  1. From your Shopify admin, go to Markets.

  2. Click a market that includes the sales channel that you want to use.

  3. In the Channel mapping section, click the mapping link for the sales channel, such as Google & YouTube mapping.

Products
  1. From your Shopify admin, go to Products.

  2. Click a product that you want to manage channel mapping for.

  3. Click the channel publishing Channels icon.

  4. In the Manage publishing dialog, hover over the sales channel that you want to use, and then click the Channel mapping icon.

To work with a different sales channel, click the current channel name on the mapping page, and then select another sales channel or Shopify Catalog.

Change the mapping source for a channel field

You can change the source for a field when a channel needs different data than its default source provides. Your change applies only to the channel that you select.

Steps:

  1. Open the Channel mapping page for a sales channel.
  2. Optional: To view only the fields that the channel requires, click All fields, and then click Required.
  3. In the field that you want to change, click the existing source.
  4. From the drop-down menu, select the new source that you want to use.
  5. Optional: Preview a product to check the value that the channel receives.
  6. Click Save.

Combine mapping values in a channel field

For single-line and multi-line text fields, you can combine more than one source with some text that you enter. For example, for a title field, you can combine a product title, a hyphen, and the product vendor. You can't use unstructured metafields in a combined value.

Steps:

  1. Open the Channel mapping page for a sales channel.
  2. In the text field that you want to change:
    1. Click the plus icon to add each source that you want to use.
    2. Optional: To remove an existing source from the field, click the source, and then click Delete in the drop-down menu.
    3. Enter any text that you want to use with your sources.
    4. Optional: To rearrange the order of your entries, hover over a source, and then click and drag the Drag icon to move the source to your required position.
  3. Optional: Preview a product to check the combined value that the channel receives.
  4. Click Save.

Edit a channel field's value as Liquid code

For single-line and multi-line text fields, you can edit a channel field's value as Liquid code instead of using the visual editor. This works whether the field uses one source or combines several sources with text. In Liquid code, you can use Liquid filters to change how a value is displayed, such as changing text to uppercase or shortening it. You can also reference a field of a metaobject that a metafield refers to, which you can't select in the visual editor.

Each source in Liquid code is a Liquid object path. Product fields start with product, variant fields start with variant, and metafields use their namespace and key, such as product.metafields.custom.material. For example, a title field that combines the product title in uppercase, a hyphen, and the product vendor uses the following code:

{{ product.title | upcase }} - {{ product.vendor }}

You can use the following Liquid filters: append, capitalize, date, default, downcase, escape, first, join, last, prepend, replace, size, strip, truncate, and upcase. You can't use Liquid tags, such as if, for, or assign. A value can use up to 10 different sources.

Steps:

  1. Open the Channel mapping page for a sales channel.
  2. In the text field that you want to change:
    1. Click the Edit Liquid icon.
    2. Edit the Liquid code. The value must include at least one source.
    3. Optional: To add a source to the code, place your cursor where you want the source, click the Insert data source icon, and then select a source. The source's Liquid path is added at your cursor.
    4. Optional: To return to the visual editor, click the Use visual editor icon.
  3. Optional: Preview a product to check the value that the channel receives.
  4. Click Save.

If the Liquid code isn't valid, or it uses a filter or tag that isn't supported, then an error is displayed for the field, and you can't save the change until you fix or remove the code.

Return a channel field to its default mapping source

You can remove a mapping change to use the channel's default source for a channel field again.

Steps:

  1. Open the Channel mapping page for a sales channel.
  2. In the channel field that you want to reset, remove every entry that you added:
    1. Click each source that you added, and then click Delete in the drop-down menu.
    2. Delete any text that you entered, such as a hyphen or a space between sources.
  3. Check that the field displays only the channel's default source, and then click Save. If the field has no default source, then it's empty. If any text that you entered stays in the field, then the channel uses that text for every product instead of the default source.

Preview a product's channel mapping change

Use the product preview to check the values that a sales channel receives for a specific product and variant. The preview includes changes that you haven't saved yet.

You can preview any product in your store, including draft, archived, and unpublished products. Previewing a product doesn't publish it to the sales channel.

Updates to the preview are paused when you change or remove more than 25 product field mappings without saving the channel mapping page. You can continue to edit your channel mappings, and then save your changes.

Steps:

  1. Open the Channel mapping page for a sales channel.
  2. In the product preview, click the arrow down icon for the currently selected product.
  3. In the View products dialog, select a product, and then click View product.
  4. Optional: To preview a specific variant, select the variant's option values.
  5. Optional: To review where a product value comes from, hover over the value in the preview, and then click the Source: [source] tag for the field. The sources for the field are displayed, such as Default and the channel's mapping.
  6. Optional: To edit the product itself, click Edit. After you save the product, the channel mapping preview is updated.

Check field coverage for a channel

Field coverage is the percentage of products that have a value for a channel field. For a variant field, it's the percentage of variants. For a sales channel, the count includes the active products that are published to the channel. For Shopify Catalog, it includes all of your products. Use field coverage to find fields that are missing values, especially the fields that a channel requires.

Field coverage counts the values from your saved mappings and from the channel's default sources. After you change a source, save the page to update the field's coverage. If N/A is displayed instead of a percentage, then coverage can't be calculated for that field, for example because values from the field's source can't be counted.

Steps:

  1. Open the Channel mapping page for a sales channel.
  2. Click the percentage next to a field.
  3. In the Field coverage details, review the following information:
    • Required, Recommended, or Optional: Whether the channel requires the field.
    • Mapped: The number of products that have a value. This number is divided into the products that get the value from the channel's Default source, the products that get it from your mapping, and the products that use an override.
    • No value: The number of products that don't have a value.
  4. Optional: To add the missing values, click Fix [number] products or Fix [number] variants. The bulk editor opens with the field's column for the products that are missing a value. Learn more about editing channel field values in the bulk editor.

Edit channel field values in the bulk editor

If a channel field is missing values, then you can add them for many products in the bulk editor. You open the bulk editor from the field's field coverage details, and it includes only the products that are missing a value for the field. The field's column is named with the channel and the field, such as Google & YouTube: Size.

A cell that uses the channel's mapping is empty and displays the mapped value. When you select the cell, the sources that the mapping uses are displayed. You can click a source to go to the cell that holds its value.

You can enter a different value for a specific product. What happens to the value depends on how the field is mapped:

  • Combined values or Liquid code: The value is an override. It replaces the mapped value for that product only on the channel that you selected. Your product details don't change, and your other channels and Shopify Catalog don't change unless they use this mapping's metafield as their source.
  • A metafield: The value is saved in the metafield for that product or variant. Anything else that uses the metafield, such as other sales channels, Shopify Catalog, or your theme, also receives the new value.
  • A product field, such as the product title, or the channel's default source: You can't save a value in the channel's column. If you try, then Map this field with an expression to override it here. is displayed. Change the value in its source instead. You can click a source in the cell to go to the cell that holds its value.

To change the value for a product that already has a value, preview the product, and then click Edit to open the product page.

Steps:

  1. Open the Channel mapping page for a sales channel, click the percentage next to a field, and then click Fix [number] products.
  2. Take any of the following actions:
    • To enter a different value for a product, select the cell, click the Override the mapped value icon, and then enter a new value. You can also select the cell and start typing.
    • To remove a value that you entered and use the mapped value again before you save, select the cell, and then click the Use the mapped value icon.
  3. Click Save.

Understanding messages on the channel mapping page

The following messages can display on the channel mapping page or in the product preview:

Messages that can display on the Channel mapping page, what they mean, and how to resolve them.
MessageMeaningResolution
[Field] doesn't support the selected source's data type. Choose another source.The source has a data type that the channel field doesn't accept, such as a number source for a text field.Choose a source with a compatible data type, or return the channel field to its default source.
The saved source is no longer available. Choose another source.The source was deleted or can no longer be used as a source.Choose a different source, or return the channel field to its default source.
[Field] can't use variant data for a product field. Choose another source.A product field uses a variant source, such as a variant metafield.Choose a product source for the field.
This source isn't available for [Field]. Choose another source.The field can't read data from the source, such as product media for a variant field.Choose a different source for the field.
Access to the metafield is restricted. Choose a different metafield.The sales channel doesn't have access to the metafield.Choose a different metafield.
Your store has reached its metafield definition limit. Delete metafield definitions you no longer use, or choose a source that doesn't need a new definition, then save again.Saving the mapping needs a new metafield definition, but your store already has the maximum number of metafield definitions. The field also displays This mapping needs a new metafield definition, but your store has reached its limit.Click Manage product metafields or Manage variant metafields, and then delete the metafield definitions that you no longer use. You can also choose a source that doesn't need a new definition. Then save again.
[Metafield] isn't set up in your store yetThe field uses a category metafield that your store hasn't used yet.Add a value for the metafield to a product. The metafield is then set up in your store.
Your store has no productsYour store doesn't have any products to preview.Add a product to your store, and then preview it.