Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github updates #145

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Create head-custom-google-tag-manager.html
AceHack authored Jun 19, 2023

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
commit 2975630c9e3a621e40136e74922e761b37437646
13 changes: 13 additions & 0 deletions _includes/head-custom-google-tag-manager.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{% if site.google.tag_manager %}
<!-- Google Tag Manager -->
<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.tag_manager }}');
</script>
<!-- End Google Tag Manager -->
{% endif %}