Skip to main content
Gainsight Inc.

Track Users on Your Corporate Site Using PX

ATTENTION: Documentation Updates are in Process
We are in the process of updating the screenshots, GIFs, and content to match the latest UX based on the Horizon Experience’s new look and feel. To learn more about the Horizon Experience in Gainsight PX, click here.

Gainsight PX supports the tracking of your users and accounts across your various channels (web site, web app, mobile, and email). Therefore, allowing you to track user activity from anonymous to lead to the user!

To add support for tracking your users’ activities from your web site, you’ll need to add the Gainsight PX web site tracking tag to the header of your web site pages. The exact tracking tag to add to your web site can be found on your products page in PX under the web tab.

IMPORTANT: The web site tag that you will add to your web site pages will have a -1.


Once the PX web site tag has been added to your web site pages, users will get cookied when entering your website and PX will collect and store their activity.

Note that although you will not find these cookied users in the PX interface, they are being saved and tracked and stored in PX.  These anonymous users and activity will be hidden until one or both of the following occur:

  • The anonymous user fills out a form on your web site at which point they will become a lead.  The lead will then appear in the Gainsight PX Audience Explorer as a lead, along with all of their previous activity.  This lead will become a user in Gainsight PX if/when they sign up/sign in to your product (web app) and are identified.
  • The previously anonymous user signs up/signs in to your web app and is identified.  This user will now appear in Gainsight PX Audience Explorer as a user along with all of their previous activity.

audience explorer.png

How to send Metadata to Lead

  1. Create custom attributes for the user that you want to load while capturing the lead.
  2. Copy the below lines of code where are they are tracking the marketing website:

Example 1:

update a field for the current user

aptrinsic('lead', '', {'role': 'admin'});

Example 2:

aptrinsic('lead', '',{'signedUpAt': 123412341234,'firstName': 'John','lastName': 'Smith',// flat custom attributes

  • Was this article helpful?