Installing Saber Feedback


Installing Saber Feedback is as simple as copying a few lines of JavaScript into your site.

To get started with Saber Feedback simply paste the code snippet below before your website’s closing </head> tag:

<!-- Saber Feedback button -->
<script type="text/javascript">
    (function () {
        window.Saber = {
            apiKey: '[YOUR API KEY HERE]',
            com:[],do:function(){this.com.push(arguments)}
        };
        var e = document.createElement("script");
        e.setAttribute("type", "text/javascript");
        e.setAttribute("src", "https://widget.saberfeedback.com/v2/widget.js");
        document.getElementsByTagName("head")[0].appendChild(e);
    })();
</script>
<!-- End of Saber Feedback button -->

Old snippet (pre-March 2021)

If you started using Saber Feedback before March 2021, you might still be using our older code snippet. This is the old, pre-March 2021 snippet.

<!-- Saber Feedback button - deprecated -->
<script type="text/javascript">
  (function(){
    window.Saber={com:[],do:function(){this.com.push(arguments)}};
    var e = document.createElement("script");
    e.setAttribute("type", "text/javascript");
    e.setAttribute("src", "//feedback.saberfeedback.com/feedback.js?api_key=[YOUR API KEY HERE]");
    document.getElementsByTagName("head")[0].appendChild(e);
  })();
</script>
<!-- End of Saber Feedback button -->

If you are using this snippet, we recommend updating to our new code snippet. The new snippet is much faster, uses less resources, and has more features.

If you use a page accelerator such as Turbolinks, you may find the Saber Feedback feedback button disappears as soon as you navigate to a new page.

If this happens, paste the embed code before the closing </body> tag instead of the closing </head> tag.

Installation instructions for your specific platform: