Discussions
Best practice to implement third party script to SCA
We are using Bazaarvoice for customer reviews in SCA site. We added script as below to the ProductDetails.tpl :
<!-- Bazaarvoice Configuration Call -->
<script type="text/javascript">
$BV.configure('global', { productId : "{{model.item.internalid}}"});
</script>
<!-- Bazaarvoice Configuration Call -->
<div class="product-details-full" itemscope itemtype="https://schema.org/Product">
<div data-cms-area="item_details_banner" data-cms-area-filters="page_type"></div>
<header class="product-details-full-header">
<div id="banner-content-top" class="product-details-full-banner-top"></div>
<h1 class="product-details-full-content-header-title" itemprop="name">{{pageHeader}}</h1>
</header>