Skip to content

bug: rewire google analytics #908

Description

@jgravois

analytics events stopped being logged back in Feb 2026. we're still injecting the correct key and making a call to the tag manager endpoint, so something else must be amiss.

Image

we need to make sure that the approach to tag injection below is sound.

<!--
Google Tag Manager https://support.google.com/tagmanager/answer/14847097?hl=en&ref_topic=15191151&sjid=3924574870016540527-NC
-->
<script>
(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' });
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', '{{site.google_analytics_id}}');
</script>
<!-- End Google Tag Manager -->

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions