Skip to content

Instantly share code, notes, and snippets.

@saaspulse
Created December 2, 2010 15:08
Show Gist options
  • Save saaspulse/725493 to your computer and use it in GitHub Desktop.
Save saaspulse/725493 to your computer and use it in GitHub Desktop.
<html>
<head>
<title>Testing the SDR files</title>
<!– step 1: include the loader script –>
<script src='//s3.amazonaws.com/saaspulse-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>
<body>
<h1>Test SDR tracking functionality</h1>
<button onclick="tracker.track(‘test-activity’, ‘test-module’, ‘test-org’ , ‘test-user’);">Press here to send SDR</button>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment