disable gtag in local env

pull/34251/head
Daniel Radetsky 2022-06-12 11:03:50 -07:00
parent dc5ca80c62
commit 4fecd324ca
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@
{{- else -}}
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
{{- end -}}
{{- if ne hugo.Environment "local" -}}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-36037335-10"></script>
<script>
@ -15,6 +16,7 @@
gtag('config', 'UA-36037335-10');
</script>
{{- end -}}
<!-- alternative translations -->
{{ range .Translations -}}