Merge pull request #22579 from tengqm/disable-analytics-in-non-production

Disable analytics for non-production environment
pull/22558/head
Kubernetes Prow Robot 2020-08-01 16:43:40 -07:00 committed by GitHub
commit 91494d2e3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

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