From 82a8e319ec48e3594f3d5811a2351c142f7d1b33 Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Fri, 21 Aug 2015 10:37:05 -0400 Subject: [PATCH] add app insights --- index.html | 1 + js/appInsight.js | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 js/appInsight.js diff --git a/index.html b/index.html index 42d8389..f31288c 100644 --- a/index.html +++ b/index.html @@ -24,6 +24,7 @@ +
diff --git a/js/appInsight.js b/js/appInsight.js new file mode 100644 index 0000000..cb7474d --- /dev/null +++ b/js/appInsight.js @@ -0,0 +1,8 @@ +var appInsights=window.appInsights||function(config){ + function s(config){t[config]=function(){var i=arguments;t.queue.push(function(){t[config].apply(t,i)})}}var t={config:config},r=document,f=window,e="script",o=r.createElement(e),i,u;for(o.src=config.url||"//az416426.vo.msecnd.net/scripts/a/ai.0.js",r.getElementsByTagName(e)[0].parentNode.appendChild(o),t.cookie=r.cookie,t.queue=[],i=["Event","Exception","Metric","PageView","Trace"];i.length;)s("track"+i.pop());return config.disableExceptionTracking||(i="onerror",s("_"+i),u=f[i],f[i]=function(config,r,f,e,o){var s=u&&u(config,r,f,e,o);return s!==!0&&t["_"+i](config,r,f,e,o),s}),t +}({ + instrumentationKey:"8ca49161-65fa-4f75-af00-fc302149575f" +}); + +window.appInsights=appInsights; +appInsights.trackPageView();