This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!– step 1: include the loader script –> | |
<script src="//s3.amazonaws.com/totango-cdn/totango.js"></script> | |
<!– step 2: initialize tracking with provided service-id (SP-XXXX-XX) –> | |
<script type="text/javascript"> | |
try { | |
var totango = new __totango("SP-XXXX-XX"); | |
} catch (err) { | |
// uncomment the alert below for debugging only | |
// alert ("Totango code load failure, tracking will be ignored"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function totangoTrack($serviceID, $org, $user, $activity, $module) { | |
$org = rawurlencode($org); | |
$user = rawurlencode($user); | |
$activity = rawurlencode($activity); | |
$module = rawurlencode($module); | |
$r = file_get_contents("https://sdr.totango.com/pixel.gif/?sdr_s={$serviceID}&sdr_o={$org}&sdr_u={$user}&sdr_a={$activity}&sdr_m={$module}"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
totango.track('test-activity', 'test-module', 'test-org' , 'test-user'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tracker.track('test-activity', 'test-module'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
totango.identify('account-id', 'username'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var skill_sets = { | |
JavaScript : 'ninja!', | |
FrontEnd : ['html5', 'css3', 'jquery' , 'responsive-design'], | |
PHP : ['wordpress', 'any'], | |
Java : ['spring', 'sql', 'spring-mvc'], | |
Cloud : ['ec2', 's3', 'sqs', 'mySql'], | |
Creativity : 'must!' | |
}; | |
var we_give = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Adding organization attributes to the identify method | |
totango.identify( | |
{o:'org-unique-id', | |
ofid:'id-on-salesforce', | |
odn: 'org-human-friendly-name'}, | |
'USERNAME'); | |
// Adding organization attributes to the track method | |
totango.track( | |
'activity', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
totango.identify({ | |
'id':'account-id', | |
'name': 'account display name' | |
}, | |
'username'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// identifying an account and setting attributes for it | |
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
// totango.identify(account, user); | |
// params: | |
// - account: the account the user belongs to. possible values: | |
// - string: value is the account id | |
// - object: | |
// { 'o': 'account-id', | |
// 'attribute-name' : 'attribute-value', } | |
// - username: Name of the user of this session |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// HTTP call: | |
http://sdr.totango.com/pixel.gif/?sdr_s=SP-xxxx-xx&sdr_o=Acme&sdr_o.Sales%Manager=Value |
OlderNewer