Displaying your last 100 satisfaction ratings (Professional and Enterprise) Follow

professional enterprise plans

Displaying your last 100 customer satisfaction ratings is more advanced to set up than using the ratings box widget to display totals. For more information on the ratings box widget, see Displaying satisfaction ratings totals and an overall score.

Zendesk provides your satisfaction ratings in JSON format. It looks something like this, where 1 is a positive rating, 0 is a negative rating:
[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1,  ...]
As you can see, it is very basic. It's up to you to decide how to display the data. 

You must be an administrator to use this feature.

Accessing your last 100 ratings

You need to turn on satisfaction ratings, if you haven't already done so. Then you can access your last 100 satisfaction ratings.

To turn on satisfaction ratings and access your ratings
  1. Click the Admin icon () in the sidebar, then select End-users.
  2. Click the Satisfaction tab.
  3. Make sure that Allow customers to rate tickets is selected and that you have at least 100 ratings. 

    If you don't have at least 100 ratings, you'll see the following message.

  4. Select Allow me to display public satisfaction statistics.
  5. Click Save Tab.

    The page updates with more information, including statistics based on your last 100 customer satisfaction ratings. 

  6. Go to http://subdomain.zendesk.com/satisfaction.json (where subdomain is your Zendesk account) to access the JSON file with your ratings.

Displaying your last 100 ratings

The easiest way to display your ratings on a page is to use images to represent responses.

In this example, a happy Buddha face represents a positive rating, and an unhappy Buddha face represents a negative rating.

Here is the jQuery for this example (you can use any framework or language you'd like): 

<div id="last_100_ratings"></div>
<script type="text/javascript">
  url: "https://support.zendesk.com/satisfaction.json",
  dataType: "jsonp",
  cache: false,
    elem = $("#last_100_ratings"); // Change where you want the ratings rendered
    for (i=0;i<data.length;i++) {
      if (data[i] == 1) {
        elem.append('<div class="satisfaction_good"><img src="https://assets.zendesk.com/images/satisfaction/happy_buddhy.png?131..."/></div>')
      } else {
        elem.append('<div class="satisfaction_bad"><img src="https://assets.zendesk.com/images/satisfaction/sad_buddhy.png?13171..."/></div>')

This code snippet gets your last 100 ratings from your Zendesk Support instance, then iterates through the entire length of the response (which will always be 100) and puts a smiley or sad face in the #last_100_ratings element.

Other options for using this data include:
  • Add this data to a graph using jCharts or a similar program. 
  • Collect and store your ratings data daily so you can review historical data. 
  • Generate an image from it to use in email newsletters or signatures. 
Have more questions? Submit a request


  • 0

    This is a great idea achieved in a very simple format. Like it.

  • 0

    Hi Jake,


        I was able to get the first part working which displays the rating in the boxes but I haven't been able to get the smiling faces to show up. I've only use java script very lightly so I'm sure I'm just missing something and perhaps you can point me in the right direct. 

    I tried just pasting the java code snippet into a HTML document but that doesn't seem to do it.  Is there something else I need to do to get the faces to display?



  • 0

    Hey Adam, do note that displaying the past 100 ratings in the format we've shown is intended to be for advanced users with knowledge of JavaScript. So if you're pretty unfamiliar with it I really would recommend getting a JavaScript friend to help out.

    In the example we show, we're using jQuery to keep it simple. You'll need to include the JavaScript library included on your page in order to use the exact example.

  • 0


    I want to insert in our website the overall satisfaction

    percentage of satisfied%

    Any sugestion how to do this?



  • 0


    Can this be added to my zendesk forums? Or only it can be added to my website?

    The thing is that I want to add it to my zendesk, mangacorta.zendesk.com so when people enter they can see it. I don´t want it on my website.


  • 0

    @Omar - The widget should already include this - I believe you can even just delete the numbers and leave the score, if desired!


    @Alan - Do you want it as a widget in the forums, or a forum article itself?  If in a forum article, you'd need Javascript/HTML support enabled, and then you'd just paste the code in the HTML of the article.  If in a widget, you'd just need to add it to a custom widget (which support HTML)!


Powered by Zendesk