Switch to Hugo's internal GA variable

This commit is contained in:
digitalcraftsman
2017-03-25 16:06:52 +01:00
parent 149abc4ef9
commit 22351f4af3
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -51,17 +51,17 @@ verbose = false
verboseLog = false
# Setting this to false will keep hugo from watching for changes during local development
watch = true
# Add GA Tracking Code Here. This leverages a built-in (ie, "internal") partial from HUGO: https://gohugo.io/extras/analytics#configuring-google-analytics
googleAnalytics = ""
[permalinks]
temp = "/:title"
#CUSTOM PARAMS
[params]
organizationname = ""
organizationname = ""
sitedescription = ""
release = "0.20"
# Add GA Tracking Code Here. This leverages a built-in (ie, "internal") partial from HUGO: https://gohugo.io/extras/analytics#configuring-google-analytics
googleanalyticstrackingcode = ""
## Critical Render Path. If true, site style will be embedded in a <style> tag in each html <head> as part of Gulp Build. False puts a typical <link> to the stylesheet in <head>>
usecrp = false
## Twitter handle without the "@"
@@ -98,4 +98,4 @@ watch = true
[taxonomies]
tag = "tags"
category = ""
category = ""
+1 -1
View File
@@ -1,6 +1,6 @@
<!-- <script src="/js/vendor/jquery-2.2.4.min.js"></script> -->
<script src="/js/script.min.js" async defer></script>
{{$gaid := .Site.Params.googleanalyticstrackingcode }}
{{$gaid := .Site.GoogleAnalytics }}
<!-- GitHub Buttons -->
<!-- <script async defer src="https://buttons.github.io/buttons.js"></script> -->
<!-- Google Analytics -->