Add Freshdesk for Certain Roles or Pages

If you want to start using Freshdesk to support your clients but don't want to show the help/chat for everyone, here is a way you can do this.

  • Not yet re-checked
  • Classic builder

Moved from our previous help site and not yet re-checked against the current product. Last edited Sep 20, 2024.

Screenshot for “Add Freshdesk for Certain Roles or Pages”

If you want to start using Freshdesk to support your clients but don't want to show the help/chat for everyone, here is a way you can do this.

Step 1

Add the following JavaScript to the Customer Footer Code.

Text
<script>
function initFreshChat() {
    window.fcWidget.init({
        token: "REPLACE_WITH_YOUR_TOKEN",
        host: "https://wchat.freshchat.com"
    });
}
function initialize(i, t) {
    var e;
    i.getElementById(t) ? initFreshChat() : ((e = i.createElement("script")).id = t, e.async = !0, e.src = "https://wchat.freshchat.com/js/widget.js", e.onload = initFreshChat, i.head.appendChild(e))
}
function initiateCall() {
    initialize(document, "freshchat-js-sdk")
}
</script>
Screenshot for “Add Freshdesk for Certain Roles or Pages”

Step 2

Add the following to the JavaScript section of the Layout or pages you want the widget to appear on.

Text
initiateCall();

window.fcWidget.user.setFirstName("{loggedInUser.Name}");
window.fcWidget.user.setEmail("{loggedInUser.Email}");
Screenshot for “Add Freshdesk for Certain Roles or Pages”

Original Community Post:

Add helpdesk software for only certain roles or pages - Community Discussions / How Do I - Tadabase Community

Was this page helpful?

Something wrong or missing on this page? Tell us.