Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tetragon
Manage
Activity
Members
Labels
Plan
Issues
431
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Monitor
Incidents
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rnd
Tetragon
Commits
0ba26527
Commit
0ba26527
authored
7 months ago
by
Mahe Tardy
Committed by
Mahé
7 months ago
Browse files
Options
Downloads
Patches
Plain Diff
docs: include analytics only in production builds
Signed-off-by:
Mahe Tardy
<
mahe.tardy@gmail.com
>
parent
374e82a2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/layouts/partials/hooks/head-end.html
+5
-0
5 additions, 0 deletions
docs/layouts/partials/hooks/head-end.html
with
5 additions
and
0 deletions
docs/layouts/partials/hooks/head-end.html
+
5
−
0
View file @
0ba26527
{{/* There are two protections to avoid to ship analytics in development env,
analytics HTML scripts are included only on production build and we use
goatcounter.no_onload if the URL is not tetragon.io */}}
{{ if hugo.IsProduction }}
<script>
if
(
window
.
location
.
host
!==
'
tetragon.io
'
)
window
.
goatcounter
=
{
no_onload
:
true
}
</script>
<script
data-goatcounter=
"https://tetragon.goatcounter.com/count"
async
src=
"//gc.zgo.at/count.js"
></script>
{{ end }}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment