From a2d3c7aa1e284f141e14481523f3488a65ccdbd7 Mon Sep 17 00:00:00 2001 From: amzrk2 Date: Fri, 17 Apr 2020 10:31:06 +0800 Subject: Use site variable to set GA --- layouts/partials/analytic-google.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'layouts/partials') diff --git a/layouts/partials/analytic-google.html b/layouts/partials/analytic-google.html index 2b5e74b..aa9915b 100644 --- a/layouts/partials/analytic-google.html +++ b/layouts/partials/analytic-google.html @@ -1,5 +1,6 @@ +{{ with .Site.GoogleAnalytics }} - + \ No newline at end of file + gtag('config', '{{ . }}'); + +{{ end }} \ No newline at end of file -- cgit v1.2.3