Move analytics code into separate file and add to .gitignore

Thanks to hawkee for the tip.
This commit is contained in:
JC Brand 2014-12-13 21:54:48 +01:00
parent c46a220907
commit 2a3aba3ad5
2 changed files with 2 additions and 7 deletions

1
.gitignore vendored
View File

@ -8,6 +8,7 @@
.svn/ .svn/
.project .project
.pydevproject .pydevproject
analytics.js
Backbone.Overview Backbone.Overview
tags tags

View File

@ -13,6 +13,7 @@
<link type="text/css" rel="stylesheet" media="screen" href="components/fontawesome/css/font-awesome.min.css" /> <link type="text/css" rel="stylesheet" media="screen" href="components/fontawesome/css/font-awesome.min.css" />
<link type="text/css" rel="stylesheet" media="screen" href="css/theme.css" /> <link type="text/css" rel="stylesheet" media="screen" href="css/theme.css" />
<link type="text/css" rel="stylesheet" media="screen" href="css/converse.min.css" /> <link type="text/css" rel="stylesheet" media="screen" href="css/converse.min.css" />
<script type="text/javascript" src="analytics.js"></script>
<!-- Only for development: <script data-main="main" src="components/requirejs/require.js"></script> --> <!-- Only for development: <script data-main="main" src="components/requirejs/require.js"></script> -->
<![if gte IE 9]> <![if gte IE 9]>
<script src="builds/converse.website.min.js"></script> <script src="builds/converse.website.min.js"></script>
@ -223,12 +224,6 @@
</section> </section>
</body> </body>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">try { var pageTracker = _gat._getTracker("UA-2128260-8"); pageTracker._trackPageview(); } catch(err) {}</script>
<script> <script>
require(['converse'], function (converse) { require(['converse'], function (converse) {
(function () { (function () {
@ -253,7 +248,6 @@
event.preventDefault(); event.preventDefault();
}); });
})(); })();
converse.initialize({ converse.initialize({
bosh_service_url: 'https://conversejs.org/http-bind/', // Please use this connection manager only for testing purposes bosh_service_url: 'https://conversejs.org/http-bind/', // Please use this connection manager only for testing purposes
i18n: locales['en'], // Refer to ./locale/locales.js to see which locales are supported i18n: locales['en'], // Refer to ./locale/locales.js to see which locales are supported