summaryrefslogtreecommitdiff
path: root/_site_build
diff options
context:
space:
mode:
Diffstat (limited to '_site_build')
-rw-r--r--_site_build/_includes/google_analytics.html6
-rw-r--r--_site_build/_layouts/default.html3
2 files changed, 9 insertions, 0 deletions
diff --git a/_site_build/_includes/google_analytics.html b/_site_build/_includes/google_analytics.html
new file mode 100644
index 0000000..1af92a9
--- /dev/null
+++ b/_site_build/_includes/google_analytics.html
@@ -0,0 +1,6 @@
+<script>
+ window._gaq = [['_setAccount','{{ site.google_ua }}'],['_trackPageview'],['_trackPageLoadTime']];
+ Modernizr.load({
+ load: ('https:' == location.protocol ? '//ssl' : '//www') + '.google-analytics.com/ga.js'
+ });
+</script>
diff --git a/_site_build/_layouts/default.html b/_site_build/_layouts/default.html
index b27e119..4eaed35 100644
--- a/_site_build/_layouts/default.html
+++ b/_site_build/_layouts/default.html
@@ -28,4 +28,7 @@
</div>
</div>
</body>
+{% if site.google_ua %}
+ {% include google_analytics.html %}
+{% endif %}
</html>