Sample Script

Below is a sample script.

<script>
    !(function () {
        'use strict';
        var t = document.createElement('script');
        (t.src = 'https://form-renderer.trustarc.com/browser/client.js'),
          (t.type = 'text/javascript'),
          (t.defer = !0),
          document.body.appendChild(t),
          (window.trustarc = window.trustarc || {});
        var r = window.trustarc;
        r.irm = [];
        for (
          var n = ['init', 'shouldShowGPCBanner', 'setGPCSubmitted', 'destroy'],
            e = 0;
          e < n.length;
          e++
        ) {
          var o = n[e];
          r.irm[o] =
            r.irm[o] ||
            (function (t) {
              return function () {
                var n = Array.prototype.slice.call(arguments);
                r.irm.push([t, n]);
              };
            })(o);
        }
        r.irm.init(
          {
            formId: '<Intake form ID from IRM goes here>',
            gpcDetection: true
              gpcConfig: {
                 ‘geoLocationCodes’: [‘NA_US_CA’,  ‘NA_US_CO’], geoLOcation codes from Appendix B
                 ‘showRecognizedGPCImage’: true/false,
                 showFormForUnsubmittedDSR’: true/false,
                 isFinancialParticipant’: true/false,
                 showFormOnDisabledSecondVisit’: true/false,
            },
          },
          (error) =>
          { console.error('[IRM Form Error]', error);
          }
        );
      })();
  </script>