I would like to include the Google Analytics Javascript code in the head element of my generated Javadoc HTML output. How can I do this?
I figured I may need to write a custom Doclet, but this is probably going to be a nightmare of a learning curve. Isn’t there a simpler way?
You have 2 solutions, Using maven plugin Javadoc with
you change my "test test" with your google analytics script and don’t forget to change < with < and > with >
and then you call
mvn clean javadoc:javadoc
or using the old method http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#header with your html script