Overview
You can now leverage the Segment's existing instrumentation and add CustomerSuccessBox as a destination (downstream) and push all product usage events directly to CustomerSuccessBox. You can read more about the benefits of this integration here.
Segment.com is a Customer Data Infrastructure platform which provides a set of standard libraries (termed ‘Sources’) to collect customer data from, which can then be routed to multiple destinations at once. This is all handled by Segment.com and Segment partner/Destination provider to ensure a seamless plug-and-play experience.
Pre-requisites: To activate Segment integration you will need a paid plan of Segment. Basic(free) plan does not support adding a downstream destination. If you do not have a paid plan you may use our API/JS Library to log data in CustomerSuccessBox. Follow this guide for more details |
Why should I integrate with Segment?
Connecting Segment with CustomerSuccessBox, enables you to
- Capture product usage events and/or create new users and accounts
- Manage account and user attributes
- Get Risk Alerts whenever users are inactive
- Upsell Alerts based on product usage
- Set up Product Adoption Health
- Segment Accounts on product adoption metrics
- Track active/inactive users
This document covers how CustomerSuccessBox will consume the Segment events, and the minimum data points to be pushed to CustomerSuccessBox in order to leverage Segment.com integration.
With this integration, you can push
-
Feature Usage Events - a standalone feature used by a user.
-
For example: Project Created, Task completed, etc.
-
-
Account Traits - attributes/properties for an account.
-
For example: Account Name, Industry, Billing Address
-
-
User Traits - attributes/properties for a user.
-
For example: User’s Name, User Email, Title, Phone number
-
Who’s this for?
-
Developers who work on configuring Segment.com source
- Business stakeholders who will lead CustomerSuccessBox’s instrumentation efforts
Adding CustomerSuccessBox destination app
Adding CustomerSuccessBox destination app is as simple as adding a new destination in Segment:
-
Go to your workspace in Segment
-
Click on “Add Destination” button, search for and select the “CustomerSuccessBox” app
-
Fill "API key for POST request" retrieved from Settings (gear icon) > Developer Console > API keys in CustomerSuccessBox
Verify:
You can check incoming calls in real-time from under Settings > Developer Console > Event logs in CustomerSuccessBox.
Next Steps:
- Make sure all the Account/User metadata that is required to be pushed to CustomerSuccessBox is mapped to the Group > traits and Identify > traits calls
- Let your Customer Success Manager know that the fields are mapped
- Our integrations team will take over, do the mapping at the backend to complete the integration for you - typically within a day. However this may change depending on the integration queue.
NOTE: We process and aggregate any kind of data received from Segment on a daily basis (at the start of GMT). Expect Health/Alert/Segment/Milestones to be calculated on the subsequent day. |
Segment.com source configuration
CustomerSuccessBox requires both Accounts and Users identifiers to consume and process product usage events. To log data in CustomerSuccessBox you will need to pass account_id and user_id with every Segment Track, Group and Identify call.
-
Set account_id and user_id in Track > properties
analytics.track('Order Received', //Feature name in CustomerSuccessBox { cost: "$120.00", ... account_id: '12345678', //CustomerSuccessBox Account identifier user_id: 'john.doe@company.com', //CustomerSuccessBox User identifier module_id: 'Order', //Hardcode 'General', if not defined product_id: 'Your Product Name' //Hardcode your company name, if not defined total: 100 });
-
Set account_id and user_id in Identify > traits
analytics.identify('userID123', { account_id: '12345678', //CustomerSuccessBox Account identifier user_id: 'john.doe@company.com' //CustomerSuccessBox User identifier });
- Set account_id in Group > traits
analytics.group('accountId123', { account_id: '12345678', //CustomerSuccessBox Account identifier name: "ABC Group" });
?TIP: How to achieve this without re-instrumenting your code
In case the account and user fields are not in the format mentioned above you may follow this link for details: Transformations in Segment.
Transformation enable you to change event and property names to conform to CustomerSuccessBox specific field names for creating/updating Accounts, Users and product usage events.
|
We expect the following configuration in place to ensure that we can consume data as it is by simply connecting CustomerSuccessBox destination.
Segment call |
When to make |
Group |
|
Identify |
|
Track |
|
Recommended Segment.com source libraries
- Analytics.js for WebApp/Client
- Server libraries for Backend
Our goal with providing a CustomerSuccessBox Destination is to ensure that you can focus on building and maintaining a single source (provided by Segment) and let our destination take care of the rest.
The benefit of using Segment.com from a business perspective is the ability to maintain a single source for all your customer data, and the ability to push this customer data to a new destination as it is, at any point of time.
CustomerSuccessBox destination available in Segment lets you receive and maintain the following data points in CustomerSuccessBox.
Segment.com vocabulary |
CustomerSuccessBox vocabulary |
Description |
Account > account_id |
account_id will be the unique External Account identifier that we’d expect to be available on all the other systems (CRM, Billing, Support) that you’d want us to integrate with and pull data from. |
|
Account > traits (Account attributes) |
Traits must be sent in a standardized format as defined by Segment.com for common attributes. For other attributes (such as custom attributes), we’d list the exact traits that must be sent along with other Group traits. |
|
User > user_id |
user_id will be the unique External User identifier that we’d expect to be available on all the other systems (CRM, Billing, Support) that you’d want us to integrate with and pull data from. |
|
User > Traits (User attributes) |
Traits must be sent in a standardized format as defined by Segment.com for common attributes. For other attributes (such as custom attributes), we’d list the exact traits that must be sent along with other Identify traits. |
|
Track > event |
Feature |
You can set module_id and product_id in properties to specify module and product. If not set, we will use defaults as defined by us and you don’t need to worry about it. To learn more about module and product, refer to Understanding Product Usage section in this Getting Started guide. |
Sending Accounts and User traits
Traits must match a specific standard defined by Segment or CustomerSuccessBox. We only define standards in case Segment has not specifically standardized an attribute or in case you want to send the value for a custom attribute defined in CustomerSuccessBox.
For standardized traits defined by Segment, refer to:
Account traits
Traits (in Segment) |
Maps to (in CustomerSuccessBox) |
createdAt |
created_on |
email |
email |
employees |
employees |
industry |
industry |
name |
name |
phone |
phone |
address
|
|
stage |
stage |
licenses |
licenses |
{customAttribute API Name} |
Custom Attribute: {customAttributeAPI Name} NOTE: Navigate to Settings (Gear icon) > Attributes > Account Attributes in CustomerSuccessBox to get API name for the custom attributes to be brought in. |
User traits
Traits (in Segment) |
Maps to (in CustomerSuccessBox) |
createdAt |
created_on |
email |
email |
firstName |
first_name |
lastName |
last_name |
phone |
phone |
title |
title |
birthday |
birthdate |
address
|
|
role |
role |
updatedAt |
updated_on |
{customAttribute API Name} |
Custom Attribute: {customAttributeAPI Name} NOTE: You can navigate to Settings (Gear icon) > Attributes > User Attributes in CustomerSuccessBox to get API name for the custom attributes to be brought in. |
Contact Us
In most cases, you would have a dedicated Customer Success Manager who will be your point-of-contact for any queries or assistance. You may also,
- Initiate a chat directly from within CustomerSuccessBox. Use Chat option from Chat icon in left side navigation bar
- Create a conversation from here
- Send an email to support@customersuccessbox.com
Anadi Raj Tiwari
Comments