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.
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) |
|
Content detail page (CDP) |
|
Product list page (PLP) |
|
Content list page (CLP) |
|
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.
You can import and export your definitions via Creating Page Meta Tag Rules.
When creating meta tag rules, consider following these recommendations:
Page Title and Meta Titles
Meta Descriptions
The Page Meta Tag Rules tab appears when performing the following tasks:
Add, Modify, and Edit Products Manually