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.

<script src="https://s3.amazonaws.com/reviewcloud/widget/v2/reviews.min.js" 
  data-key="your_api_token">
</script>
<!-- Example usage -->
<div id="nn-reviews"></div>

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:

Here’s a full working example of a custom user profile page:

Latest Blog Posts

Contact