Skip to content

Commit

Permalink
Add product name to document title
Browse files Browse the repository at this point in the history
  • Loading branch information
herzog31 committed Mar 7, 2024
1 parent 16b94e1 commit d72caf2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions blocks/product-details/product-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ class ProductDetailPage extends Component {
const { loading, product } = this.state;
if (!loading && product) {
setJsonLdProduct(product);
document.title = product.name;
// TODO: productId not exposed by catalog service as number
window.adobeDataLayer.push({ productContext: { productId: 0, ...product } }, { event: 'product-page-view' });
}
Expand Down

0 comments on commit d72caf2

Please sign in to comment.