Top
Using JavaScript
  • 16 Jan 2023
  • 1 Minute To Read
  • Dark
    Light
  • PDF

Using JavaScript

  • Dark
    Light
  • 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,

your title goes here
  • The script changes slightly depending on whether you are using it directly in your production instance or you'd want to use it in non-production environments.
  • Only the Account Manager or the Content Manager can perform the following task. For more information on permissions, see Whatfix user roles.
  1. Navigate to the Whatfix Dashboard.
    Goto_dashboard

  2. On the top right, click the Settings icon.
    Dashboard_clicksettings3

  3. Click Configuration.
    settings_configuration2

  4. Click the Integration tab.
    RB_DB_Integration

  5. 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.

your title goes here
  • 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.
your title goes here
If you have been a Whatfix customer prior to Jan 2018, your account may not be using CDN deployment. Contact [email protected] to enable the CDN option for your account.

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>
your title goes here

For more information, contact [email protected].

Log in to the Whatfix University and watch the Diving into JS Embed Method learning module.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.