Skip to content

Instantly share code, notes, and snippets.

@totango
Forked from saaspulse/saaspulse1.html
Created July 12, 2011 16:33
Show Gist options
  • Save totango/1078366 to your computer and use it in GitHub Desktop.
Save totango/1078366 to your computer and use it in GitHub Desktop.
Totango - JavaScript - Loading library
<!– 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");
quite = function () {};
var totango = {
track: quite,
identify: quite,
setAccountAttributes: quite
};
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment