
bvapi.js. However, if your implementation uses the BV loader bv.js, refer to the BV loader integration documentation.To display user-generated content (UGC) on your category or product display pages (PDPs), you must add Bazaarvoice code to your HTML pages.
Follow these step-by-step instructions to display the:
- Primary rating summary
- Ratings & Reviews
- Questions & Answers
Step 1: Add JavaScript code (bvapi.js)
Place the following JavaScript API code within the
headelement on every PDP page where you want to display Bazaarvoice content.JavaScript<script type="text/javascript"
src="//default.ugc.bazaarvoice.com/bvstaging/static/1234-en_us/bvapi.js">
</script>
<script type="text/javascript">
$BV.configure("global", {
submissionContainerUrl: "http://www.client.com/submissionPage.html"
});
</script>Script element Description defaultContact Bazaarvoice support and the implementation team will provide a value for default.1234-en_usContact Bazaarvoice support and the implementation team will provide a display code value for 1234-en_us./bvstagingEnsure that /bvstagingis removed from the URL before launching in your production environment.bvapi.jsbvapi.jsis loaded synchronously. However, this file introduces no perceived performance impact in most conditions, and all remaining resources are loaded asynchronously.$BV.configureThis is the Bazaarvoice configuration call. It is executed prior to any $BV.uicalls that it affects.submissionContainerUrlReferences the submission container URL page that you created and host on your website. For example, "http://www.client.com/submissionPage.html"
The example integration code above uses the test path/bvstaging. Make sure you remove/bvstagingfrom production environment URLs.Note: For security reasons, Bazaarvoice configures a white list of allowable domains for integration purposes. Contact Bazaarvoice support and inform the Bazaarvoice implementation team of all domains you plan to deploy in production.
If thesubmissionContainerUrldomain is not on the list of allowable domains, a warning page (with clickable links) might display. Confirm that the URL presented on the warning page is a valid URL.To display Ratings & Reviews or Questions & Answers content on product display pages (PDP), you must add Bazaarvoice content containers to each of your PDPs (refer to Step 2: Add content containers).
Step 2: Add user-generated content containers
Add content containers (div code) to each PDP where you want to display relevant Bazaarvoice-generated content:
- Primary rating summary: Insert
<div id="BVRRSummaryContainer"></div>where you want the ratings summary to appear. - Review content: Insert
<div id="BVRRContainer"></div>where you want the actual Ratings & Reviews to appear. - Questions & Answers summary: Insert
<div id="BVQASummaryContainer"></div>where you want the Questions & Answers summary to appear. - Questions & Answers: Insert
<div id="BVQAContainer"></div>where you want the actual Questions & Answers to appear.
Step 3: Load user-generated content
To load content into the div elements that you inserted in the previous step, use a $ BV.ui() JavaScript call as described in the code blocks in this section.
Load Ratings & Reviews into product pages
JavaScript |
<div id="BVRRContainer"></div> |
XXXXX represents the ID of the product that is displayed on the page. This value must match the ID that is associated with the product in the product catalog feed.
Location: Bazaarvoice recommends placing reviews below the product description (and lower down on the PDP).

Load Questions & Answers into product pages
JavaScript |
<div id="BVQAContainer"></div> |
XXXXX represents the ID of the product that is displayed on the page. This value must match the ID that is associated with the product in the product catalog feed.
Location: Bazaarvoice recommends placing questions and answers content below the actual review display area, lower down on the PDP or category page.
Load Questions & Answers into category pages
JavaScript |
<div id="BVQAContainer"></div> |
Step 4: Customize UGC display elements
Contact Bazaarvoice support and request to work with the design services team to customize:
- Fonts
- Icons used on any display pages
- Text used for titles or links
- Any UI elements on the display pages
Bazaarvoice design services has a team of User Experience (UX) consultants who provide custom design solutions for the PRR platform.
HTML example - submission container page
HTML |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
HTML example - product page
HTML |
|

bvapi.js. You can also integrate user-generated content into your website using the BV loader JavaScript bv.js. Recommended for performance improvements and future innovations. Refer to the BV loader integration documentation for more information.