Skip to content

Commit 77a0f4a

Browse files
authored
Merge pull request #51 from gethinode/develop
fix: do not render GCM script locally unless forced
2 parents a529877 + 83e5f03 commit 77a0f4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/modules/googleanalytics/googleanalytics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Adapted from https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/google_analytics.html
22

3-
{{- if or site.Params.modules.GoogleAnalytics.gcm site.Params.modules.GoogleAnalytics.force (and (not hugo.IsServer) (not site.Config.Privacy.GoogleAnalytics.Disable)) -}}
3+
{{- if or site.Params.modules.GoogleAnalytics.force (and (not hugo.IsServer) (not site.Config.Privacy.GoogleAnalytics.Disable)) -}}
44
{{- with site.Config.Services.GoogleAnalytics.ID -}}
55
{{- if site.Params.modules.GoogleAnalytics.gcm }}
66

0 commit comments

Comments
 (0)