Installing the Google Analytics module in a Java web application
Install the Google Analytics module in your Java web application by running the prepare.bat (or prepare.sh) installation tool.
Before you begin
Procedure
googleanalytics.
prepare.bat prepare -P<module-name>[,<module-name>]*
Where <module-name> is one or more of the Java profile names.
The following shows the command to reinstall the web application with several modules, including googleanalytics:
prepare.bat prepare -Pcore,search,mediamanager,googleanalytics
Be sure to include the core module, which is needed for all other modules.