PageSourceSearch

https://holycrosshealth.org/modules/custom/hg_mercury_dxe_features/js/gainsight.js?v=1.6.0

js holycrosshealth.org collected 2026-10-03 21:40:37 UTC 987 bytes, 29 lines download raw bytes

1/**
2 * @file
3 * Identify the current user for Gainsight PX.
4 *
5 * @see https://support.gainsight.com/PX/Install_PX/Install_Gainsight_PX_with_Google_Tag_Manager#Make_the_Identify_call_(developer_assistance_needed)
6 */
7
8(function ($, Drupal, drupalSettings) {
9  'use strict';
10  Drupal.behaviors.gainsight = {
11    attach: function (context) {
12      if (context !== window.document) {
13        return;
14      }
15      var delay;
16      var waitToIdentify = function () {
17        if (typeof window.aptrinsic !== 'function') {
18          delay = setTimeout(waitToIdentify, 10);
19        }
20        else {
21          window.aptrinsic('identify', drupalSettings.hgMercuryDxeSettings.user, drupalSettings.hgMercuryDxeSettings.account);
22          // TODO: Change the Gainsight product name to Profile Management Hub.
23          window.aptrinsic('set', 'globalContext', {'Product Name': 'Digital Experience Engine'});
24        }
25      };
26      waitToIdentify();
27    }
28  };
29})(jQuery, Drupal, drupalSettings);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.