Skip to content

Commit

Permalink
Fix dev snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
sicarul committed Oct 7, 2024
1 parent 722f10b commit 3dd3584
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,13 @@

<script>
var segmentWriteKey;
var snippetName;
{{- if eq hugo.Environment "production" }}
segmentWriteKey = "UK90Ofwacetj5VCPJ7cUgkbNcKLSHO3u";
snippetName = "C8Y429BDEy/06ujkUhzfL.min.js"
{{- else }}
segmentWriteKey = "bATvhu6XKpwi7Cs258MGsELkDpVOzvdY";
snippetName = "C8Y429BDEy/hpBKpR8Nx1yVCjKPB2nJWg.min.js"
{{- end }}
</script>

Expand Down Expand Up @@ -306,13 +309,13 @@
t.type = "text/javascript";
t.async = !0;
t.setAttribute("data-global-segment-analytics-key", i);
t.src = "https://evs.analytics.pulumi.com/C8Y429BDEy/06ujkUhzfL.min.js";
t.src = "https://evs.analytics.pulumi.com/" + snippetName;
var r = document.getElementsByTagName("script")[0];
r.parentNode.insertBefore(t, r);
analytics._loadOptions = n;
};
analytics._writeKey = segmentWriteKey;
analytics._cdn = "https://evs.analytics.pulumi.com"
analytics._cdn = "https://evs.analytics.pulumi.com";
analytics.SNIPPET_VERSION = "5.2.0";
analytics.load(segmentWriteKey);
analytics.page();
Expand Down

0 comments on commit 3dd3584

Please sign in to comment.