Move analytics code into separate file and add to .gitignore
Thanks to hawkee for the tip.
This commit is contained in:
parent
c46a220907
commit
2a3aba3ad5
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,6 +8,7 @@
|
||||
.svn/
|
||||
.project
|
||||
.pydevproject
|
||||
analytics.js
|
||||
|
||||
Backbone.Overview
|
||||
tags
|
||||
|
@ -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="css/theme.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> -->
|
||||
<![if gte IE 9]>
|
||||
<script src="builds/converse.website.min.js"></script>
|
||||
@ -223,12 +224,6 @@
|
||||
</section>
|
||||
</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>
|
||||
require(['converse'], function (converse) {
|
||||
(function () {
|
||||
@ -253,7 +248,6 @@
|
||||
event.preventDefault();
|
||||
});
|
||||
})();
|
||||
|
||||
converse.initialize({
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user