Kawai Wiki

Compare Revisions

Ignore whitespace Rev 162 → Rev 163

/trunk/src/main/webapp/WEB-INF/conf/default/appManager.properties
11,5 → 11,9
# Languages supported
languages = [ ["English", "en", "flag_usa.gif"] , ["Portuguese", "pt", "flag_brazil.gif"] ]
 
# Google Analytics
include_google_analytics = false
 
 
 
 
/trunk/src/main/webapp/WEB-INF/conf/prod/appManager.properties
11,3 → 11,7
jdbc.url = jdbc:mysql://localhost/Kawai?autoReconnect=true
jdbc.user = kawai
jdbc.pass = 1kawai23
 
# Google Analytics
# You can change the google_analytics.jsp file and enable the option below
include_google_analytics = false
/trunk/src/main/webapp/show_page.jsp
870,6 → 870,8
}
}
</script>
<%@ include file="google_analytics.jsp" %>
 
</head>
 
/trunk/src/main/webapp/google_analytics.jsp
New file
0,0 → 1,19
 
<mtw:propsIf test="include_google_analytics" value="true">
 
<script type="text/javascript">
 
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXXXX-XX']);
_gaq.push(['_trackPageview']);
 
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
 
</script>
 
</mtw:propsIf>