Gainsight

Gainsight

Gainsight is a customer success and product experience platform. Scripts embed in-app walkthroughs, NPS surveys, and product usage analytics within web applications. Cookies identify users and track feature engagement to measure adoption, guide onboarding, and surface targeted in-product messages.

Overview

Gainsight operates two primary products: Gainsight CS (Customer Success) for managing customer health and retention workflows, and Gainsight PX (Product Experience) for in-app engagement and product analytics. The browser-side scripts that appear on websites and web applications are almost exclusively from Gainsight PX, which embeds product usage tracking, in-app guides, NPS surveys, and feature adoption analytics directly into web applications.

What This Script Does

Gainsight PX deploys a JavaScript SDK within web applications to track user behavior and deliver in-app experiences:

User Identification and Tracking

  • The PX SDK identifies users through an aptrinsic('identify', ...) call that passes user attributes (user ID, email, account ID, plan type) to Gainsight
  • A persistent cookie or local storage entry (commonly prefixed with apt. or _gainsight_) tracks the user across sessions within the application
  • Anonymous tracking is supported for users who have not yet been identified (pre-login states)

Product Analytics

  • Tracks page or screen views within the application, including SPA (single-page application) route changes
  • Records feature engagement events: button clicks, module usage, configuration changes
  • Captures custom events pushed through the aptrinsic('track', ...) API for business-specific metrics
  • Measures time spent on specific features or pages for adoption analysis

In-App Engagement

  • Renders guided walkthroughs and tooltips overlaid on the application UI to onboard new users
  • Displays NPS and CSAT survey modals at configured trigger points (e.g., after 30 days of usage or after completing a workflow)
  • Shows targeted in-app messages, banners, and announcements based on user segment membership
  • Manages knowledge center bots and resource centers embedded in the application

Scripts load from web-sdk.aptrinsic.com and api.aptrinsic.com. Data collected is transmitted to Gainsight's cloud infrastructure for analysis, segmentation, and engagement rule evaluation.

Consent & Compliance

Gainsight PX spans both analytics and functional categories. The in-app guides and surveys provide functional value to the user (onboarding help, feedback collection), while the underlying product usage analytics serves the application provider's business objectives.

Under GDPR, identified user tracking through the PX SDK constitutes personal data processing. However, the context matters: Gainsight PX typically operates within authenticated web applications where users have an existing account relationship. The lawful basis is often legitimate interest (product improvement, customer success) rather than consent, though this must be evaluated on a case-by-case basis. Cookies set by the PX SDK are non-essential and technically require consent under ePrivacy, even in authenticated application contexts.

Under CCPA/CPRA, the product usage data and user behavioral profiles Gainsight collects constitute personal information. Business-to-business exemptions may apply depending on the nature of the application and its users, but consumer-facing applications must provide appropriate disclosures.

Should You Block This Without Consent?

Conditional. Gainsight PX combines functional in-app guidance with analytics tracking. In authenticated B2B applications, many organizations rely on legitimate interest as the lawful basis and load the PX SDK without a consent gate, disclosing the tracking in their privacy policy. For consumer-facing applications or when strict ePrivacy compliance is required, the analytics tracking component should be gated behind consent while core application functionality remains accessible.

Visit website

Consent Categories

Analytics
Functional

Also Known As

gainsightgainsight pxgainsight trackingproduct analytics consentgainsight cookiesnps survey privacy

Industries

Computers Electronics and TechnologyProgramming and Developer Software

Tracked Domains (1)

gainsight.comAnalytics

Frequently Asked Questions

Do I need consent to use Gainsight PX?

Conditional. Gainsight PX spans analytics and functional categories. In authenticated B2B applications, many organizations use legitimate interest as the lawful basis. For consumer-facing apps or strict ePrivacy compliance, the analytics tracking component must be gated behind consent.

What does Gainsight PX track?

Gainsight PX tracks page views, SPA route changes, feature engagement events, and time spent on features. A persistent cookie or local storage entry (apt. or _gainsight_ prefixed) identifies users across sessions. User attributes (ID, email, account, plan) are passed via aptrinsic('identify'). Scripts load from web-sdk.aptrinsic.com.

How does ConsentStack handle Gainsight?

ConsentStack categorizes Gainsight PX under analytics and functional. For consumer-facing sites, ConsentStack blocks the PX SDK until consent is granted. In B2B application contexts, ConsentStack can be configured to allow Gainsight under legitimate interest, with the analytics features activating on page load for authenticated users.

Related Vendors

Google
Google
Google is the dominant provider of web analytics, advertising, and infrastructure tools. Scripts like Google Analytics, Tag Manager, Ads, and reCAPTCHA collect behavioral data, manage tag firing, serve targeted ads, and detect bots. Sets persistent cookies to track users and correlate activity across sites.
Google Analytics
Google Analytics
Google Analytics is the world's most widely deployed web analytics platform. Scripts track page views, sessions, user demographics, traffic sources, and conversion events. Drops cookies to identify returning visitors and attribute user journeys across sessions.
Firebase
Firebase
Firebase is Google's mobile and web application development platform offering authentication, real-time database, cloud functions, and analytics. Web SDK scripts initialize Firebase services and may track app events via Firebase Analytics, which is powered by Google Analytics 4. Widely used in single-page apps and PWAs for backend infrastructure and usage tracking.
Microsoft
Microsoft
Runs Clarity (session recording and heatmaps), the Microsoft Advertising UET tag (conversion tracking), and Bing's remarketing pixel. Clarity injects a recording script that captures mouse movements, clicks, and rage clicks. The UET tag fires conversion events to tie ad clicks to on-site actions across Microsoft's ad network.
Microsoft Dynamics 365
Microsoft Dynamics 365
Microsoft Dynamics 365 is a suite of CRM and ERP applications that integrates with websites through tracking scripts and embedded forms. Web tracking code captures visitor behavior, page views, and form submissions to build customer profiles and score leads. Sets cookies to identify returning visitors and attribute marketing touchpoints across sessions.
LinkedIn Insight Tag
LinkedIn Insight Tag
LinkedIn Insight Tag is a JavaScript tracking pixel for LinkedIn's advertising and analytics platform. The tag fires on every page view to collect URL, referrer, IP address, and device data for conversion tracking, website demographics reporting, and retargeting audience building. Sets cookies to identify LinkedIn members across advertiser websites.

Manage consent for Gainsight

ConsentStack automatically detects and manages Gainsight trackers so your site stays compliant with global privacy regulations.