Revert duplicate Google Analytics (#3287)

This reverts PR #2962. The inline script here is exactly the same as the
`/assets/js/google-analytics-setup.js` sourced on the following line, so
Google Analytics is being triggered twice.

It seems that #2962 originally added this because liquid templating of
the setup script didn't work (#3095). However, this was then properly
fixed in #3117.
This commit is contained in:
Simmo Saan 2025-09-01 16:57:16 +03:00 committed by GitHub
parent cf8e02f98b
commit 859a245f65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -227,15 +227,6 @@
<!-- Analytics -->
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', '{{ site.google_analytics }}');
</script>
<script defer src="{{ '/assets/js/google-analytics-setup.js' | relative_url }}"></script>
{% endif %}