Skip to content

Commit 3a65130

Browse files
committed
Add Google Analytics to base template
1 parent df0cbfa commit 3a65130

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

_layouts/base.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@
5757
{% if page.customjs %}
5858
<script async="" defer="" type="text/javascript" src="{{ page.customjs }}"></script>
5959
{% endif %}
60+
61+
<!-- Global Site Tag (gtag.js) - Google Analytics -->
62+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-106933809-1"></script>
63+
<script>
64+
window.dataLayer = window.dataLayer || [];
65+
function gtag(){dataLayer.push(arguments)};
66+
gtag('js', new Date());
67+
68+
gtag('config', 'UA-106933809-1');
69+
</script>
6070

6171
</body>
6272
</html>

0 commit comments

Comments
 (0)