Top
Use JavaScript code to show Whatfix content
  • 16 Dec 2025
  • 1 Minute To Read
  • Dark
    Light
  • PDF

Use JavaScript code to show Whatfix content

  • Dark
    Light
  • PDF

Article summary

Note:

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:

  1. On the Whatfix Guidance dashboard, click Settings.
    ia_left_nav_settings

  2. Click Content deployment.
    ia_settings_content%20deployement

  1. In the Ready section, select the condition and operator, and enter the value of your development or UAT (User Acceptance Testing) environment.
    studio_javascript_ready stage
Info:
  • 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.
  1. In the Production section, select the condition and operator, and enter the value of your production environment.

    studio_java script_production

Info:

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

  1. Click Save.
    studio_js_save

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

Info:

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.


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.