Gainsight PX Web Device Mode Integration

Send events to Gainsight PX using RudderStack web device mode.

After you have successfully instrumented Gainsight PX as a destination in RudderStack, follow this guide to correctly send your events to Gainsight PX in the web device mode.

Domain allowlisting for web device mode

In web device mode, RudderStack loads the Gainsight PX native SDK from https://web-sdk.aptrinsic.com, https://web-sdk-eu.aptrinsic.com, https://web-sdk-us2.aptrinsic.com. The host depends on your data center. Depending on your Content Security Policy, allow these sources in script-src.

You can monitor vendor scripts with a report-only Content Security Policy.

Identify

Use the identify call to identify a user in Gainsight PX.

When you send an identify call, RudderStack passes that user’s information to Gainsight PX with userId as the Gainsight PX user ID and the user traits are mapped to the visitor metadata.

A sample identify call is shown:

javascript
rudderanalytics.identify("1hKOmRA4el9Z", {
  email: "alex@example.com",
  name: "Alex Keener",
  gender: "Male",
  countryName: "USA",
  countryCode: "US",
  city: "New Orleans",
  score: 100,
  hobbyCustomField: "Painting",
  title: "Doctor",
})

Track

The track call lets you capture user events along with the associated properties.

A sample track call is shown:

javascript
rudderanalytics.track("User Tracked", {
  description: "Sample user tracking event",
  status: "Demo",
})

Group

You can use the group call to create or update an account in Gainsight PX.

When you send a group call, RudderStack sets the groupId as the Gainsight PX account ID and maps the group traits to the account metadata.

Your group calls must contain the groupId and traits if you are using your Gainsight PX account data.

A sample group call is shown:

javascript
rudderanalytics.group("group18", {
  name: "Sample Group",
  industry: "Online Streaming",
  numberOfEmployees: 10000,
  website: "www.example-group.com",
  cultureCustomField: "customfield01",
})

Questions? Let's figure it out together.

Join the RudderStack Slack community to connect with other users, customers, and the RudderStack team — or reach out for direct support.