Skip to content

Commit

Permalink
Merge pull request #504 from hackclub/add-fullstory-for-error-reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwofford authored May 7, 2023
2 parents 647033e + 4d7598a commit 0b1e0f5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Libraries/fullstory.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Tracking snippet provided by fullstory
// this is used to track errors that get reported
window['_fs_host'] = 'fullstory.com';
window['_fs_script'] = 'edge.fullstory.com/s/fs.js';
window['_fs_org'] = 'ARN0J';
window['_fs_namespace'] = 'FS';
(function(m,n,e,t,l,o,g,y){
if (e in m) {if(m.console && m.console.log) { m.console.log('FullStory namespace conflict. Please set window["_fs_namespace"].');} return;}
g=m[e]=function(a,b,s){g.q?g.q.push([a,b,s]):g._api(a,b,s);};g.q=[];
o=n.createElement(t);o.async=1;o.crossOrigin='anonymous';o.src='https://'+_fs_script;
y=n.getElementsByTagName(t)[0];y.parentNode.insertBefore(o,y);
g.identify=function(i,v,s){g(l,{uid:i},s);if(v)g(l,v,s)};g.setUserVars=function(v,s){g(l,v,s)};g.event=function(i,v,s){g('event',{n:i,p:v},s)};
g.anonymize=function(){g.identify(!!0)};
g.shutdown=function(){g("rec",!1)};g.restart=function(){g("rec",!0)};
g.log = function(a,b){g("log",[a,b])};
g.consent=function(a){g("consent",!arguments.length||a)};
g.identifyAccount=function(i,v){o='account';v=v||{};v.acctId=i;g(o,v)};
g.clearUserCookie=function(){};
g.setVars=function(n, p){g('setVars',[n,p]);};
g._w={};y='XMLHttpRequest';g._w[y]=m[y];y='fetch';g._w[y]=m[y];
if(m[y])m[y]=function(){return g._w[y].apply(this,arguments)};
g._v="1.3.0";
})(window,document,window['_fs_namespace'],'script','user');
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1"
/>

<!-- Fullstory for error reporting and frustrated clicks -->
<script src="Libraries/fullstory.js"></script>

<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
Expand Down

1 comment on commit 0b1e0f5

@vercel
Copy link

@vercel vercel bot commented on 0b1e0f5 May 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sinerider – ./

sinerider-git-main.hackclub.dev
www.sinerider.com
sinerider.hackclub.dev

Please sign in to comment.