Integration with Totango's REST API
Totango is a SaaS analytics solution for tracking your users, improve conversion and rention.
This is a node.js module wrapping Totango's REST API
npm install totango
Or better, add it to your project's
var totango = require'totango';var t = 'YOUR_TOTANGO_SERVICE_KEY';// A user in Totango is identified by a unique user id, an account id,// and an account name (used by totango to display the account nicely)var user = tuser'userId' 'accountId' 'Account Name';// Record an event on a useruserevent'Login' 'Checkout'if err console.logerrmessage;// event registered successfully;// Set attributes on a customer accountusersetAccountAttributes"Status": "Free"if err console.logerrmessage;// attribute registered successfully;// Set some attributes on a userusersetAttributes"Attr1": "value1""Attr2": "value2"if err console.logerrmessage;// attribute registered successfully;
This npm module is implemented by Olivier Crameri and provided for free by BugBuster
Copyright (C) 2013, BugBuster SA, SwitzerlandAuthors(s): Olivier CrameriPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.