From 26a20687dbaab4d50699df5949692a43c8530b2e Mon Sep 17 00:00:00 2001 From: Severyn Kozak Date: Thu, 12 Jun 2014 22:23:12 -0400 Subject: [PATCH] Add Google Analytics, authentication file. Add: static/js/main.js -Add a global javascript file, with bitshift's Google Analytics snippet. static/google10335120a3066831.html -Add our Google "Administrator Console" authentication. --- static/google10335120a3066831.html | 1 + static/js/main.js | 6 ++++++ templates/layout.html | 1 + 3 files changed, 8 insertions(+) create mode 100644 static/google10335120a3066831.html create mode 100644 static/js/main.js diff --git a/static/google10335120a3066831.html b/static/google10335120a3066831.html new file mode 100644 index 0000000..6eccd36 --- /dev/null +++ b/static/google10335120a3066831.html @@ -0,0 +1 @@ +google-site-verification: google10335120a3066831.html \ No newline at end of file diff --git a/static/js/main.js b/static/js/main.js new file mode 100644 index 0000000..d5b9feb --- /dev/null +++ b/static/js/main.js @@ -0,0 +1,6 @@ +(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ +(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), +m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) +})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); +ga('create', 'UA-51910807-1', 'bitshift.it'); +ga('send', 'pageview'); diff --git a/templates/layout.html b/templates/layout.html index d85be6f..f40c43e 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -18,6 +18,7 @@ {{ assets.tag("main.css") }} + {{ assets.tag("main.js") }} = block head = endblock