cache busting for new segment write key (#1282)

This commit is contained in:
jasonbryant84
2024-11-11 15:29:04 +01:00
committed by GitHub
parent b9b1106096
commit 527323b896
@@ -39,5 +39,5 @@
<!--Segment-->
{{ 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 }}"></script>
<script src="{{ $segmentJs.RelPermalink }}?v=eu"></script>
{{ end }}