Skip to content

Commit

Permalink
Add cdnHost to cookie consent manager and add dev key for growthbook (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sicarul authored Oct 8, 2024
1 parent 308e20e commit 51d74d2
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,12 @@
<script async defer src="https://buttons.github.io/buttons.js"></script>

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

Expand Down Expand Up @@ -306,12 +307,13 @@
t.type = "text/javascript";
t.async = !0;
t.setAttribute("data-global-segment-analytics-key", i);
t.src = "https://cdn.segment.com/analytics.js/v1/" + key + "/analytics.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.SNIPPET_VERSION = "5.2.0";
analytics.load(segmentWriteKey);
analytics.page();
Expand Down Expand Up @@ -362,6 +364,7 @@
shouldRequireConsent: () => true,
closeBehavior: exports.inEU() ? "dismiss" : "accept",
bannerTextColor: "black",
cdnHost: "evs.analytics.pulumi.com",
}
}
</script>
Expand All @@ -373,7 +376,11 @@

<script async
data-api-host="https://cdn.growthbook.io"
{{- if eq hugo.Environment "production" }}
data-client-key="sdk-0aUDa6bDbQqms3aJ"
{{- else }}
data-client-key="sdk-ut2foRRgupXGuPj3"
{{- end }}
src="https://cdn.jsdelivr.net/npm/@growthbook/growthbook/dist/bundles/auto.min.js"
></script>

Expand Down

0 comments on commit 51d74d2

Please sign in to comment.