Skip to content

Commit 4b349f5

Browse files
authored
Merge pull request #37 from ContainerSolutions/analytics
Add analytics tracking to site.
2 parents 7774ce7 + 903ad40 commit 4b349f5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

_includes/head_custom.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{% if jekyll.environment == 'production' %}
2+
<!-- Global site tag (gtag.js) - Google Analytics -->
3+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-TKE13514P9"></script>
4+
<script>
5+
window.dataLayer = window.dataLayer || [];
6+
function gtag(){dataLayer.push(arguments);}
7+
gtag('js', new Date());
8+
9+
gtag('config', 'G-TKE13514P9');
10+
</script>
11+
{% endif %}

0 commit comments

Comments
 (0)