Move the manual analytics code into the build config.
Use analytics for the javadoc too.