Top
Using JavaScript
  • 24 Mar 2022
  • 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 the JavaScript and integrate with Whatfix.


Whatfix JS Embed

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_clicksettings(3)

  3. Click Configuration.
    Dashboard_settings_configuration(3)

  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 in non-production or development environments.

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


Was This Article Helpful?

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.