Last active
July 1, 2021 10:39
-
-
Save iamkeir/ee6404d8e691f96da86deee560648f46 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
<script> | |
(function() { | |
var createCookie = function() { | |
var cookVal = Math.floor(Math.random() * 1000); //MAX RANDOM NUMBER TO BE GENERATED | |
document.cookie = "run_fs_for_user=" + cookVal + ";domain=bowercollective.com;path=/"; | |
return cookVal; | |
}; | |
var getCookie = function() { | |
var dc = document.cookie; | |
var prefix = "run_fs_for_user="; | |
var begin = dc.indexOf(prefix); | |
if (begin == -1) { | |
return createCookie(); | |
} else { | |
var end = dc.indexOf(";", begin); | |
if (end == -1) { | |
end = dc.length; | |
} | |
} | |
return dc.substring(begin, end).split("=")[1]; | |
}; | |
if (getCookie() <= 900) { //HOW MANY NUMBERS SHOULD RESULT IN THE SNIPPET BEING RUN (CURRENT VALUES RESULT IN 90% SAMPLE) | |
window['_fs_debug'] = false; | |
window['_fs_host'] = 'fullstory.com'; | |
window['_fs_script'] = 'edge.fullstory.com/s/fs.js'; | |
window['_fs_org'] = 'THEVZ'; | |
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(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'); | |
} | |
})(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment