Installing the Google Analytics module in a .NET web application

Install the Google Analytics module in your .NET web application by running the web-install.ps1 script in the folder: modules\GoogleAnalytics\

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, install the core module, downloaded from the following location: https://docs.rws.com/DXA/2.3/Modules/Download/
  • Run the PowerShell script from a machine that has access to your Content Data Store database, for example on the machine that hosts the Digital Experience Accelerator .NET web application.

Procedure

  1. Access your DXA installation media (in the location where it was downloaded).
  2. Open a PowerShell command prompt in Run as administrator mode.
  3. Navigate to the modules\GoogleAnalytics\ folder and run the following command:
    .\web-install.ps1 -distDestination "LOCATION"

    where LOCATION is the file system path of the DXA website root folder.

    The script creates the web application.