Hello again,
Well... this seems to work, though it doesn't feel right. I put this as one
of the tasks for the maven-antrun-plugin of the POM:
<replace dir='${basedir}/target/docbkx/html/' token=
'</body>'>
<include name='**/**/*.html' />
<replacevalue><script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-********-*']);
_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></body></replacevalue>
</replace>
It would be cool if there were something like user.footer.content that
worked without chunking.
Regards,
Mark
On Thu, May 19, 2011 at 3:45 PM, Mark Craig