Skip to content

Commit 91494d2

Browse files
authored
Merge pull request #22579 from tengqm/disable-analytics-in-non-production
Disable analytics for non-production environment
2 parents 78e997c + bf11d5a commit 91494d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

layouts/partials/git-info.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
<hr/>
44

55
<div class="issue-button-container">
6+
{{ if eq (getenv "HUGO_ENV") "production" }}
67
<p>
78
<a href=""><img alt="Analytics" src="https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/{{ .Path }}?pixel"/></a>
89
</p>
10+
{{ end }}
911
{{ if and (ne .Kind "404") (not (strings.Contains .Path "search")) }}
1012
{{ if not .Params.no_issue }}
1113
<script type="text/javascript">

0 commit comments

Comments
 (0)