Skip to content

Commit

Permalink
segment needs testing across all environments, not just in production
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbryant84 committed Dec 3, 2024
1 parent 9d2de9b commit a743706
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
{{ end }}

<!--Segment-->
{{ if and hugo.IsProduction .Site.Params.segmentWriteKey }}
{{ if .Site.Params.segmentWriteKey }}
{{ $segmentJs := resources.Get "js/segment-setup.js" | js.Build (dict "params" (dict "segmentWriteKey" .Site.Params.segmentWriteKey "gaMeasurementId" .Site.GoogleAnalytics)) | minify | resources.Fingerprint "sha512" }}
<script src="{{ $segmentJs.RelPermalink }}?v=eu"></script>
{{ end }}

0 comments on commit a743706

Please sign in to comment.