The Basics of Salesforce Commerce Cloud SEO
salesforce commerce cloud
<title>
<isprint value="${pdict.CurrentPageMetaData.title}" encoding="htmlcontent" />
</title>
let computedMetaData = {
title: req.pageMetaData.title,
description: req.pageMetaData.description,
keywords: req.pageMetaData.keywords,
pageMetaTags: []
};
res.setViewData({
CurrentPageMetaData: computedMetaData
});
next();
<title>
eCommerce Enterprise Solutions | Bee IT
</title>
<meta name="description"
content="${pdict.CurrentPageMetaData.description ? pdict.CurrentPageMetaData.description : Resource.msg('global.storename','common',null)}"
/>
<h1>
This is how we define an H1 tag
</h1>
<link
rel="canonical" href="https://domain.com/digital-cameras/"
/>
<link
rel="canonical" href="${URLUtils.abs('Product-Show','pid', pdict.Product.ID)}"
/>