raygun4js
Version:
Raygun.io plugin for JavaScript
29 lines (27 loc) • 946 B
HTML
<html>
<head>
<title>Raygun4JS with User</title>
<script type="text/javascript">
!function(a,b,c,d,e,f,g,h){a.RaygunObject=e,a[e]=a[e]||function(){
(a[e].o=a[e].o||[]).push(arguments)},f=b.createElement(c),g=b.getElementsByTagName(c)[0],
f.async=1,f.src=d,g.parentNode.insertBefore(f,g),h=a.onerror,a.onerror=function(b,c,d,f,g){
h&&h(b,c,d,f,g),g||(g=new Error(b)),a[e].q=a[e].q||[],a[e].q.push({
e:g})}}(window,document,"script","/dist/raygun.min.js","rg4js");
</script>
</head>
<body>
<script type="text/javascript">
rg4js('apiKey', 'abcdef==');
rg4js('enableCrashReporting', true);
rg4js('setUser', {
identifier: 'hello@raygun.com',
isAnonymous: false,
email: 'hello@raygun.com',
firstName: 'Ronald',
fullName: 'Ronald Raygun',
uuid: 'test'
});
</script>
</body>
</html>