Meta Tag Rules

Page meta tags are used in HTML documents to provide structured data about a web page. Depending on your requirements and integrations, you have to manage your content to provide meaningful data for those tags. Salesforce B2C Commerce provides a rule-based solution that enables you to generate and manage the corresponding content for your storefront.

Using Business Manager, you can:

You generate and manage meta tag content for product and content detail and list pages with rules (created using B2C Commerce Script API) that are managed in the Page Meta Tag Rules page.

Rule Inheritance

Page meta tag rule lookup follows an inheritance scheme that enables you to minimize rule configurations. Rules on your root category (folder) are visible within all child categories (folder) and assigned products (content). Rules are inherited within the current locale context first, before the locale fallback, as defined in language settings.

The lookup rules are applied as follows:

Page type Fallback
Product detail page (PDP)
  • Current product
  • Variation groups
  • Main
  • Primary category assigned to the site for which the request is processed
  • Parent categories, up to root
  • Locale Fallback and start at current product in new locale
Content detail page (CDP)
  • Current content
  • Primary folder
  • Parent folders, up to root
  • Locale fallback and start at current content in new locale
Product list page (PLP)
  • Current category
  • Parent categories, up to root
  • Locale fallback and start at current category in new locale
Content list page (CLP)
  • Current folder
  • Parent folders, up to root
  • Locale fallback and start at current folder in new locale

Script API

In addition to creating your rules following the meta tag rule syntax, you can also use APIs to obtain page meta tags that are generated based on rules.

Import and Export

You can import and export your definitions via Creating Page Meta Tag Rules.

Best Practices

When creating meta tag rules, consider following these recommendations:

Page Title and Meta Titles

Meta Descriptions

Related Links

The Page Meta Tag Rules tab appears when performing the following tasks:

Add, Modify, and Edit Products Manually

Add Products Manually

Creating and Assigning Catalogs

Creating a Content Asset

Creating a Library Folder

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.