diff options
author | amzrk2 | 2020-05-03 10:43:54 +0800 |
---|---|---|
committer | amzrk2 | 2020-05-03 10:43:54 +0800 |
commit | 2b1394012dc958624c9450e357b8c24ccffc95a3 (patch) | |
tree | 1a3bcf443c84aa7d94a63e7ba4ff976744f453ad /layouts/partials | |
parent | adc2093273b64cf56b8afaf10ff9a608dd47eab2 (diff) | |
download | hugo-theme-fuji-2b1394012dc958624c9450e357b8c24ccffc95a3.tar.gz hugo-theme-fuji-2b1394012dc958624c9450e357b8c24ccffc95a3.tar.bz2 hugo-theme-fuji-2b1394012dc958624c9450e357b8c24ccffc95a3.zip |
Switch to internal GA template
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/analytic-google.html | 13 | ||||
-rw-r--r-- | layouts/partials/head.html | 2 |
2 files changed, 1 insertions, 14 deletions
diff --git a/layouts/partials/analytic-google.html b/layouts/partials/analytic-google.html deleted file mode 100644 index aa9915b..0000000 --- a/layouts/partials/analytic-google.html +++ /dev/null @@ -1,13 +0,0 @@ -{{ with .Site.GoogleAnalytics }} -<!-- Global site tag (gtag.js) - Google Analytics --> -<script async src="https://www.googletagmanager.com/gtag/js?id={{ . }}"></script> -<script> - window.dataLayer = window.dataLayer || []; - - function gtag() { - dataLayer.push(arguments); - } - gtag('js', new Date()); - gtag('config', '{{ . }}'); -</script> -{{ end }}
\ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 861e6bc..2b12e1d 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -23,7 +23,7 @@ {{ template "_internal/opengraph.html" . }} {{ template "_internal/twitter_cards.html" . }} -{{ partial "analytic-google.html" . }} +{{ template "_internal/google_analytics_async.html" . }} <!-- global css --> {{ $options := (dict "targetPath" "css/main.min.css" "outputStyle" "compressed") }} |