CONTENT
  thinking about it, please hold on..

Javascript Tracker within a Hierarchy Context

Prerequisite

You should be familiar with the Totango Javascript Collector.
It also helps to understand Attributes and Account Hierarchy.

Javascript Tracker with Hierarchy Specific considerations for Account attributes

All of the data that will be sent to Totango will use the same syntax as in the general Javascript collector, with a few small exceptions.  I have highlighted the exceptions in yellow below.  Let’s examine this multi-product hierarchy diagram and identify the required data that should be sent for each level.

Parent Account

AccountID: required
Name: required *This requirement is only to establish name -- there is no need to send this in subsequent calls (unless the name changes).

All other attributes optional.

Parent-Sub Account (Child)

AccountID: required
Name: required *This requirement is only establish name, there is no need to send this in subsequent calls, unless the name changes.
ParentID: required (AccountID of the Parent Account) syntax: sdr_o.parent_id *This requirement is only to establish the parent, there is no need to send this in subsequent calls, unless the parent changes.

All other attributes optional.

Product Account

Account ID: See the Hierarchy glossary for choosing the Product AccountId.
Name: optional (dependent on Settings).
ParentID: required (AccountID of the Parent Account) *This requirement is only to establish the parent, there is no need to send this in subsequent calls, unless the parent changes.
ProductID: required *This requirement is only to establish the product, there is no need to send this in subsequent calls.

All other attributes optional.

Examples

Let’s use the hierarchy at right once again as an example and let’s assume that all account IDs are the same as the names mentioned in the diagram.

Example:

var totango_options = {
  service_id: "SP-0000-01",                     // your unique Totango service id. Don't change this. 
  user: {
    id: "james.dragmire@yahoo.com",             // User ID  
    name: "James Dragmire",                     // Name of User
  },
  account: {
    id: "782246",                               // Account ID
    parent_id: "239487654",                     // parent_id
    name: "Microsoft",             	        // account_name
    status: "Paying",                           // OPTIONAL: status of the account "Free", "Paying", ..
    "Create Date": "2011-12-20T19:25:58.0Z"     // OPTIONAL: date the account was created
  },
  product: {
    id: "Office 360"				// product_id
},
};
Have more questions? Submit a request

Comments

Follow
Powered by Zendesk