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

Install the DXA Core module (installed by default with the DXA .NET web application).. Note that there is no separate module download for the Google Analytics module, Rather, it is packaged within the Core module and also requires items from the Core module. If needed, download the Core module from the location: https://docs.rws.com/DXA/2.3/Modules/Download/

Procedure

Run the prepare.bat (or prepare.sh) command with the prepare task, including the module googleanalytics.
The format for installing the web application with one or more modules is as follows:
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.