forked from sindresorhus/awesome
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
1021.js.download
1 lines (1 loc) · 1.78 KB
/
1021.js.download
1
(()=>{var n="https://tracking.g2crowd.com",i="";i=""===i?null:i;var a="1021",t="external",o="https://zapier.com/app/connections",e="2629",d=!1;function w(n){return n<=1?n:w(n-1)+w(n-2)}function c(n){var i=window.navigator&&window.navigator.userAgent,a=window.screen&&window.screen.availHeight.toString(),d=(window.screen&&window.screen.availWidth.toString())+"x"+a,w=window.navigator.language,c=(new Date).getTimezoneOffset().toString();if(window.navigator&&window.navigator.sendBeacon){var r=new FormData;r.append("pid",e),r.append("p",o),r.append("s",t),r.append("ua",i),r.append("sr",d),r.append("lang",w),r.append("tz",c),window.navigator.sendBeacon(n,r)}else window.fetch&&window.fetch(n,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify({aid,pid:e,s:t,p:o,ua:i,sr:d,lang:w,tz:c})})}function r(i){i?(d=!0,function(n,i){if(window.navigator&&window.navigator.sendBeacon){var a=new FormData;a.append("aid",i),window.navigator.sendBeacon(n,a)}else window.fetch&&window.fetch(n,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify({aid:i})})}("".concat(n,"/attribution_tracking/conversions/").concat(a,"/assign"),i),c("".concat(n,"/attribution_tracking/v2/conversions/").concat(a,"/assign"))):p()}function g(){d||(i||(c("".concat(n,"/attribution_tracking/v2/conversions/").concat(a,"/assign")),d=!0),window.ga&&function(n,i){var a;!function(n,i){for(var a=0,t=n.length;a<t;a++)i(n[a])}(window.ga&&window.ga.getAll&&window.ga.getAll()||[],(function(i){i.get("trackingId")===n&&(a=i)})),i(!!a&&a.get("clientId"))}(i,r),window.gtag&&function(n,i){window.gtag("get",n,"client_id",i)}(i,r),window.dataLayer&&function(n,i){window.dataLayer.push(["get",n,"client_id",i])}(i,r),window.gtag||window.ga||p())}var s=0;function p(){window.setTimeout(g,500*w(s)),s+=1}g()})();