From 24e6066d229edb141b994cd1b03b6b91f3cdb896 Mon Sep 17 00:00:00 2001 From: chris062689 Date: Sun, 26 Feb 2017 17:34:27 -0500 Subject: [PATCH] Google Analytics is now integrated directly into layout. --- .../layouts/_default/baseof.html | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/site/themes/citra-bs-theme/layouts/_default/baseof.html b/site/themes/citra-bs-theme/layouts/_default/baseof.html index 171c2a7..c84b67d 100755 --- a/site/themes/citra-bs-theme/layouts/_default/baseof.html +++ b/site/themes/citra-bs-theme/layouts/_default/baseof.html @@ -48,17 +48,15 @@ {{ if eq (getenv "HUGO_ENV") "PRD" }} - {{ with .Site.Params.googleanalytics }} - - {{ end }} + ga('create', 'UA-73966905-1', 'auto'); + ga('send', 'pageview'); + {{ else }} {{ end }}