Search by Algolia
All collections > Configure your Product Feed > Custom Labels (Premium feature)

Custom Labels (Premium feature)

This is powerful stuff. You can use custom labels to enhance your ads or advanced product set segmentation.

Facebook lets you set up to five custom labels for each item/product in your product catalog. The app has multiple ways to set those custom labels

Via Google Shopping Sales Channel #

You can re-use the custom labels you have set with the Google Shopping Sales Channel.

Manually set custom labels #

To input your custom_label data you need to attach corresponding metafields to your shopify shop, products or variants.

metafield namespacemetafield key
facebookcustom_label_0
(or custom_label_1, custom_label_2, custom_label_3 or custom_label_4)

There are three levels where you can specify your custom labels.

  1. Shop level
  2. Product level
  3. Variant level

The more specific/higher levels override the less specific/lower levels.

  • If you specify a label on the shop level, every product in your shop will have this label
  • If you specify a label on the product level, every variant of this product will have the label – overriding the shop level label (if it is set)
  • If you specify a label on the variant level, just this variant will have the label – overriding the product or shop level label (if it is set)

Setting custom labels with Shopify's bulk editor #

You can use Shopify’s bulk editor to edit those fields:

  1. Make sure you are logged into you Shopify admin.
  2. Access bulk editor by adding the following string after your myshopify-domain in your browsers URL bar.
    1. For setting custom labels on a product level append
      /admin/bulk?resource_name=Product&edit=metafields.facebook.custom_label_0:string,metafields.facebook.custom_label_1:string,metafields.facebook.custom_label_2:string,metafields.facebook.custom_label_3:string,metafields.facebook.custom_label_4:string
    2. For setting custom labels on a variant level append:
      /admin/bulk?resource_name=ProductVariant&show=image,full_title&edit=metafields.facebook.custom_label_0:string,metafields.facebook.custom_label_1:string,metafields.facebook.custom_label_2:string,metafields.facebook.custom_label_3:string,metafields.facebook.custom_label_4:string

For now, to set a custom label on the shop level you would have to use one of the many third party meta field editor apps out there, e.g. shopifyfd.

Technical deep dive: Rules for setting the custom labels #

This is how we determine what to put int the custom_label fields. We look for metafields that have a key custom_label_0, custom_label_1, custom_label_2, custom_label_3 or custom_label_4.

  1. if there is a metafield in the namespaces “facebook” of the variant - we’ll use that
  2. else if there is a metafield in the namespaces “facebook” of the product - we’ll use that
  3. else if there is a metafield in the namespaces “mm-google-shopping” of the product - we’ll use that
  4. else if there is a metafield with the key in the namespaces “google” of the product - we’ll use that