Skip to main content
Gainsight Inc.

Exclude Specific Users from Tracking

What if I don’t want to track certain users in PX?

There are multiple ways to do this:

  1. Use Filter: You can let this data flow into the PX and use filters to filter out user with @xxxx.com/ other conditions. This way PX still tracks few of you who may be in the system testing stuff around with engagements, etc.
  2. Blacklisting (recommended): This is a UI option (enable/disable) that will filter out blacklisted users universally across the platform, and is planned for development in late 2019/early 2020.
  3. Modify the "Identify Code" completely to stop these users from coming into the PX. A developer from your team can help you with this. However, following is an example for your reference. Please note that none of your users will be tracked in PX even if you were testing things around. So, if you wish to continue with this approach, you might want to have your developer modify the code in a way which drops off all your users except few who might be using the platform.

Please refer the text if*(user email= ....) in the code snippet below, which is a change to our standard code.

//passing user and account objects:
if*(user email= ....)
aptrinsic("identify",
  {
//User Fields
    "id": "unique-user-id", // Required for logged in app users
    "email": "userEmail@address.com",
    "firstName": "John",
    "lastName": "Smith",
    "signUpDate": 1522697426479, //unix time in ms
    "plan" : "gold", //Custom attributes - please create those custom attributes in Aptrinsic via Account Settings to be tracked.
    "price" : 95.5,
    "userHash": "" // optional transient for HMAC identification
  },
 {
  //Account Fields
    "id":"IBM", //Required
    "name":"International Business Machine",
    "Program": "Platinum" // flat custom attributes
 });
  • Was this article helpful?