Skip to content

Commit

Permalink
Google Analytics added
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonEvmenenko committed May 13, 2020
1 parent e2289e3 commit 19823bb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions _includes/analytics.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-166526084-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'UA-166526084-1');
</script>
6 changes: 6 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,10 @@

<!-- RSS -->
{% feed_meta %}

<!-- Google Analytics -->
{% if jekyll.environment == 'production' %}
{% include analytics.html %}
{% endif %}

</head>

0 comments on commit 19823bb

Please sign in to comment.