Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b703484

Browse files
committed
Add google analytics
1 parent 8589c24 commit b703484

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

_templates/layout.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{% extends "!layout.html" %}
2+
3+
{% block footer %}
4+
{{ super() }}
5+
<script>
6+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
7+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
8+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
9+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
10+
11+
ga('create', 'UA-90545585-2', 'auto');
12+
ga('send', 'pageview');
13+
14+
</script>
15+
{% endblock %}

0 commit comments

Comments
 (0)