Created
November 7, 2012 18:21
-
-
Save charleshimmer/4033379 to your computer and use it in GitHub Desktop.
Conversations 2013 Integration Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Step 1 - make sure the BV divs are on the page. The placement of these divs dictate where BV will inject it's content | |
// BV Summary Container (for both RR and QA) | |
<div id="BVRRSummaryContainer"></div> | |
// BV RR Container | |
<div id="BVRRContainer"></div> | |
// BV QA Container (Optional) | |
<div id="BVQAContainer"></div> | |
// Step 2 - include the BV scout file on your product detail page. The URL pattern for this file is: //display.ugc.bazaarvoice.com/bvstaging/static/<clientName>/bvapi.js | |
<script src="//display.ugc.bazaarvoice.com/bvstaging/static/<clientName>/bvapi.js"></script> | |
// Step 3 invoke the BV integration code | |
// load ratings and reviews | |
$BV.ui("rr","show_reviews",{ | |
"productId": productId | |
}); | |
// load questions and answers | |
$BV.ui( 'qa', 'show_questions', { | |
"productId": productId // optional if call above has already provided productId | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment