Troubleshooting

1. I don't want to show the feedback widget on all pages of my website. Is there a way to hide it?

You can add the following code snippet to the WebEngage Website SDK to prevent the feedback widget from displaying on select pages.

<script type="text/javascript">
  var _weq = _weq || {};
  _weq['webengage.onReady'] = function(){
    webengage.notification.render();
    webengage.survey.render();
    var pageUrl = document.location.href;
    //Hide widget on /terms page
    if(pageUrl != 'http://www.mywebsite.com/terms'){
      webengage.feedback.render();
    }
  };
</script>

In the script above, the feedback widget has been disabled for the URL http://www.mywebsite.com/terms. Simply replace this URL with links of the pages you would like to disable the feedback widget for, on your website.