1. Home
  2. Developers
  3. Javascript Testimonials Widget

Javascript Testimonials Widget

The following post is intended for Webmasters and Developers with basic Javascript knowledge. It describes how to modify and include the testimonials widget as Javascript snippet in a web page.

Important: Using Javascript will not allow the widget to use Schema markup, it will just show the testimonials. We strongly recommend using the standard widget, our Json Endpoint or our API.


Step-by-Step Guide

1) Locate the standard testimonials widget embed code for your business. See here.

2) The testimonials widget contains a URL string consisting of “Business ID” and “Hash”

Example:
https://getfivstars.com/reviews/1704.dspWssUg2Aus

Business ID = 1704
Hash = dspWssUg2Aus

3) Copy the Business ID and Hash into the following Javascript snippet.

javascript-testimonials-widget

A complete example file that includes the Javascript snippet and HTML can be found here.

Was this article helpful?

Related Articles