Skip to main content
Gainsight Inc.

Javascript SDK Configuration

How to use special SDK configuration 

The web application tag can be configured either using the UI SDK settings or directly on the tag level. The tag level configuration will prevent any UI configuration change and is normally used as a security measure.

Name Category Description Default



The SDK will scan guide content for scripting or risky elements and will not display the guide in case one found. false (optional)



Specify exclusive domain URLs for hosting content which is referenced by the in-product guides (e.g. images) null (optional)



In case you would like to host an in-product engagement checksum file to be verified before the SDK will present the content use this config.

This is an extreme measure that can be used in case you would like to lock the engagement content. Any changes to the guide requires updating the CDN checksum file.

null (optional)



In case you would like the tracking calls to use HTTP POST and not GET  false (unless the payload is too large for a GET)
fullDomainCookie Session tracking

PX tracks user sessions based on the top-level domain e.g: 

In case the app uses a domain prefix with the account name e.g: it might be useful to use the full-domain-cookie flag in case the end-user has access to two or more domains using the same browser. 


If set to true:

PX will track each browser tab that has a different domain as separate session including the domain prefix

How to use the configuration object in the SDK 

<script type="text/javascript">
  (function(n,t,a,e,co){var i="aptrinsic";n[i]=n[i]||function(){
    var r=t.createElement("script");r.async=!0,r.src=a+"?a="+e;
    var c=t.getElementsByTagName("script")[0];c.parentNode.insertBefore(r,c)
  })(window,document,"","AP-************-2", {
    <!-- setting content security polic -->
    "fullDomainCookie": true
    "htmlSanitization": true,
    "htmlSanitizationAllowedDomains": [""]
    <!-- setting checksum endpoint -->
    "engagementChecksumFileUrl": ""

Using SDK Settings

Alternatively, you can specify some of the other available settings using the UI.SDKSettings.png

Exporting the engagement checksum file 

If the SDK is using the checksum 'engagementChecksumFileUrl' configuration it will automatically match any real-time engagement with the hosted checksum.

Download the checksum file from the UI and upload it to your secured CDN


Debugging Stage engagements without Checksum verification 

Allowing for a quick editing experience you can disable checksum in your browser by adding this cookie which will tell the SDK to bypass checksum in your individual browser.

Open your browser console (More tools -> Developer tools -> Console tab) and run this command

document.cookie = 'apt.debug=true'
  • Was this article helpful?