--- title: "Install Gainsight PX using Segment for web apps" slug: "install-gainsight-px-using-segment-for-web-apps" updated: 2026-11-23T12:30:19Z published: 2026-11-23T12:30:19Z canonical: "support.gainsight.com/install-gainsight-px-using-segment-for-web-apps" --- > ## 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. # Install Gainsight PX using Segment for web apps This article explains how to install Gainsight PX using Segment for tag management. ## Overview This configuration checklist is for those who use the [Segment.com](https://segment.com/integrations/aptrinsic/) for tag management to install Gainsight PX. If you are using another method, check the following: - [Using Google Tag Manager](/v1/docs/install-gainsight-px-with-google-tag-manager) - [Install Gainsight PX on Your Web App without tag management](/v1/docs/install-gainsight-px-on-your-web-app) Segment must be running on all of pages of your web application or site where you wish to use Gainsight PX. Your Segment integration must include use of the identify call (identifies the user) and the Group call (identifies the account). For more information on *Identify* and *Group* call articles from *Additional Resources* section. Still here? Great, perform the following steps to install Gainsight PX using Segment. - [Create your Product Definition and Gainsight PX Tag Code](/v1/docs/install-gainsight-px-using-segment-for-web-apps#create-your-product-definition-and-gainsight-px-tag-code) - [Setup Gainsight PX in Segment.com](/v1/docs/install-gainsight-px-using-segment-for-web-apps#setup-gainsight-px-in-segmentcom) - [Verify User Event Data is Flowing into Gainsight PX](/v1/docs/install-gainsight-px-using-segment-for-web-apps#verify-user-event-data-is-flowing-into-gainsight-px) - [Select PX Integration from Segment Store](/v1/docs/install-gainsight-px-using-segment-for-web-apps#select-px-integration-from-segment-store) After the installation is successful, events and associated users/accounts from your product are updated in Gainsight PX. ## Create your Product Definition and Gainsight PX Tag Code 1. Navigate to **Administration > Products** and create your product definition. Following image shows you an example. ![product_definition.PNG](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/product_definition.PNG?sv=2026-02-06&spr=https&st=2026-11-24T18%3A10%3A20Z&se=2026-11-24T19%3A10%3A20Z&sr=b&sp=r&sig=tdQ9PLfHcf0pRxrJ8%2BfiBjZ%2BR3D7iL77vwAtzcCs9dg%3D) A tab for each channel is displayed such as Web App and Website for which the Gainsight PX Tag can be generated. ![Url.jpeg](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Url_2.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A10%3A20Z&se=2026-11-24T19%3A10%3A20Z&sr=b&sp=r&sig=VVODBioBqRBLIpuICfAH9%2F4tzbAToqGzouzO5mSVqUI%3D) The URL you enter is for informational purposes **only** and what you enter there does **not** impact your use of Gainsight PX. Nevertheless, it is good practice to enter in the URL there to keep track of which of your products is assigned to which tags. Now you have created the tag that will be associated with your product and channel (i.e. Web App or Website). If you also have a website that you want to track leads from, click the Website tab, enter the URL for your website to create the tag for the website channel. **Note:** Gainsight PX allows you to: - Create, track and build engagements for more than one product. Repeat the process for your additional products. - Define a product for each of your environments such as staging and production that you plan to use. If you use the free version, Gainsight PX allows you to define only one product. ## Setup Gainsight PX in Segment.com To setup Gainsight PX using [Segment.com](https://segment.com/integrations/aptrinsic/), include the Gainsight PX Integration located at their Integrations page. With Segment’s Gainsight PX integration allows you to easily integrate Gainsight PX Tag and Web SDK for your website and web app. To set up Segment for Gainsight PX: 1. Locate the Gainsight PX integration in the Segment Integrations Dashboard. 2. Turn the toggle **ON**. 3. Configure the parameters including Gainsight PX Product ID which you can copy from the **Products** screen. It can be identified as the following: AP-xxxxxxxxxxx-2. ![2.jpeg](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/2_2.jpg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A10%3A20Z&se=2026-11-24T19%3A10%3A20Z&sr=b&sp=r&sig=xUu8PvKGKLxmUSLGkkt1A35HmXvzGs8oe6H%2F7q0XQWw%3D) ## Verify User Event Data is Flowing into Gainsight PX After your developers confirm that the above steps are completed and the code is pushed, log in your Gainsight PX subscription to check whether the events, users and accounts are updated from your application. **Note:** When the **userID** field is empty and the **anonymousID** field is filled out, Gainsight PX considers the user as anonymous and does not record events from such users. ### Audience Explorer ![audience_explorer.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/audience_explorer.jpeg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A10%3A20Z&se=2026-11-24T19%3A10%3A20Z&sr=b&sp=r&sig=LuKwgke5BfqTersaNygYlbCGC0eK97Pvyu34yMKIENo%3D) Select one of the users and click on the **Full Profile** button on the **User Profile** tab to review the recent activity. ### Accounts Explorer ![accounts_explorer.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/accounts_explorer.jpeg?sv=2026-02-06&spr=https&st=2026-11-24T18%3A10%3A20Z&se=2026-11-24T19%3A10%3A20Z&sr=b&sp=r&sig=S5J3xGt%2BwM3H3LVNFLDNA9wq6hLS4CfSy4YD83Oz7qI%3D) Refer to the *Troubleshoot FAQ* article from the [Additional Resources](/v1/docs/install-gainsight-px-using-segment-for-web-apps#additional-resources) section for more help if you do not see users or events updated in your Gainsight PX subscription. INSTALLATION COMPLETE... you are now ready to start using Gainsight PX! Now, check the *Product Mapper® Overview* article in the *Instrument your Product* guide from the [Additional Resources](/v1/docs/install-gainsight-px-using-segment-for-web-apps#additional-resources) section to get started :) ## Select PX Integration from Segment Store This section explains how to select PX integration from the Segment store. ### Prerequisite Gainsight PX must be configured as a destination in Segment. For more information, refer to the *Gainsight PX Destination* article from the [Additional Resources](/v1/docs/install-gainsight-px-using-segment-for-web-apps#additional-resources) section. ### Select an Integration To select the PX Integration: 1. Log in to your Segment account. 2. From the left pane, click **Connections**. 3. Click **Add Destination**. ![segment_connections.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/segment_connections.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A10%3A20Z&se=2026-11-24T19%3A10%3A20Z&sr=b&sp=r&sig=CFtKHyfHtA%2FYREGOdES1tGNOytfgadDP7M2Qzh4qBa8%3D) 4. Search and select the Gainsight PX widget. ![segment_px.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/segment_px.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A10%3A20Z&se=2026-11-24T19%3A10%3A20Z&sr=b&sp=r&sig=Z%2FjyXQ3w4o1sPCxv48haaUK%2Fla7E8RWVlFxinUcDeC0%3D) 5. Click **Configure Gainsight PX**. The **Select Source** window is displayed. ![gainsight PX.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/gainsight_PX.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A10%3A20Z&se=2026-11-24T19%3A10%3A20Z&sr=b&sp=r&sig=1E1H2zO5BWP0EAjwCWoJNkV48dDKREaycPcdg21Lq9g%3D) 6. Select the source. ![source.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/source.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A10%3A20Z&se=2026-11-24T19%3A10%3A20Z&sr=b&sp=r&sig=kmJMu8oc5dTrUusjI2yr6ggJVHM8qVHhfnKlHYQii84%3D) 7. In the *Connection Settings* section, click on the **API Key** field. ![GainsightPX_Settings_API.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/GainsightPX_Settings_API.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A10%3A20Z&se=2026-11-24T19%3A10%3A20Z&sr=b&sp=r&sig=qACTOIBI4JJYmpLBVJ0qhJrxQDF4L9VckE%2BCD2I3Qgg%3D) 8. Click **Edit**. 9. Enter the Gainsight PX **API Key.** 10. Click **Save**. ![save.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/save.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A10%3A20Z&se=2026-11-24T19%3A10%3A20Z&sr=b&sp=r&sig=32eGNs2gCQqJ3Kh1dkoRPx9vnZ4RBpPYHNpXi8D2EpQ%3D) 11. In the *Other Settings* section, click on the **Data Center** field. 12. From the **Data Center** dropdown in the *Edit Settings* window, select EU if your PX instance is at [https://app-eu.aptrinsic.com](https://app-eu.aptrinsic.com). ![GainsightPX_EU.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/GainsightPX_EU.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A10%3A20Z&se=2026-11-24T19%3A10%3A20Z&sr=b&sp=r&sig=7I5egXkzzlUG9CPUAiZal4P4nelNAxuTunuvZ36mK%2Fc%3D) 13. Click **Save**. For information on how to integrate Gainsight PX with Segment server-side events, refer to the *Configure Segment.com Cloud Destination (Server to Server)* article from the [Additional Resources](/v1/docs/install-gainsight-px-using-segment-for-web-apps#additional-resources) section. ## Additional Resources | [Identify Call](https://segment.com/docs/connections/spec/identify/) | | --- | | [Group Call](https://segment.com/docs/connections/spec/group/#example) | | [Troubleshoot FAQ](/v1/docs/troubleshoot-faq) | | [Product Mapper® Overview](/v1/docs/product-mapper-overview) | | [Gainsight PX Destination](https://segment.com/docs/destinations/aptrinsic/) | | [Configure Segment.com Cloud Destination (Server to Server)](/v1/docs/configure-segment-com-cloud-destination-server-to-server) |