Skip to content

Commit f8033ee

Browse files
committed
docs: add GTM
1 parent d40e971 commit f8033ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/layouts/partials/analytics.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if eq (getenv "HUGO_ENV") "production" -}}
1+
{{- if (in (slice (getenv "HUGO_ENV") hugo.Environment) "production") -}}
22
<!-- Google Tag Manager -->
33
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
44
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"js-test-jquery": "cross-env JQUERY=true npm run js-test-karma",
5050
"lint": "npm-run-all --parallel js-lint css-lint lockfile-lint",
5151
"docs": "npm-run-all docs-build docs-lint",
52-
"docs-build": "hugo --cleanDestinationDir --enableGitInfo",
52+
"docs-build": "hugo --cleanDestinationDir --enableGitInfo --environment production",
5353
"docs-compile": "npm run docs-build",
5454
"docs-linkinator": "linkinator _gh_pages --recurse --skip \"^(?!http://localhost)\" --verbosity error",
5555
"docs-vnu": "node build/vnu-jar.js",

0 commit comments

Comments
 (0)