File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ anchor = "smart"
117
117
118
118
[services ]
119
119
[services .googleAnalytics ]
120
- # Comment out the next line to disable GA tracking. Also disables the feature described in [params.ui.feedback] .
120
+ # Fake ID in support of [params.ui.feedback]. The real GA ID is set in the Netlify config .
121
121
id = " UA-00000000-0"
122
122
123
123
[params ]
Original file line number Diff line number Diff line change 6
6
{{- else -}}
7
7
< meta name ="ROBOTS " content ="NOINDEX, NOFOLLOW ">
8
8
{{- end -}}
9
- {{- if in (slice "production" "nonprod") hugo.Environment -}}
10
- <!-- Global site tag (gtag.js) - Google Analytics -->
11
- < script async src ="https://www.googletagmanager.com/gtag/js?id=UA-36037335-10 "> </ script >
12
- < script >
13
- window . dataLayer = window . dataLayer || [ ] ;
14
- function gtag ( ) { dataLayer . push ( arguments ) ; }
15
- gtag ( 'js' , new Date ( ) ) ;
16
-
17
- gtag ( 'config' , 'UA-36037335-10' ) ;
18
- </ script >
19
- {{- end -}}
20
9
21
10
<!-- alternative translations -->
22
11
{{ range .Translations -}}
36
25
{{- template "_internal/schema.html" . -}}
37
26
{{- template "_internal/twitter_cards.html" . -}}
38
27
{{- if hugo.IsProduction -}}
39
- {{ template "_internal/google_analytics_async .html" . }}
28
+ {{ template "_internal/google_analytics .html" . }}
40
29
{{ end }}
41
30
{{ partialCached "head-css.html" . "asdf" }}
42
31
< script
You can’t perform that action at this time.
0 commit comments