Integrating Whatfix with your ServiceNow account enables you to display Whatfix content and widgets on your application.
Use the following steps to integrate Whatfix with your ServiceNow instance;
- Log in to your ServiceNow instance as an admin and Go to UI Scripts under System UI.

- Click New to configure a new script,

- Ensure the Global check box is selected. Copy the script below, update your ENTERPRISE ID, paste it in the Script panel, and then click Submit.
var head = document.getElementsByTagName('head');
var script = document.createElement("script");
script.setAttribute("src", "//cdn.whatfix.com/prod/<<ent_id>>/embed/embed.nocache.js");
script.setAttribute("type", "text/javascript");
head[0].appendChild(script);
if(window.top != window) {
var head = window.top.document.getElementsByTagName('head');
var script = window.top.document.createElement("script");
script.setAttribute("src", "//cdn.whatfix.com/prod/<<ent_id>>/embed/embed.nocache.js");
script.setAttribute("type", "text/javascript");
head[0].appendChild(script);
}
Note
Update the correct script src from your Whatfix account in the code block in line 4 and line 13

Enabling Whatfix Content on Portal pages
If you notice that Whatfix content is still not being displayed on portal pages, continue with the following instructions.
- In the left panel, click Portals.

- On the Service Portals page, under the Theme column, click the corresponding link for the portal that you want to enable.

- Click the JS Includes tab.

- Click New.

- Enter a display name, in the Source drop-down section, select UI Script, and then click the Search icon.

- Select the Whatfix JavaScript that was added in the first section.

- Click Submit.

- Click Update.
