--- title: "Configure Gainsight Lightning Web Components for Salesforce" slug: "configure-gainsight-lightning-web-components-for-salesforce" updated: 2026-11-23T12:31:50Z published: 2026-11-23T12:31:50Z canonical: "support.gainsight.com/configure-gainsight-lightning-web-components-for-salesforce" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.gainsight.com/llms.txt > Use this file to discover all available pages before exploring further. # Configure Gainsight Lightning Web Components for Salesforce This admin guide article describes the prerequisites, configuration steps, and mapping requirements for setting up Gainsight CS App and Gainsight 360 Widget LWCs in Salesforce. ## Overview The Lightning Web Components (LWCs) for Salesforce enable Gainsight users to access customer data and insights directly within Salesforce. This eliminates the need to switch between Gainsight and Salesforce, allowing seamless collaboration between Account Management, Customer Success, and Support teams. ## Prerequisites Before configuring LWCs: - Add the Gainsight Gateway URL to Salesforce’s trusted URLs. Based on your region, add the following to Salesforce’s trusted URLs: - US1: [https://gateway.gainsightcloud.com](https://gateway.gainsightcloud.com) - US2: [https://gateway.us2.gainsightcloud.com](https://gateway.us2.gainsightcloud.com) - EU: [https://gateway.eu.gainsightcloud.com](https://gateway.eu.gainsightcloud.com) **Note**: After the URLs are added. Ensure the following **CSP Directives** are selected. - connect-arc - frame-arc - style-are - img-src ![CSP Directives.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/CSP_Directives.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A40%3A04Z&se=2026-11-24T19%3A40%3A04Z&sr=b&sp=r&sig=zFa9MdgDxS3gA3UX3%2BrSkKaYJuX2evhaLffco0jKTgQ%3D) - Add your Gainsight Tenant Domain to Salesforce’s trusted URLs in the following format: https://..*gainsightcloud.com* For Example: [https://productdemo.gainsightcloud.com](https://productdemo.gainsightcloud.com) for a US1 region tenant. Here, *productdemo* is the tenant subdomain, and *gainsightcloud.com* is the base domain. - Activate Lightning Web Security (LWS) to secure the functioning of LWCs. To activate LWS: 1. Navigate to **Setup** in Salesforce. 2. In the *Quick Find* box, search for **Session Settings**. 3. Enable the **Use Lightning Web Security for Lightning web components and Aura components** checkbox. For more information on activating lightning web security, refer to the Salesforce's [*Enable Lightning Web Security in an Org*](https://developer.salesforce.com/docs/platform/lightning-components-security/guide/lws-enable.html) article. ![Lightning web security section in Session settings.](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Lightning_web_security_section_in_Session_settings.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A40%3A04Z&se=2026-11-24T19%3A40%3A04Z&sr=b&sp=r&sig=%2F9sESKJSJ3MYtrIfh99v9K%2FarP7P0g29g9MWKM48xzE%3D) ## Available LWCs 1. **Gainsight CS App**: This renders the complete Gainsight application and is available in Home and Record Layouts. For more information on configuring CS apps, refer to the [Configure the Gainsight CS App LWC](/v1/docs/configure-gainsight-lightning-web-components-for-salesforce#configure-the-gainsight-cs-app-lwc) section below. 2. **Gainsight 360 Widget**: This renders while C360 or R360 views or any individual section from C360 or R360 based on configuration and is available in all record Layouts. For more information on configuring 360 widget, refer to the [Configure the Gainsight 360 Widget LWC](/v1/docs/configure-gainsight-lightning-web-components-for-salesforce#configure-the-gainsight-360-widget-lwc) section below. ### Configure the Gainsight CS App LWC To configure Gainsight CS App Lightning Web Component: 1. In Setup, enter the Lightning app in the Quick Find box, and then select **Lightning App Builder**. 2. Edit or create a Home Layout in Salesforce. For more information on creating a home layout, refer to the [*Create Custom Home Page Components*](https://help.salesforce.com/s/articleView?id=platform.home_page_components_custom_create.htm&type=5) article. Remain in the Lightning App Builder visual editor for the next step. ![Lightning app builder with new and Edit options.](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Lightning_app_builder_with_new_and_Edit_options.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A40%3A04Z&se=2026-11-24T19%3A40%3A04Z&sr=b&sp=r&sig=u%2FNzqJve18t0owlYH0ii58%2Fv0DX5vL2ivXx9M8L1Gn8%3D) 3. In the **Components** pane, search for **Gainsight CS App** which appears under **Custom** components. ![Gainsight CS App which appears under Custom components.](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Gainsight_CS_App_which_appears_under_Custom_components.__.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A40%3A04Z&se=2026-11-24T19%3A40%3A04Z&sr=b&sp=r&sig=r3hV40dePB1BE7MvvztnHz59cA%2FMkTh0uk%2FApxhaxbs%3D) 4. Drag and drop **Gainsight CS App** into the layout. 5. Click **Save**. ![Save option in lightning app builder.](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Save_option_in_lightning_app_builder.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A40%3A04Z&se=2026-11-24T19%3A40%3A04Z&sr=b&sp=r&sig=Dt5OEeFDSeiDhGbj0wPnGB3xlWlcKpk9XNEz20yyhVc%3D) 6. In the **App Launcher**, search for **Gainsight**. ![App Launcher, with Gainsight.](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/App_Launcher,_search_for_Gainsight.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A40%3A04Z&se=2026-11-24T19%3A40%3A04Z&sr=b&sp=r&sig=nkxhir0ZBm5qdXGo3s3lxeUK1scd4WyNA0jTfIS942g%3D) 7. Click **Gainsight**. The Gainsight application is displayed on the Salesforce home page. **Note**: Gainsight does not recommend adding the Gainsight CS App LWC as a sidebar widget. ![The Gainsight application is displayed on the Salesforce home page.](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/The_Gainsight_application_is_displayed_on_the_Salesforce_home_page.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A40%3A04Z&se=2026-11-24T19%3A40%3A04Z&sr=b&sp=r&sig=hez%2FhsIs8HaN5fAk6A9KhP954POqe4MFB4V0L2izT0Q%3D) ### Configure the Gainsight 360 Widget LWC To configure Gainsight 360 widget Lightning Web Component: 1. Edit or create a Record Layout for any Salesforce object. 2. In the *Search* box, enter Gainsight and locate **Gainsight 360 Widget** under **Custom** components. 3. Drag and drop the **Gainsight 360 Widget** into the layout. The Gainsight 360 Widget has the following options: 1. **Layout Type**: Select C360 or R360 from the dropdown list based on required view. By default, **C360** is selected. ![Layout type options C360 and R360.](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Layout_type_options_C360_and_R360.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A40%3A04Z&se=2026-11-24T19%3A40%3A04Z&sr=b&sp=r&sig=NytWnk2u2MhB%2BgfU%2BtuK76Ygj96llBvZWmaYkA8hfgg%3D) 2. **Section to Render**: Select a value from the dropdown list to display all sections or a specific section from the 360 layout. By default, the **All Sections** value is selected. ![Sections to render option with All Sections.](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Sections_to_render_option_with_All_Sections.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A40%3A04Z&se=2026-11-24T19%3A40%3A04Z&sr=b&sp=r&sig=yTU6Q%2Fw6t8k9GcudGwQ4%2F45Gx1yGMUO5QA38%2BnD%2Ffdc%3D) 3. **Sections to Render**: Enter the section name separated by semicolon(;)if you want to render more than one section. Example: COCKPIT;TIMELINE. 4. **Show R360 in Sidebar**: Enter true to render R360 in the third pane(overlay) after user clicks on Relationship. Mini 360 must be enabled for the tenant to use this. 5. **Open R360 in new tab**: Enter true to open R360 in a new tab on the Home page as an LWC. Enter *false* to display R360 in the Visualforce page. **Note**: If both **Show R360 in Sidebar** and **Open R360 in new tab** is set to *false*, R360 loads inline. However if both **Show R360 in Sidebar** and **Open R360 in new tab** is set to *true*, R360 shows in sidebar. ![Lightning app builder page with 360 Widget layout.](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Lightning_app_builder_page_with_360_Widget_layout.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A40%3A04Z&se=2026-11-24T19%3A40%3A04Z&sr=b&sp=r&sig=JUGVk54Bvo%2FqJ7QKj3uaf2K8d4wXKMr9bg%2Fyr6mbjS0%3D) 4. Click **Save**. The configured C360 or R360 layout is displayed directly against the Salesforce record. ![The configured C360 or R360 layout is displayed directly against the Salesforce record.](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/The_configured_C360_or_R360_layout_is_displayed_directly_against_the_Salesforce_record..jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A40%3A04Z&se=2026-11-24T19%3A40%3A04Z&sr=b&sp=r&sig=KHkf2VNkUFyspMTIcHapXkdvKy%2FOBJi6jrqDzFkTnOk%3D) ### Account and Relationship Column Mapping When configuring the Gainsight 360 Widget, the system must identify the correct field that maps to the Gainsight Account ID (for C360) or Relationship ID (for R360). **Note**: Account and Relationship mapping are applicable for Gainsight 360 widget ( Lightning Web Component). For more information on how to map Account and Relationship objects, refer to the [*Account and Relationship Column Mapping*](/v1/docs/install-and-configure-gainsight-customer-success-in-salesforce#account-and-relationship-column-mapping) section in *Install and Configure Gainsight Customer Success in Salesforce* article. - Account ID Mapping ![Column mapping for Account.](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Column_mapping_for_Account.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A40%3A04Z&se=2026-11-24T19%3A40%3A04Z&sr=b&sp=r&sig=YGvWGFNTIgG7gIwwjxrRG9LN%2BjUjvp1sjUcsu2aCNb8%3D) - Relationship ID Mapping ![Column mapping for relationship.](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Column_mapping_for_relationship.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A40%3A04Z&se=2026-11-24T19%3A40%3A04Z&sr=b&sp=r&sig=lRqsDLkn0pPA5K1ko%2BlHFsRA3dELmiRXAjkudYIKtTI%3D)