- 05 Jun 2024
- 1 Minute To Read
-
Print
-
DarkLight
-
PDF
Add Whatfix JavaScript to Salesforce Community
- Updated On 05 Jun 2024
- 1 Minute To Read
-
Print
-
DarkLight
-
PDF
To display Whatfix content on Salesforce Community, the Whatfix Javascript must be added to the header of every community page.
Salesforce Community Integration can only be done for accounts that use the JS Embed model. For customers using the Browser Extension model, this integration is not possible.
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.