This article will provide you with the necessary information to be able to include multiple review widgets on a single page. In order to do this, we will need to slightly modify the widget javascript code to load the widget multiple times. Here’s the updated code to load the reviews:

<script type="text/javascript">
var reviewData = [
{'container': 'review-container-1', 'token': 'TOKEN1'},
{'container': 'review-container-2', 'token': 'TOKEN2'},
];
</script>
<script src="https://reviewsonmywebsite.com/js/embed.js" type="text/javascript"></script>

where TOKEN1 and TOKEN2 need to be replaced with the actual widget tokens. Note that it’s possible to have the same token in both containers in order to load the same widget twice in different places on the page.

Now that we have specified what widgets to load, it’s time to define where we want these widgets to display. Just include

<div id="review-container-1"></div>

and

<div id="review-container-2"></div>

anywhere on your page to display the 1st and 2nd widgets, respectively.

Save the changes on your website and you should be all set. Please contact us if you require further assistance with adding multiple widgets on a single page.