From ed9bee0785b71f671ecaf48adb4721f987647a6e Mon Sep 17 00:00:00 2001 From: Odair Trujillo Date: Sat, 20 Jun 2020 11:02:11 -0500 Subject: [PATCH] Migrating analytics.js to gtag.js as Google recommends. --- layouts/partials/footer.html | 19 ------------------- layouts/partials/head.html | 14 +++++++++++++- 2 files changed, 13 insertions(+), 20 deletions(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 5bc582fa55..fff9e09e73 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -40,22 +40,3 @@ {{ "" | safeHTML }} {{ $script := resources.Get "js/script.js" | minify}} - -{{ "" | safeHTML }} -{{ with .Site.Params.google_analytics_id }} - -{{ end }} \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 823c7edc61..9d5ff29fb0 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -25,4 +25,16 @@ - \ No newline at end of file + {{ with .Site.Params.google_analytics_id }} + {{ "" | safeHTML }} + + + {{ end }} + +