From f30083a23200f1661bc5c454c7ef56f38c6adb29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Wed, 28 Feb 2018 20:38:34 +0100 Subject: [PATCH] Add branch to GA config --- themes/gohugoioTheme/layouts/partials/gtag.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/gohugoioTheme/layouts/partials/gtag.html b/themes/gohugoioTheme/layouts/partials/gtag.html index b89f2feb1..bd3bdbd6e 100644 --- a/themes/gohugoioTheme/layouts/partials/gtag.html +++ b/themes/gohugoioTheme/layouts/partials/gtag.html @@ -5,7 +5,7 @@ function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); - gtag('config', '{{ . }}'); + gtag('config', '{{ . }}', {'branch': '{{ getenv "BRANCH" }}'}); /** * Function that tracks a click on an outbound link in Analytics.