From 2cdefd6f584fe8ad4bc97798c5ff968dc705b6b4 Mon Sep 17 00:00:00 2001 From: Ken Date: Mon, 25 Feb 2019 16:54:28 -0800 Subject: [PATCH] adding tracking for day 2 tracking goodness --- assets/track.js | 8 ++++++++ index.html | 11 +---------- step2-01/demo/index.html | 1 + step2-01/exercise/index.html | 1 + step2-02/demo/index.html | 1 + step2-02/exercise/index.html | 1 + step2-03/demo/index.html | 1 + step2-03/exercise/index.html | 1 + step2-04/demo/index.html | 1 + step2-04/exercise/index.html | 1 + step2-05/demo/index.html | 1 + step2-05/exercise/index.html | 1 + step2-06/demo/index.html | 1 + step2-06/exercise/index.html | 1 + step2-07/demo/index.html | 1 + step2-07/exercise/index.html | 1 + step2-08/demo/index.html | 1 + step2-08/exercise/index.html | 1 + step2-09/demo/index.html | 1 + step2-09/exercise/index.html | 1 + 20 files changed, 27 insertions(+), 10 deletions(-) create mode 100644 assets/track.js diff --git a/assets/track.js b/assets/track.js new file mode 100644 index 0000000..f94f793 --- /dev/null +++ b/assets/track.js @@ -0,0 +1,8 @@ +// prettier-ignore +var appInsights=window.appInsights||function(a){ + function b(a){c[a]=function(){var b=arguments;c.queue.push(function(){c[a].apply(c,b)})}}var c={config:a},d=document,e=window;setTimeout(function(){var b=d.createElement("script");b.src=a.url||"https://az416426.vo.msecnd.net/scripts/a/ai.0.js",d.getElementsByTagName("script")[0].parentNode.appendChild(b)});try{c.cookie=d.cookie}catch(a){}c.queue=[];for(var f=["Event","Exception","Metric","PageView","Trace","Dependency"];f.length;)b("track"+f.pop());if(b("setAuthenticatedUserContext"),b("clearAuthenticatedUserContext"),b("startTrackEvent"),b("stopTrackEvent"),b("startTrackPage"),b("stopTrackPage"),b("flush"),!a.disableExceptionTracking){f="onerror",b("_"+f);var g=e[f];e[f]=function(a,b,d,e,h){var i=g&&g(a,b,d,e,h);return!0!==i&&c["_"+f](a,b,d,e,h),i}}return c +}({ + instrumentationKey: "6ad37ae0-c4ab-4739-925c-1e2773c31f17" +}); +// prettier-ignore +window.appInsights=appInsights,appInsights.queue&&0===appInsights.queue.length&&appInsights.trackPageView(); diff --git a/index.html b/index.html index 534e454..11baad6 100644 --- a/index.html +++ b/index.html @@ -4,16 +4,6 @@ -
@@ -174,5 +164,6 @@
  • Playground
  • + diff --git a/step2-01/demo/index.html b/step2-01/demo/index.html index bec0a0d..51959a8 100644 --- a/step2-01/demo/index.html +++ b/step2-01/demo/index.html @@ -8,5 +8,6 @@
    Nothing to show here, just look at your console window for output. Hit F12 to open console window.
    + diff --git a/step2-01/exercise/index.html b/step2-01/exercise/index.html index bec0a0d..51959a8 100644 --- a/step2-01/exercise/index.html +++ b/step2-01/exercise/index.html @@ -8,5 +8,6 @@
    Nothing to show here, just look at your console window for output. Hit F12 to open console window.
    + diff --git a/step2-02/demo/index.html b/step2-02/demo/index.html index 6025e9f..3bde031 100644 --- a/step2-02/demo/index.html +++ b/step2-02/demo/index.html @@ -6,5 +6,6 @@
    + diff --git a/step2-02/exercise/index.html b/step2-02/exercise/index.html index 6025e9f..3bde031 100644 --- a/step2-02/exercise/index.html +++ b/step2-02/exercise/index.html @@ -6,5 +6,6 @@
    + diff --git a/step2-03/demo/index.html b/step2-03/demo/index.html index 6025e9f..3bde031 100644 --- a/step2-03/demo/index.html +++ b/step2-03/demo/index.html @@ -6,5 +6,6 @@
    + diff --git a/step2-03/exercise/index.html b/step2-03/exercise/index.html index 6025e9f..3bde031 100644 --- a/step2-03/exercise/index.html +++ b/step2-03/exercise/index.html @@ -6,5 +6,6 @@
    + diff --git a/step2-04/demo/index.html b/step2-04/demo/index.html index 7990ebe..f6ea247 100644 --- a/step2-04/demo/index.html +++ b/step2-04/demo/index.html @@ -10,5 +10,6 @@
    npm test
    in the command line. + diff --git a/step2-04/exercise/index.html b/step2-04/exercise/index.html index 7990ebe..f6ea247 100644 --- a/step2-04/exercise/index.html +++ b/step2-04/exercise/index.html @@ -10,5 +10,6 @@
    npm test
    in the command line. + diff --git a/step2-05/demo/index.html b/step2-05/demo/index.html index 7990ebe..f6ea247 100644 --- a/step2-05/demo/index.html +++ b/step2-05/demo/index.html @@ -10,5 +10,6 @@
    npm test
    in the command line. + diff --git a/step2-05/exercise/index.html b/step2-05/exercise/index.html index 7990ebe..f6ea247 100644 --- a/step2-05/exercise/index.html +++ b/step2-05/exercise/index.html @@ -10,5 +10,6 @@
    npm test
    in the command line. + diff --git a/step2-06/demo/index.html b/step2-06/demo/index.html index 7990ebe..f6ea247 100644 --- a/step2-06/demo/index.html +++ b/step2-06/demo/index.html @@ -10,5 +10,6 @@
    npm test
    in the command line. + diff --git a/step2-06/exercise/index.html b/step2-06/exercise/index.html index 7990ebe..f6ea247 100644 --- a/step2-06/exercise/index.html +++ b/step2-06/exercise/index.html @@ -10,5 +10,6 @@
    npm test
    in the command line. + diff --git a/step2-07/demo/index.html b/step2-07/demo/index.html index 6025e9f..3bde031 100644 --- a/step2-07/demo/index.html +++ b/step2-07/demo/index.html @@ -6,5 +6,6 @@
    + diff --git a/step2-07/exercise/index.html b/step2-07/exercise/index.html index 6025e9f..3bde031 100644 --- a/step2-07/exercise/index.html +++ b/step2-07/exercise/index.html @@ -6,5 +6,6 @@
    + diff --git a/step2-08/demo/index.html b/step2-08/demo/index.html index 6025e9f..3bde031 100644 --- a/step2-08/demo/index.html +++ b/step2-08/demo/index.html @@ -6,5 +6,6 @@
    + diff --git a/step2-08/exercise/index.html b/step2-08/exercise/index.html index 6025e9f..3bde031 100644 --- a/step2-08/exercise/index.html +++ b/step2-08/exercise/index.html @@ -6,5 +6,6 @@
    + diff --git a/step2-09/demo/index.html b/step2-09/demo/index.html index 6025e9f..3bde031 100644 --- a/step2-09/demo/index.html +++ b/step2-09/demo/index.html @@ -6,5 +6,6 @@
    + diff --git a/step2-09/exercise/index.html b/step2-09/exercise/index.html index 6025e9f..3bde031 100644 --- a/step2-09/exercise/index.html +++ b/step2-09/exercise/index.html @@ -6,5 +6,6 @@
    +