Move analytics code to head

This commit is contained in:
Jeremy Zhang 2017-04-09 11:43:45 -07:00
parent 38177ff8a8
commit bf83b636c8
2 changed files with 3 additions and 4 deletions

View File

@ -11,6 +11,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>{{ guild['name'] }} - Embed - Titan Embeds for Discord</title>
{% include 'google_analytics.html.j2' %}
</head>
<body>
<div class="navbar-fixed">
@ -128,8 +129,5 @@
</script>
<script type="text/javascript" src="{{ url_for('static', filename='js/embed.js') }}"></script>
{% include 'google_analytics.html.j2' %}
</body>
</html>

View File

@ -11,6 +11,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>{% block title %}{% endblock %} - Titan Embeds for Discord</title>
{% include 'google_analytics.html.j2' %}
</head>
<body>
<main>
@ -52,6 +54,5 @@
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/materialize/0.98.1/js/materialize.min.js" integrity="sha256-ToPQhpo/E89yaCd7+V8LUCjobNRkjilRXfho6x3twLU=" crossorigin="anonymous"></script>
{% block script %}{% endblock %}
{% include 'google_analytics.html.j2' %}
</body>
</html>