From 8496c5a1159e428d62f2e38cea6f36252a6a826f Mon Sep 17 00:00:00 2001 From: Samuel Ryan Date: Fri, 6 Nov 2015 22:36:05 +0000 Subject: [PATCH] Installs google analytics --- templates/layout.jade | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/templates/layout.jade b/templates/layout.jade index 23a148d..4a69e28 100644 --- a/templates/layout.jade +++ b/templates/layout.jade @@ -10,4 +10,11 @@ html(lang="en") link(rel='stylesheet', href='https://fonts.googleapis.com/css?family=Montserrat|Open+Sans|Source+Code+Pro:700', type='text/css') meta(name='viewport', content='width=device-width, initial-scale=1.0') body - block contents \ No newline at end of file + block contents + script. + (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-29439846-1', 'auto'); + ga('send', 'pageview'); \ No newline at end of file