Created
December 2, 2010 15:08
-
-
Save saaspulse/725493 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<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