From e1d606222cfe424777db43082cf573ed871df860 Mon Sep 17 00:00:00 2001 From: Gopal Dahale Date: Sat, 18 Nov 2023 15:01:09 +0530 Subject: [PATCH] Trying to add analytics --- docs/config.yml | 2 +- docs/themes/PaperMod/layouts/partials/extend_head.html | 1 + docs/themes/PaperMod/layouts/partials/head.html | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/config.yml b/docs/config.yml index 005d89d..45fba33 100644 --- a/docs/config.yml +++ b/docs/config.yml @@ -12,7 +12,7 @@ buildFuture: false buildExpired: false enableEmoji: true pygmentsUseClasses: true -googleAnalytics: G-D59RMHDF7Y +googleAnalytics: G-9LHHHMGS3N minify: disableXML: true # minifyOutput: true diff --git a/docs/themes/PaperMod/layouts/partials/extend_head.html b/docs/themes/PaperMod/layouts/partials/extend_head.html index b849595..059671f 100644 --- a/docs/themes/PaperMod/layouts/partials/extend_head.html +++ b/docs/themes/PaperMod/layouts/partials/extend_head.html @@ -1,5 +1,6 @@ {{- /* Head custom content area start */ -}} {{- /* Insert any custom code (web-analytics, resources, etc.) - it will appear in the section of every page. */ -}} +{{ template "_internal/google_analytics.html" . }} {{- /* Can be overwritten by partial with the same name in the global layouts. */ -}} {{- /* Head custom content area end */ -}} diff --git a/docs/themes/PaperMod/layouts/partials/head.html b/docs/themes/PaperMod/layouts/partials/head.html index 7d73b78..6e91e29 100644 --- a/docs/themes/PaperMod/layouts/partials/head.html +++ b/docs/themes/PaperMod/layouts/partials/head.html @@ -160,7 +160,6 @@ {{- /* Misc */}} {{- if hugo.IsProduction | or (eq site.Params.env "production") }} -{{- template "_internal/google_analytics.html" . }} {{- template "partials/templates/opengraph.html" . }} {{- template "partials/templates/twitter_cards.html" . }} {{- template "partials/templates/schema_json.html" . }}