summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2023-01-09 20:01:50 -0300
committerRoger Gonzalez <roger@rogs.me>2023-01-09 20:01:50 -0300
commit261abeafad54fbb625a12404af27578794871c62 (patch)
tree48e9841203b28e09106edfd314409de5d48d31e8 /themes
parentbb298a0e8329889513c055a5984a4231980d96a0 (diff)
Removed all google analytics traces
Diffstat (limited to 'themes')
-rw-r--r--themes/hugo-whisper-theme/layouts/_default/baseof.html2
-rw-r--r--themes/hugo-whisper-theme/layouts/partials/google-analytics.html26
-rw-r--r--themes/hugo-whisper-theme/theme.toml2
3 files changed, 1 insertions, 29 deletions
diff --git a/themes/hugo-whisper-theme/layouts/_default/baseof.html b/themes/hugo-whisper-theme/layouts/_default/baseof.html
index 79eede4..650a098 100644
--- a/themes/hugo-whisper-theme/layouts/_default/baseof.html
+++ b/themes/hugo-whisper-theme/layouts/_default/baseof.html
@@ -66,8 +66,6 @@
<script type="text/javascript" src="{{ ($scripts | minify | fingerprint).RelPermalink }}"></script>
{{ end }}
- {{ partial "google-analytics.html" . }}
-
</body>
</html>
diff --git a/themes/hugo-whisper-theme/layouts/partials/google-analytics.html b/themes/hugo-whisper-theme/layouts/partials/google-analytics.html
deleted file mode 100644
index 63c84ab..0000000
--- a/themes/hugo-whisper-theme/layouts/partials/google-analytics.html
+++ /dev/null
@@ -1,26 +0,0 @@
-{{- if .Site.IsServer -}}
- <!-- Dont add Google analytics to localhost -->
-{{ else }}
- {{ $gid := (getenv "HUGO_GOOGLE_ANALYTICS_ID") }}
- {{ if $gid }}
- <!-- Global site tag (gtag.js) - Google Analytics -->
- <script async src="https://www.googletagmanager.com/gtag/js?id={{- $gid -}}"></script>
- <script>
- window.dataLayer = window.dataLayer || [];
- function gtag(){dataLayer.push(arguments);}
- gtag('js', new Date());
- gtag('config', '{{- $gid -}}');
- </script>
- {{ else }}
- {{ if .Site.Params.google_analytics_id }}
- <!-- Global site tag (gtag.js) - Google Analytics -->
- <script async src="https://www.googletagmanager.com/gtag/js?id={{- .Site.Params.google_analytics_id -}}"></script>
- <script>
- window.dataLayer = window.dataLayer || [];
- function gtag(){dataLayer.push(arguments);}
- gtag('js', new Date());
- gtag('config', '{{- .Site.Params.google_analytics_id -}}');
- </script>
- {{ end }}
- {{ end}}
-{{ end }} \ No newline at end of file
diff --git a/themes/hugo-whisper-theme/theme.toml b/themes/hugo-whisper-theme/theme.toml
index 2fa64d5..8f6c5c1 100644
--- a/themes/hugo-whisper-theme/theme.toml
+++ b/themes/hugo-whisper-theme/theme.toml
@@ -7,7 +7,7 @@ homepage = "https://github.com/zerostatic/hugo-whisper-theme"
demosite = "https://hugo-whisper.netlify.app"
tags = ["docs","responsive","minimal","clean","bootstrap","zerostatic"]
-features = ["docs","bootstrap","scss","netlify","google analytics"]
+features = ["docs","bootstrap","scss"]
[author]
name = "Robert Austin"