- 19 Sep 2024
- 1 Minute To Read
-
Print
-
DarkLight
-
PDF
Use JavaScript code to show Whatfix content
- Updated On 19 Sep 2024
- 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, Google Tag Manager, and Microsoft Dynamics 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.
- Under the Ready section, select the condition and operator, and then enter the value of your development or UAT environment. In this environment, the content and widgets are prepared and finalized for deployment. It is often used for testing, reviewing, and ensuring that the content is ready to be exposed to a wider audience.
Content and widgets in the Draft stage are not displayed on your application.
- Under the Production section, select the condition and operator, and then enter the value of your production environment. This is the live environment where the finalized content is deployed for end users. This is the actual instance of your application where users interact with the application and see the Whatfix content.
-
To push content and widgets to Production, click the Push all to Production button in the Ready stage.
For more information, see Push Whatfix content and widgets to Production
-
To understand how the Map Stages conditions are evaluated, see How to add conditions in Map Stages? (Login to see the article).
- Under 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.
- Click Save.