Reviews Javascript Widget

The Reviews Javascript Widget (BETA) is the easiest way to include your Nearby Now reviews on your website.

Note: Unlike our server-side API and WordPress/Joomla plugins, the Javascript API offers no SEO value for your website. The widget HTML is loaded asynchronously it will not be discovered by search engines.

Javascript Widget

Simply copy this script on the page you want to display the widget, and add a nn-reviews div anywhere on your page that you’d like to reviews to be displayed.

Configuration Options

You can customize the widget script by adding data tags. Here’s a list of the available data tags:

Required

data-key Your API Token

Optional

data-type The type of widget you want to display (defaults to mini)

data-count The number of reviews to display (sidebar and full widgets only)

data-container The div element to append the widget to (defaults to nn-reviews)

data-tech The email address of the user who’s reviews you want to display

Widget Types

There are three types of widgets available. The default type is “mini”. You can supply a type data tag to change the default widget type.

Mini

data-type="mini"
The mini widget displays your accounts aggregate review rating, number of stars, and a count of total reviews. Example

Sidebar

data-type="sidebar"
The sidebar widget displays the mini-widget, plus a lite version of your three most recent reviews. You can change the widget to display more reviews by supplying a count data tag: data-count="5". This widget is great for displaying reviews on your website sidebar. Example

Full

data-type="full"
The full widget displays the mini-widget, plus your three most recent reviews including the sub-ratings. You can change the widget to display more reviews by supplying a count data tag: data-count="5". Use this widget if you want to display your reviews as the primary content of a page. For example, this widget fits nicely on a home page below your existing home page content. Example

Examples

Here are a few examples of various ways to embed the widget:

<!-- Add this script on the page that you want to embed the reviews widget -->
<script
src="https://s3.amazonaws.com/reviewcloud/widget/v2/reviews.min.js"
data-key="your_api_token">
</script>
<!-- Add this div where you'd like the widget to display on your page -->
<div id="nn-reviews"></div>

<!-- Add this script on the page that you want to embed the reviews widget -->
<script
src="https://s3.amazonaws.com/reviewcloud/widget/v2/reviews.min.js"
data-key="your_api_token"
data-type="sidebar">
</script>
<!-- Add this div where you'd like the widget to display on your page -->
<div id="nn-reviews"></div>

<!-- Add this script on the page that you want to embed the reviews widget -->
<script
src="https://s3.amazonaws.com/reviewcloud/widget/v2/reviews.min.js"
data-key="your_api_token"
data-type="full">
</script>
<!-- Add this div where you'd like the widget to display on your page -->
<div id="nn-reviews"></div>

<!-- Let's say you already have a sidebar with a container you wan to put reviews in -->
<div id="my-sidebar-container"></div>
<!-- Add this script on the page that you want to embed the reviews widget -->
<!-- Notice the two options we've added. data-container and data-count -->
<script
src="https://s3.amazonaws.com/reviewcloud/widget/v2/reviews.min.js"
data-key="your_api_token"
data-type="full"
data-container="my-sidebar-container"
data-count="5">
</script>