---
schema_version: "1"
id: ea969bd6a06fbd744237343d73087603e17f7b89abe6b80d0af1f3f79972f07a
title: Structured Data for Commerce Product Meta Tags
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/comm_seo_structured_data.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.comm_seo_structured_data.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 09809e8131e8a9813cf9247de276645088aaf511b1fc9cc7f7cdd1391c67b215
description: Create rich and engaging search results by using structured data from your store to dynamically update a page’s meta tags. For example, you can map product attributes like color or size to meta tags using expressions.
products:
  - Commerce
  - B2B Commerce
release: "264"
---
# Structured Data for Commerce Product Meta Tags

Create rich and engaging search results by using structured data from your store to dynamically update a page’s meta tags. For example, you can map product attributes like color or size to meta tags using expressions.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=commerce.comm_editions.htm&amp;language=en_US" target="_blank">View supported editions</a>.</td></tr></tbody></table>

[Which Salesforce Commerce Product Do I Have?](https://help.salesforce.com/s/articleView?id=commerce.comm_what_product.htm&language=en_US)

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-commerce-comm-264-0-0-production-enus/d863e308-482a-4dfa-8d20-2a94737d394a/images/icon_note.png)

Note Structured data isn’t supported in B2B Commerce Aura stores.

  
| Field | expression | example value |
| --- | --- | --- |
| Product Category Name | `{!Record.​ProductCategory.​Name}` | “Clothing” |
| Product Attributes (must use variant products) | `{!Record.​ProductAttributes.​<custom field you created for variant products>}` | Dependent on the field created for variant products. For example, “Medium” or “Red” for size or color. |
| Price Currency | `{!Record.Offers.​Currency}` | "USD" |
| Price | `{!Record.Offers.Price}` | "32.99" |
| Breadcrumb | `{!Record.BreadcrumbList}` | `[{"@type":"ListItem","item":​"https://domain.com/​storeName/category/​merchandise/​0ZGxx000000004rGAA",​"position":1,"name":​"Merchandise"},​{"@type":"ListItem",​"item":"https://domain.com/​storeName/category/​merchandise/clothing/​0ZGxx000000006TGAQ",​"position":2,​"name":"Clothing"}]` |
| Default Product Image | `{!Record.ProductMedia.​DefaultImage}` | "https://domain.com/​image1.jpg" |
| Product Detail Images | `{!Record.ProductMedia.​ProductDetailImages}` | \["https://domain.com/​image1.jpg","https://domain.com/​image2.jpg"\] |

To use product attribute values in meta tags, first set up variant products. For more information, see [Product Variations and Attributes](https://help.salesforce.com/s/articleView?id=commerce.comm_var_att_intro.htm&type=5&language=en_US). To use pricing information, make sure that your products belong to a standard price book. To use breadcrumbs, make sure the primary category of your product is navigable. For more information, see [Choose Product Categories to Use in Breadcrumbs](https://help.salesforce.com/s/articleView?id=commerce.comm_categories_breadcrumbs.htm&type=5&language=en_US).

Use a script with these expressions to add structured data to a custom head tag on a Product Detail Page. For more information, see [Configure Page Meta Tags for Commerce](https://help.salesforce.com/s/articleView?id=commerce.comm_seo_meta_tags.htm&type=5&language=en_US).

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-commerce-comm-264-0-0-production-enus/d863e308-482a-4dfa-8d20-2a94737d394a/images/icon_example.png)

Example

```

<script type="application/ld+json">
[{
    "@context": "https://schema.org/",
    "@type": "Product",
    "name": "{!Record.Name}",
    "category": "{!Record.ProductCategory.Name}",
    "color": "{!Record.ProductAttributes.ProductColor__c}",
    "size": "{!Record.ProductAttributes.ProductSize__c}",
    "material": "{!Record.ProductAttributes.ProductMaterial__c}",
    "offers": {
        "@type": "Offer",
        "priceCurrency": "{!Record.Offers.Currency}",
        "price": "{!Record.Offers.Price}"
    },
    "image": "{!Record.ProductMedia.DefaultImage}"
},
{
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": "{!Record.BreadcrumbList}"
}]
</script>
```

## Validate Structured Data

To validate structured data in an environment, inspect the HTML source code for a page and navigate to the `<script>` tags containing the JSON-LD data as shown in the example.

Perform a manual snapshot refresh before validating structured data in an org, see [Provide Search Engines with Fresh Content Snapshots](https://help.salesforce.com/s/articleView?id=experience.networks_seo_snapshot.htm&language=en_US).

#### See Also

- [Product Variations and Attributes](https://help.salesforce.com/s/articleView?id=commerce.comm_var_att_intro.htm&type=5&language=en_US)
- [SEO Guidelines for Commerce Page Meta Tags](https://help.salesforce.com/s/articleView?id=commerce.comm_seo_meta_tag_guidelines.htm&release=264.0.0&type=5 "To increase the SEO value of your store, add meta tags to Product, Category, and other pages.")