Source: https://nishanth-fern-test.docs-staging.pageloop.ai/web/integrating-whatfix-using-javascript

# Integrate Whatfix using JavaScript

**Note:**

Only an **Account Manager** can perform the following task. For more information about available roles, see [Whatfix User Roles](/web/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](/web/whitelisting-whatfix-domains-on-salesforce), [ServiceNow](https://support.whatfix.com/studio/docs/servicenow-integration-2), [PeopleSoft](/web/peoplesoft-integration), and [Google Tag Manager](/web/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](/web/overview-of-the-whatfix-dashboard), click **Settings**. ![ia\_left\_nav\_settings](/images/b8/ia_left_nav_settings-b868cdaa.png)

2. Click **Content deployment**. ![ia\_settings\_content deployement](/images/ad/ia_settings_content-deployement-ad70692b.png)

3. 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](/images/dd/studio_javascript_ready-stage-ddb67372.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](/images/4e/studio_java-script_production-4e841dd1.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](/images/5c/studio_js_save-5c32d493.png)
2. In the **Deployment Script** section, click **Copy** to copy the script. ![studio\_javascript\_deployment script](/images/6f/studio_javascript_deployment-script-6f699148.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.

## Related

- [How to add conditions in Map Stages?](/web/how-are-the-visibility-rules-evaluated-while-mapping-stages)
