From b48617076374dc30b05a76aa02172d5db6c3dd11 Mon Sep 17 00:00:00 2001 From: Matthew Wong Date: Sat, 27 Aug 2022 11:19:06 -0400 Subject: [PATCH] add branch dimensional data to GA --- config.toml | 4 +++- layouts/partials/head.html | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/config.toml b/config.toml index 8671913a9..65939ddac 100644 --- a/config.toml +++ b/config.toml @@ -30,4 +30,6 @@ enableGitInfo = true tabWidth = 4 [markup.goldmark.renderer] unsafe= true - +[security] + [security.funcs] + getenv = ['^HUGO_', '^BRANCH'] diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 67032e19c..6d28c235c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -82,3 +82,8 @@ {{ template "_internal/google_analytics.html" . }} +