- 24 Feb 2025
- 1 Minute To Read
-
Print
-
DarkLight
-
PDF
Add Whatfix JavaScript to Salesforce Community
- Updated On 24 Feb 2025
- 1 Minute To Read
-
Print
-
DarkLight
-
PDF
Display Whatfix content on Salesforce Community by adding the Whatfix JavaScript to the header of every community page.
Salesforce Community Integration can only be done for accounts that use the JS Embed model. Customers using the Browser Extension model cannot perform this integration.
Use the following steps to add Whatfix JavaScript to the Salesforce community:
-
Open Community Builder in Salesforce Lightning.
-
Click the Settings icon.
-
Click Advanced.
-
In the Head Markup section, click Edit Head Markup.
-
Add Whatfix JavaScript in the pop-up, and then click Save.
-
Click Security in the settings menu.
-
In the Content Security Policy (CSP) section, under Security Level, click the dropdown, and then select Relaxed CSP: Permit Access to Inline Scripts and Allowed Hosts.
-
Under Trusted Sites for Scripts, click +Add Trusted Site.
-
Enter the following details in the pop-up.
- Name- Whatfix
- URL- https://whatfix.com/
-
Select the Active checkbox, and then click Add Site.
-
Similarly, add the following domains as mentioned in steps 8, 9, and 10.
- https://cdn.whatfix.com
- https://whatfix.com
- https://www.google-analytics.com (Optional only for Custom GA integration)
- https://analytics.google.com (Optional only for Custom GA integration)
Ensure that you whitelist Whatfix Domains in the respective Salesforce Lightning Instances as well. For more information, see Whitelist Whatfix domains on Salesforce Lightning.