Configuring SEO via Headless CMS
3 min read
SEO (Search Engine Optimization) is one of the most important strategies to better position your site on organic search engine results pages.
In stores developed with FastStore, you can manage SEO settings through the Headless CMS.
For stores developed with Store Framework, see Configuring SEO in your Store Framework store.
Instructions
- In the VTEX Admin, go to Storefront > Headless CMS.
- Click the desired page.
This setting is available for the following content types: Product Detail Page (PDP), ** home**, and landing page.
- Switch to the Settings tab.
- Go to SEO and update the related fields. See the list of fields by content type in SEO fields by content type.
- Click
Save
to apply the changes.
SEO fields by content type
Product Details Page (PDP)
On Product Details Page (PDP) pages, the following fields are available for SEO configuration:
Field | Description | Example |
---|---|---|
ID | Unique identifier representing a specific product page. This is essential for search engines to recognize and differentiate each PDP on your website, avoiding ambiguity and helping ensure each product page is indexed separately. It receives a descriptive value that will be concatenated to the product path. | • Descriptive value: #product • Result: product-slug/p#product |
Main entity of page | Unique identifier representing the most relevant element on a product page. It receives a descriptive value that will be concatenated to the product path. | • Descriptive value: #webpage • Result: product-slug/p#webpage |
Home
On Home pages, the following fields are available for SEO configuration:
Field | Description | Example |
---|---|---|
Path | URL path where the homepage will be accessible on the site. | /homepage |
Default page title | Invoice displayed on the browser tab and used by search engines. It should be relevant to the homepage content. | My Store |
Meta tag description | A summarized description of the page, displayed by search engines in search results. | Discover the best deals on electronics |
Canonical URL for the page | The canonical URL used by search engines to help identify the main version of the page, avoiding duplicate content issues. | https://www.mystore.com |
Name | Site name. | My Store |
Publisher ID | Unique identifier for the content publisher on the page. This can be a descriptive fragment appended to the homepage or a full URL. | • Descriptive value: #organization • Complete URL: https://www.mystore.com/publisher |
Landing Page
On Landing Page type pages, the following fields are available for SEO setup:
Field | Description | Example |
---|---|---|
Path | URL path where the landing page will be accessible on the site. | /landing-page-slug |
Default page title | Title displayed on the browser tab and used by search engines. It should be relevant to the homepage content. | FastStore Landing Page |
Meta tag description | A summarized description of the page, displayed by search engines in search results. | Landing page description |
Canonical URL for the page | The canonical URL used by search engines to help identify the main version of the page, avoiding duplicate content issues. | https://www.mystore.com |