Switch to Hugo's internal GA variable

This commit is contained in:
digitalcraftsman committed 2017-03-25 16:06:52 +01:00
1 parent 149abc4ef9
commit 22351f4af3
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -51,17 +51,17 @@ verbose = false
verboseLog = false verboseLog = false
# Setting this to false will keep hugo from watching for changes during local development # Setting this to false will keep hugo from watching for changes during local development
watch = true 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] [permalinks]
temp = "/:title" temp = "/:title"
#CUSTOM PARAMS #CUSTOM PARAMS
[params] [params]
organizationname = "" organizationname = ""
sitedescription = "" sitedescription = ""
release = "0.20" 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>> ## 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 usecrp = false
## Twitter handle without the "@" ## Twitter handle without the "@"
+1 -1
View File
@@ -1,6 +1,6 @@
<!-- <script src="/js/vendor/jquery-2.2.4.min.js"></script> --> <!-- <script src="/js/vendor/jquery-2.2.4.min.js"></script> -->
<script src="/js/script.min.js" async defer></script> <script src="/js/script.min.js" async defer></script>
{{$gaid := .Site.Params.googleanalyticstrackingcode }} {{$gaid := .Site.GoogleAnalytics }}
<!-- GitHub Buttons --> <!-- GitHub Buttons -->
<!-- <script async defer src="https://buttons.github.io/buttons.js"></script> --> <!-- <script async defer src="https://buttons.github.io/buttons.js"></script> -->
<!-- Google Analytics --> <!-- Google Analytics -->