- 16 Dec 2025
- 1 Minute To Read
- Print
- DarkLight
- PDF
Use JavaScript code to show Whatfix content
- Updated On 16 Dec 2025
- 1 Minute To Read
- Print
- DarkLight
- PDF
Only an Account Manager can perform the following task. For more information about available roles, see Whatfix User Roles.
Whatfix uses a single line of JavaScript to ensure that content and widgets created are rendered on your application. The JavaScript must be inserted in the header of your application to make the content available on every page of your application. You can also embed the same code in any of your application instances.
Whatfix can be used with Salesforce, ServiceNow, PeopleSoft, and Google Tag Manager using the Javasript delivery method.
Use the following steps to access the latest version of JavaScript:
On the Whatfix Guidance dashboard, click Settings.

Click Content deployment.

- In the Ready section, select the condition and operator, and enter the value of your development or UAT (User Acceptance Testing) environment.

- The development or UAT environment is used to prepare, test, and review content before deployment.
- Content and widgets in the Draft stage are not displayed on your application.
In the Production section, select the condition and operator, and enter the value of your production environment.

The Production environment is the live environment where end users see and interact with the finalized Whatfix content.
Click Save.

In the Deployment Script section, copy the script using the Copy button.

The script must be inserted in the header or footer of your application instance (Development or Production) for the Whatfix content to be present on every page of your application.