Skip to content

Commit 05974c3

Browse files
committed
Add analytics script
1 parent c4ed22e commit 05974c3

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

docs/_includes/analytics.html

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!-- Google Tag Manager -->
2+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
3+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
4+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
5+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
6+
})(window,document,'script','dataLayer','GTM-BVCN');</script>
7+
<!-- End Google Tag Manager -->

docs/_includes/head.html

+2
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@
1313

1414
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
1515
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
16+
17+
{% if jekyll.environment == "production" %}{% include analytics.html %}{% endif %}

0 commit comments

Comments
 (0)