Back to Blog

Top 5 Third-Party Scripts for Gainsight Communities

Enhance your Gainsight Community with these top five third-party scripts for analytics, chat, and more.

Posted by

ModerateKit Logo

Introduction

As a Gainsight Community administrator, enhancing user experience and engagement is crucial. Third-party scripts can significantly augment your community platform with features ranging from analytics to real-time support. In this article, we delve into the top five third-party scripts that can elevate your Gainsight Customer Community.

1. Google Analytics

Google Analytics is a staple for tracking user behavior and engagement within your community. By integrating this script, you gain insights into how users interact with your community, what content resonates most, and where improvements are needed. Here's how you can implement it:

<script async src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXXX-X"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js&#39;, new Date());

  gtag('config', 'UA-XXXXXXXXX-X');
</script>

With Google Analytics, you can monitor traffic sources, page views, and user demographics, providing you with a comprehensive understanding of your community's performance.

2. Intercom

Intercom offers a robust platform for live chat and customer engagement. By adding Intercom to your community, you can interact with users in real-time, providing instant support and fostering a sense of community. Here's how to integrate it:

<script>
  window.intercomSettings = {
    app_id: "your_app_id"
  };
</script>
<script>(function() {
  var w = window;
  var ic = w.Intercom;
  if (typeof ic === "function") {
    ic(&#39;reattach_activator');
    ic('update', intercomSettings);
  } else {
    var d = document;
    var i = function() {
      i.c(arguments)
    };
    i.q = [];
    i.c = function(args) {
      i.q.push(args)
    };
    w.Intercom = i;

    function l() {
      var s = d.createElement(&#39;script');
      s.type = &#39;text/javascript';
      s.async = true;
      s.src = 'https://widget.intercom.io/widget/your_app_id';
      var x = d.getElementsByTagName(&#39;script')[0];
      x.parentNode.insertBefore(s, x);
    }
    if (w.attachEvent) {
      w.attachEvent('onload', l);
    } else {
      w.addEventListener('load', l, false);
    }
  }
})()</script>

Intercom's platform also allows you to send targeted messages, gather user feedback, and analyze user interactions, making it a powerful tool for customer engagement.

3. Hotjar

Hotjar is an invaluable tool for understanding user behavior through heatmaps, session recordings, and surveys. This script provides visual insights into how users navigate your community, helping you identify usability issues and optimize user experience.

<script>
  (function(h, o, t, j, a, r) {
    h.hj = h.hj || function() {
      (h.hj.q = h.hj.q || []).push(arguments)
    };
    h._hjSettings = {
      hjid: YOUR_HOTJAR_ID,
      hjsv: 6
    };
    a = o.getElementsByTagName('head')[0];
    r = o.createElement(&#39;script');
    r.async = 1;
    r.src = t + h._hjSettings.hjid + j + h._hjSettings.hjsv;
    a.appendChild(r);
  })(window, document, 'https://static.hotjar.com/c/hotjar-', '.js?sv=');
</script>

With Hotjar, you can collect user feedback directly through surveys and polls, enabling you to make data-driven decisions to enhance your community.

4. Salesforce Chat

Salesforce Chat (formerly Live Agent) is perfect for enterprises looking to provide real-time support within their communities. This integration allows you to engage with customers directly, providing instant assistance and improving customer satisfaction.

<script type="text/javascript">
  (function() {
    var liveagent = document.createElement(&#39;script');
    liveagent.type = &#39;text/javascript';
    liveagent.async = true;
    liveagent.src = 'https://c.la1-c2cs-phx.salesforceliveagent.com/content/g/js/39.0/deployment.js&#39;;
    var s = document.getElementsByTagName(&#39;script')[0];
    s.parentNode.insertBefore(liveagent, s);
  })();
</script>

Salesforce Chat offers a seamless integration with Salesforce CRM, allowing agents to access customer information and history instantly, thereby enhancing the support experience.

5. Drift

Drift is a conversational marketing and sales tool that enables you to engage visitors through live chat. It offers AI-powered chatbots that can qualify leads, schedule meetings, and answer common questions, making it a versatile addition to your community.

<script>
  "use strict";

  !function() {
    var t = window.driftt = window.drift = window.driftt || [];
    if (!t.init) {
      if (t.invoked) return void (window.console && console.error && console.error("Drift snippet included twice."));
      t.invoked = !0, t.methods = ["identify", "config", "track", "reset", "debug", "show", "ping", "page", "hide", "off", "on"], t.factory = function(e) {
        return function() {
          var n = Array.prototype.slice.call(arguments);
          return n.unshift(e), t.push(n), t;
        };
      }, t.methods.forEach(function(e) {
        t[e] = t.factory(e);
      }), t.load = function(t) {
        var e = 3e5,
          n = Math.ceil(new Date() / e) * e,
          o = document.createElement("script");
        o.type = "text/javascript", o.async = !0, o.crossorigin = "anonymous", o.src = "https://js.driftt.com/include/" + n + "/" + t + ".js";
        var i = document.getElementsByTagName("script")[0];
        i.parentNode.insertBefore(o, i);
      };
    }
  }();
  drift.SNIPPET_VERSION = '0.3.1';
  drift.load('YOUR_DRIFT_ID');
</script>

Drift's platform enables you to connect with potential customers in real-time, increasing engagement and conversion rates.

Why Choose ModerateKit for Automated Moderation

Managing a thriving community can be overwhelming, but with ModerateKit, your Gainsight community can finally be on auto-pilot. ModerateKit automates repetitive moderation and administration tasks, saving your community managers 100s of hours each month.

Our AI-powered moderation tools handle everything from triaging and reviewing posts to approving, marking as spam, or trashing content based on your specific guidelines. With built-in detection for spam, NSFW content, and abusive behavior, ModerateKit ensures your community stays safe and aligned with your values.

Additionally, ModerateKit optimizes the quality of discussions by improving the layout, fixing grammar, and even providing automatic translations for non-English content (coming soon). This not only boosts the quality of interactions but also enhances the overall user experience.

By automating these repetitive tasks, your community managers can focus on fostering meaningful connections and engagement within your community. The result is a more reactive and proactive team, improved community health, and enhanced sentiment, all without the need for constant manual intervention.

Or if you prefer