---
title: "Integrate Whatfix using JavaScript"
slug: "integrating-whatfix-using-javascript"
updated: 2026-03-03T11:00:27Z
published: 2026-03-03T11:00:27Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://support.whatfix.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Use JavaScript code to show Whatfix content

**Note:**

          

Only an **Account Manager** can perform the following task. For more information about available roles, see [Whatfix User Roles](/studio/docs/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](/studio/docs/whitelisting-whatfix-domains-on-salesforce), [ServiceNow](/studio/docs/servicenow-integration-2), [PeopleSoft](/studio/docs/peoplesoft-integration), and [Google Tag Manager](/studio/docs/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](https://support.whatfix.com/docs/overview-of-the-whatfix-dashboard?highlight=whatfix%20guidance), click **Settings**. ![ia_left_nav_settings](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/ia_left_nav_settings.png)
2. Click **Content deployment**. ![ia_settings_content%20deployement](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/ia_settings_content%20deployement.png)

1. In the **Ready** section, select the condition and operator, and then enter the value of your development or UAT (User Acceptance Testing) environment.  

![studio_javascript_ready stage](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/studio_javascript_ready%20stage.png)

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 then enter the value of your production environment.

![studio_java script_production](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/studio_java%20script_production.png)

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](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/studio_js_save.png)
2. In the **Deployment Script** section, click **Copy** to copy the script. ![studio_javascript_deployment script](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/studio_javascript_deployment%20script.png)

Info:

Insert the script 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.
