chore(my-joy-beta): add mixpanel

This commit is contained in:
Sara Vieira 2018-02-06 16:02:37 +00:00 committed by GitHub
parent 23e4554bf2
commit 533e7d875e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -9,6 +9,11 @@
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<title>My Joyent &beta;</title>
<script type=“text/javascript”>(function(e,a){if(!a.__SV){var b=window;try{var c,l,i,j=b.location,g=j.hash;c=function(a,b){return(l=a.match(RegExp(b+=([^&]*))))?l[1]:null};g&&c(g,state)&&(i=JSON.parse(decodeURIComponent(c(g,state))),mpeditor===i.action&&(b.sessionStorage.setItem(_mpcehash,g),history.replaceState(i.desiredHash||,e.title,j.pathname+j.search)))}catch(m){}var k,h;window.mixpanel=a;a._i=[];a.init=function(b,c,f){function e(b,a){var c=a.split(.);2==c.length&&(b=b[c[0]],a=c[1]);b[a]=function(){b.push([a].concat(Array.prototype.slice.call(arguments,
0)))}}var d=a;“undefined”!==typeof f?d=a[f]=[]:f=“mixpanel”;d.people=d.people||[];d.toString=function(b){var a=“mixpanel”;“mixpanel”!==f&&(a+=“.”+f);b||(a+=” (stub)“);return a};d.people.toString=function(){return d.toString(1)+“.people (stub)“};k=“disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config reset people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user”.split(” “);
for(h=0;h<k.length;h++)e(d,k[h]);a._i.push([b,c,f])};a.__SV=1.2;b=e.createElement(“script”);b.type=“text/javascript”;b.async=!0;b.src=“undefined”!==typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:file:===e.location.protocol&&//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js.match(/^\/\//)?https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js;c=e.getElementsByTagName(“script”)[0];c.parentNode.insertBefore(b,c)}})(document,window.mixpanel||[]);
mixpanel.init(“3182a7dadd00ae408e0b9ee9d4903770");
</script>
<script type="text/javascript">
window.heap = window.heap || [], heap.load = function (e, t) { window.heap.appid = e, window.heap.config = t = t || {}; var r = t.forceSSL || "https:" === document.location.protocol, a = document.createElement("script"); a.type = "text/javascript", a.async = !0, a.src = (r ? "https:" : "http:") + "//cdn.heapanalytics.com/js/heap-" + e + ".js"; var n = document.getElementsByTagName("script")[0]; n.parentNode.insertBefore(a, n); for (var o = function (e) { return function () { heap.push([e].concat(Array.prototype.slice.call(arguments, 0))) } }, p = ["addEventProperties", "addUserProperties", "clearEventProperties", "identify", "removeEventProperty", "setEventProperties", "track", "unsetEventProperty"], c = 0; c < p.length; c++)heap[p[c]] = o(p[c]) };
heap.load("1044364007");