--- title: "Javascript SDK Configuration" slug: "javascript-sdk-configuration" updated: 2026-11-23T12:30:38Z published: 2026-11-23T12:30:38Z canonical: "support.gainsight.com/javascript-sdk-configuration" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.gainsight.com/llms.txt > Use this file to discover all available pages before exploring further. # Javascript SDK Configuration This article explains the various configurations that can be made to the SDK configurations and Gainsight PX tag. ## 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** | | --- | --- | --- | --- | | htmlSanitization | Security | The SDK will scan guide content for scripting or risky elements and will not display the guide in case one found. | false (optional) | | htmlSanitizationAllowedDomains | Security | Specify exclusive domain URLs for hosting content which is referenced by the in-product guides (e.g. images) | null (optional) | | htmlSanitizationAllowedSchemes | Security | Specify list of allowed schemes for href and src values. By default, sanitization allows the following: 'http:', 'https:', 'data:' | ['http:', 'https:', 'data:'] | | engagementChecksumFileUrl | Security | 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) | | usePOST | Security | 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: .mydomain.com In case the app uses a domain **prefix** with the account name e.g: mycustomer.mydomain.com 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. | false 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 ```plaintext