Skip to content

Instantly share code, notes, and snippets.

@totango
Created November 11, 2011 00:29
Show Gist options
  • Save totango/1356743 to your computer and use it in GitHub Desktop.
Save totango/1356743 to your computer and use it in GitHub Desktop.
TOTANGO - PHP Example
<?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}");
}
// totangoTrack('SP-XXXX-XX', "Test Org","Test User","Login", "Application");
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment