thinking about it, please hold on..

Client-side Segment Integration - Analytics.js browser integration



To properly configure data for Totango from Segment you must add within the segment snippet a call to analytics.identify() and using the syntax identified in the elements below, these should be inserted immediately below 

When you want to track a specific activity you should call the analytics.track() method when the activity is triggered.


The identify() method is used to configure Totango user data.

Here is the syntax for the identify method.

analytics.identify([userId], [traits], [options], [callback])

Example of the identify method:

analytics.identify('', {
  name: 'Jack Frank'


The group() method is used to configure Totango account data.  It expects to find Totango multi-product and/or hierarchy settings in the options object.  Depending on the feature set you are using you can use product, or product and parent, or neither.

Here is the syntax for the group method:, [traits], [options], [callback]);

Example of the group method with options set for multi product and hierarchy:'test_group', // account id
   name: "Initech",
   Totango: {
      parent: {
         id: 'XYZ-85b'
      product: {
         id: 'productA'   
} } });


When sending data to Totango the above will send two calls:

#1: Account ID: test_group will receive the Name 'Initech', and parentID: 'XYZ-85b'

#2: Account ID: test_group__productA will receive any activities fired in this session.


To override the system to not set the product account ID, (ie test_group__productA) you can override with:

product: {
         id: 'productA'
         account_id: '123'

To override so that only one call is made to test_group__productA:

   Totango: {
enableHierarchy = false ...

To not send data to Totango from a specific page replace the Totango JSON element with Totango:False

Totango: False
Have more questions? Submit a request


Powered by Zendesk