Skip to content

Instantly share code, notes, and snippets.

@saaspulse
Created December 5, 2010 13:20
Show Gist options
  • Save saaspulse/729069 to your computer and use it in GitHub Desktop.
Save saaspulse/729069 to your computer and use it in GitHub Desktop.
SaaSPulse - JavaScript - Loading library
<html>
<head>
<title>Testing the SDR files</title>
<!– step 1: include the loader script –>
<script src='//s3.amazonaws.com/totango-cdn/sdr.js'></script>
<!– step 2: initialize tracking with provided service-id (SP-XXXX-XX) –>
<script type="text/javascript">
try {
var tracker = new __sdr("SP-XXXX-XX");
} catch (err) {
// uncomment the alert below for debugging only
// alert ("SaaSPusle tracking code load failure, tracking will be ignored");
quite = function () {};
var tracker = {
track: quite,
identify: quite
};
}
</script>
</head>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment