Adds page view Clicky tracking to GitHub page.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Fri, 4 Nov 2016 15:11:15 +0000 (16:11 +0100)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Fri, 4 Nov 2016 15:11:15 +0000 (16:11 +0100)
That's for page views only to figure out page usage.

docs/index.html

index b6442ea..a5dbb84 100644 (file)
       <a class="dropped-files__file__action dropped-files__file__action--copy" href="#" data-success-label="done!" data-error-label="oops! see console for details" data-original-label="copy to clipboard">copy to clipboard</a>
     </li>
   </template>
+  <script>
+    if (location.host == 'jakubpawlowicz.github.io') {
+      (function() {
+        window.clicky_site_ids = [126539]
+        var s = document.createElement('script')
+        s.async = true
+        s.src = '//static.getclicky.com/js'
+        document.head.appendChild(s)
+      })()
+    }
+  </script>
+  <noscript><img alt="Clicky" width="1" height="1" src="//in.getclicky.com/126539ns.gif" /></noscript>
 </body>
 </html>