Skip to content

Commit d32dd95

Browse files
committed
Revert "Updated scripts for correctly using gtag. (alshedivat#2962)"
This reverts commit beeff21.
1 parent cf8e02f commit d32dd95

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

_includes/scripts.liquid

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -227,15 +227,6 @@
227227
<!-- Analytics -->
228228
<!-- Global site tag (gtag.js) - Google Analytics -->
229229
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
230-
<script>
231-
window.dataLayer = window.dataLayer || [];
232-
function gtag() {
233-
dataLayer.push(arguments);
234-
}
235-
gtag('js', new Date());
236-
237-
gtag('config', '{{ site.google_analytics }}');
238-
</script>
239230
<script defer src="{{ '/assets/js/google-analytics-setup.js' | relative_url }}"></script>
240231
{% endif %}
241232

0 commit comments

Comments
 (0)