- 16 Jan 2023
- 1 Minute To Read
- Print
- DarkLight
- PDF
Using JavaScript
- Updated On 16 Jan 2023
- 1 Minute To Read
- Print
- DarkLight
- PDF
Whatfix uses a single line of JavaScript to ensure that content created using the Editor and widgets 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. There are different ways to use JavaScript and deliver content with Whatfix.
Whatfix can be used with Salesforce, ServiceNow, PeopleSoft, Google Tag Manager, and Microsoft Dynamics using the Javasript Delivery method.
Whatfix JS Embed
Use the following steps to access the latest version of the JavaScript,
Navigate to the Whatfix Dashboard.
On the top right, click the Settings icon.
Click Configuration.
Click the Integration tab.
Copy the desired script using the respective Copy button. The script must be inserted in the header or footer of your application to be present on every page on your application.
- The development script is to be used only in non-production or development environments.
- Using the development script in the production environment can cause performance issues.
Whatfix JavaScript on your Application.
Once you have the JavaScript, here's a good place for the Whatfix JavaScript to be placed in your application.
If your application uses iframes , here's an example for the same,
<html><!-- Main Container -->
<head>
<!-- whatfix code should be here -->
</head>
<body>
<iframe>
<html><!-- Sub Container page -->
<head>
<!-- whatfix code is inserted here -->
</head>
<body>
</body>
</html>
</iframe>
</body>
</html>
For more information, contact support@whatfix.com.
Log in to the Whatfix University and watch the Diving into JS Embed Method learning module.