Skip to content

Instantly share code, notes, and snippets.

@KirillFE
Created July 8, 2019 11:10
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 KirillFE/9c704884e61dc6494b561c02bbc681c7 to your computer and use it in GitHub Desktop.
Save KirillFE/9c704884e61dc6494b561c02bbc681c7 to your computer and use it in GitHub Desktop.
@if (Request.ServerVariables["REMOTE_ADDR"].ToString() != "5.32.175.164" && Request.ServerVariables["REMOTE_ADDR"].ToString() != "86.169.179.169") {
<script>
window.onload = function() {
setTimeout(function() {
window['_fs_debug'] = false;
window['_fs_host'] = 'fullstory.com';
window['_fs_org'] = 'M0PXB';
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_host+'/s/fs.js';
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.shutdown=function(){g("rec",!1)};g.restart=function(){g("rec",!0)};
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(){};
})(window,document,window['_fs_namespace'],'script','user');
}, 4000);
}
</script>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment