Skip to content

Commit 1d9bc53

Browse files
committed
Added GA
1 parent 131617f commit 1d9bc53

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

djangoprojectjp/moderna/templates/base.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,16 @@ <h2>{% block title %}{% endblock %}</h2>
207207
<script src="{% static "js/jquery.flexslider.js"%}"></script>
208208
<script src="{% static "js/animate.js"%}"></script>
209209
<script src="{% static "js/custom.js"%}"></script>
210-
{% endcompress %}
210+
<script>
211+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
212+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
213+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
214+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
215+
216+
ga('create', 'UA-51972813-3', 'auto');
217+
ga('send', 'pageview');
218+
219+
</script>{% endcompress %}
211220

212221
</body>
213222
</html>

0 commit comments

Comments
 (0)