Segment

Segment is a single platform that collects, stores, and routes your user data to hundreds of tools at the flick of a switch.

You can now send informational 2mee human holograms and 2mee rich media push notifications to individuals from the user journeys that you create in your CRM software. Below are the pre-requisites to start integrating your CRM with 2mee through the Segment platform.

Integrating Segment with 2mee

Go to 2mee destination on the Segment platform. 2mee settings page on Segments looks like the below picture. Follow the below steps to fetch API Key and Application Id from 2mee platform.

API Key

Your API Key is used as a security credential for your 2mee-Segment session. It can be retrieved by visiting the API Key section of your profile in the 2mee platform.

The API Key guarantees that your integration is secure.

  1. Click on the Profile picture visible on the top right corner of the screen, then select Profile.

2. Navigate to API Token as shown below. Create an API key (if not present) and note the value.

3. The API key will be used to secure all the Segment calls. This API key needs to be set in the header as:

Authorization: Bearer<API Key >

Application ID

Your Application Id will be used to identify the application/project with 2mee.

The Application Id can be seen by clicking on the view icon present on the bottom right corner as shown in the screenshot below. Please Copy the Application Id as it is required for identifying a project with 2mee.

Events

Once the platform is set, you can pick the HoloCapsule name from the 2mee Platform and add it as an Event.

Refer to HoloCapsule Documentation to create one. Here is an example of how a HoloCapsule is created on the 2mee platform

Notifications can now be sent via your CRM by referring to the UserID registered with 2mee.

{
    "event": "<HoloCapsule name>",
    "userId": "<2mee User ID>",
    "projectId": "23kwesej33",
    "messageId": "test-message-9qkgq",
    "timestamp": "2019-04-08T01:19:38.931Z",
    "type": "track",
    "email": "test@example.com",
    "properties": {
        "foo": "bar"
    }
}

To know more about features offered by Segment, please visit Segment-2mee Integration.

Last updated