Inserted Google Analytics code

This commit is contained in:
Trustin Lee 2010-05-07 11:14:53 +00:00
parent 4fc22e1a26
commit 65ee3d5579

14
pom.xml
View File

@ -177,6 +177,18 @@
<properties>
<attach-distribution>false</attach-distribution>
<tracker-code><![CDATA[
<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-95307-3");
pageTracker._trackPageview();
} catch(err) {}
</script>
]]></tracker-code>
</properties>
<build>
@ -406,6 +418,7 @@
<encoding>UTF-8</encoding>
<locale>en_US</locale>
<excludePackageNames>${project.groupId}.example*:${project.groupId}.container*:${project.groupId}.util.internal*</excludePackageNames>
<footer>${tracker-code}</footer>
</configuration>
</plugin>
<plugin>
@ -429,6 +442,7 @@
<stylesheet>${basedir}/src/xref/stylesheet.css</stylesheet>
<docTitle>${project.name} Source Xref (${project.version}, r${buildNumber})</docTitle>
<windowTitle>${project.name} Source Xref (${project.version}, r${buildNumber})</windowTitle>
<bottom><![CDATA[Copyright &copy; {inceptionYear}-{currentYear} ${project.organization.name} All Rights Reserved.]]> ${tracker-code}</bottom>
</configuration>
</plugin>
<plugin>