Skip to content

Commit d02312d

Browse files
committed
addad analytics back
1 parent 6d0c7a8 commit d02312d

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

_includes/analytics.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<script>
2+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
3+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
6+
ga('create', 'UA-50549728-1', 'coderit.org');
7+
ga('send', 'pageview');
8+
</script>

_layouts/default.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
{% include header.html %}
77
{{ content }}</div>
88
{% include foot.html %}
9+
{% include analytics.html %}
910
</body>
1011
</html>

_layouts/post.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ <h1 class="page-title">{{ page.title }}</h1>
2121
</div>
2222
</div>
2323
{% include foot.html %}
24+
{% include analytics.html %}
2425
</body>
2526
</html>

0 commit comments

Comments
 (0)