Top
Add Whatfix JavaScript to Salesforce Community
  • 29 May 2023
  • 1 Minute To Read
  • Dark
    Light
  • PDF

Add Whatfix JavaScript to Salesforce Community

  • Dark
    Light
  • PDF

Article Summary

To display Whatfix content on Salesforce Community, the Whatfix Javascript must be added to the header of every community page.

your title goes here

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:

  1. Open Community Builder in Salesforce Lightning.
    SF_community_builder.png

  2. Click the Settings icon.
    SF_community_settings.png

  3. Click Advanced.
    SF_community_advanced.png

  4. In the Head Markup section, click Edit Head Markup.
    SF_community_edit_markup.png

  5. Add Whatfix JavaScript in the pop-up, and then click Save.
    SBC_head-popup.png

  6. Click Security in the settings menu.
    SF_community_security.png

  7. 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.
    SF_community_CSP.png

  8. Under Trusted Sites for Scripts, click +Add Trusted Site.
    SF_community_trustedsites.png

  9. Enter the following details in the pop-up.

  • Name- Whatfix
  • URL- https://whatfix.com/
  1. Select the Active checkbox, and then click Add Site.
    SBC_ADDsite_popup.png

  2. 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)
    Screenshot 2021-08-18 at 4.03.43 PM.png
Note

Ensure that you whitelist Whatfix Domains in the respective Salesforce Lightning Instances as well. For more information, see Whitelist Whatfix domains on Salesforce Lightning.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.