From ce296dfb753cc91094de2b5ac3222263e4ef30bc Mon Sep 17 00:00:00 2001 From: "M. Taylor Saotome-Westlake" Date: Fri, 9 Jun 2017 19:55:30 -0700 Subject: [PATCH] Google Analytics I had procrastinated on setting this up because I thought it would be more wholesomely educational to learn to use a less-magical tool to analyze the Nginx logs, rather than outsourcing this task (like increasingly the rest of the world) to Google. But finding out who likes me and hates me is more important than wholesome log-analysis education! The Google-Analytics JavaScript fragment that came with the theme looks old compared to the one I got from the setup dashboard? --- publishconf.py | 5 +---- theme/templates/base.html | 17 ++++++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/publishconf.py b/publishconf.py index 6ed4609..738f1f3 100644 --- a/publishconf.py +++ b/publishconf.py @@ -20,7 +20,4 @@ CATEGORY_FEED_ATOM = 'feeds/%s.atom.xml' DELETE_OUTPUT_DIRECTORY = True -# Following items are often useful when publishing - -#DISQUS_SITENAME = "" -#GOOGLE_ANALYTICS = "" +GOOGLE_ANALYTICS = "UA-100822263-1" diff --git a/theme/templates/base.html b/theme/templates/base.html index 9722dcb..fd8f60f 100644 --- a/theme/templates/base.html +++ b/theme/templates/base.html @@ -99,13 +99,16 @@ {% if GOOGLE_ANALYTICS %} - - {% endif %} + + {% endif %} -- 2.17.1