Skip to content

Instantly share code, notes, and snippets.

@KelSolaar
Created October 10, 2012 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KelSolaar/3867760 to your computer and use it in GitHub Desktop.
Save KelSolaar/3867760 to your computer and use it in GitHub Desktop.
Crittercism Ramblings
<!DOCTYPE html>
<html>
<head>
<title>Example Document without Crittercism</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="https://d1a62freaxhn7x.cloudfront.net/v1/crittercismClientLibraryMin.js"></script>
<script type="text/javascript">
$(document).ready(function() {
Crittercism.init({
appId : '5075c158d5f9b9796b000002', // Example: 47cc67093475061e3d95369d
appVersion : '1.0', // Developer-provided application version
});
// Initialize event handlers here
});
</script>
</head>
<body>
<p>
This document uses the Crittercism HTML5 library.
</p>
<script type="text/javascript">
try {
JSON.parse('Exception raised!');
} catch(e) {
document.write("Exception raised!");
Crittercism.logHandledException(e);
}
throw "Another exception!";
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment