CONTENT
  thinking about it, please hold on..

Getting Data from Segment.io

This knowledge base article will guide you how to integrate Totango and Segment.io.

By the end of this article you should be able to connect Totango to your customer activity data coming from your existing segment.io implemnation.

Segment is a customer data hub. You send your data from any device or platform. And segment translates and forward it to your apps in a language they understand

Since Totango is all about identifying users, it is important to add a few API calls to your segment implmenatnactio with exactly the information Totango needs. We’ll show you how.

STEP 1 - make sure you use the following segment code in your app.

As part of setup, remember that every pagetrack and identifycall that you want to show up in Totango must be tied to a groupId(Totango calls this Account ID).

For our client-side Javascript library (Analytics.js) that means you need to call group at least once with a groupId and we will cache it and attach it to future calls to other methods.

For server-side and mobile libraries you must include context.groupId in every call you want to be sent through to Totango so they can connect the dots between a call made to Segment and an account in their system.

See code specific code examples below.

Activity Tracking (Front End Integration)

analytics.identify([user ID], {
  email: [user email],
  name: [user name],
  }).group([account ID], {
     name: [account name],
     }).track([action],{
        category: [module]
        }).page(["__heartbeat"]);

}}();

Activity Tracking (Backend Integration) - Option A

[app object].analytics.track({
  userId: [User identification],
  event: [Action name],
  properties: {
      category: [Module name]
  },
  context: {
     groupId: [Account identification]
  }
}

Activity Tracking (Backend Integration) - Option B

[app object].analytics.page({
userId: [User identification],
name: [Action name],
category: [Module name],
context: {
groupId: [Account identification]
}
});

Attribute Tracking

[app object].analytics.track({
  userId: [User identification],
  [Attribute name]: [Attribute value],
  context: {
     groupId: [Account identification]
  }

STEP 2: Turn on Totango integration on Segment Web Console 

Navigate to Integrations → Totango and under options, enter your service ID for Totango. In order to get your Totango Service ID, click on your name on the Totango home page and you will be able to see the Service ID in the drop down menu.




 

STEP 3 : Test 

Start using your application to trigger the usage data to be sent to Totango and monitor that in the Developer Console.






 

Have more questions? Submit a request

Comments

Follow
Powered by Zendesk