Top
Use JavaScript code to show Whatfix content
  • 29 Jan 2024
  • 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, Google Tag Manager, and Microsoft Dynamics 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. 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.
    studio_javascript_ready stage
Note

Content and widgets in the Draft stage are not displayed on your application.

  1. 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.
    studio_java script_production
your title goes here
  1. Under the Deployment Script section, copy the script using the Copy button.
    studio_javascript_deployment script
your title goes here

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.

  1. Click Save.
    studio_js_save

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.