Flexify Flexify

Custom Labels

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

Custom labels are used to add information to feed items, that can be used to further describe, group, or filter them. There is no equivalent functionality on Shopify, what comes near are product tags or collections. As specified, one custom label should only hold one single piece of information, and there are five custom labels at all.

Facebook lets you set up to five custom labels for each item/product in your product catalog. This way you enhance your Facebook catalog or advanced product set segmentation.

The App has two options that misuse to "one information per label" rule a bit. It works fine for Facebook feeds but not so if the feed is used in the Google Merchant Center - provide a whitelist of collections and/or tags and write all product tags or collections that are in the whitelist and belong to the product or product variant into a custom label:

Of course, metafields can be used as well to:

  • use metafields
    • custom_label_0
    • custom_label_1
    • custom_label_2
    • custom_label_3
    • custom_label_4
  • in the namespaces (in this order)
    • variant.metafields.facebook
    • product.metafields.facebook
    • product.metafields.mm-google-shopping
    • shop.metafields.facebook
    • product.metafields.google

How to set those custom labels with the app?

Via Google Shopping Sales Channel #

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

Automatically set custom fields #

With our mapping rules, you can use the Shopify product options, metafields or tags to automatically fill the Facebook catalog fields 'custom labels'. Find more info on how to set up the feature here.

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 your Shopify admin.
  2. Access the Shopify bulk editor:
    1. For setting custom labels on a product level use the Shopify bulk editor link like so (please replace STORE_NAME with your Shopify domain):

      https://admin.shopify.com/store/STORE_NAME/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 use the Shopify bulk editor link like so (please replace STORE_NAME with your Shopify domain):

      https://admin.shopify.com/store/STORE_NAME/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. Metafield guru, Shopifyfd, etc.

Technical deep dive: Rules for setting the custom labels #

This is how we determine what to put in 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.