Documentation Center

Installing Google Analytics module in Content Manager

Run a PowerShell script to install the Google Analytics module in the Content Manager. After installation, configure your Google Analytics site key and publish the changes.

Before you begin

To perform this import, you must be logged in as a user with administrator-level access to your SDL Tridion Content Manager.

Procedure

  1. Access your SDL Digital Experience Accelerator installation media.
  2. Open a PowerShell command prompt in Run as administrator mode.
  3. Navigate to the modules\GoogleAnalytics folder and run the following command:
    .\cms-import.ps1 -importType IMPORTTYPE -cmsUrl "https://cms.example.com:81/"
    where:
    -importType
    module-and-permissions
    Installs the Google Analytics module and sets rights and permissions for the default User Groups in the Content Manager (default setting).
    module-only
    Only installs the Google Analytics module.
    permissions-only
    Only sets rights and permissions for the default User Groups in the imported Content Manager.
    -cmsUrlWeb address of the Content Manager Explorer.
    (optional)cmsUserNameThe username used for the authentication.
    (optional)cmsUserPasswordThe password for the provided username.
    (optional)cmsAuthThe authentication type; possible values are: Windows (default), and Basic. You can use the Basic authentication type, in case your Content Manager Server requires credentials other than Windows credentials.
  4. Access the Content Manager Explorer Web site.
  5. Configure Google Analytics site key:
    1. In your 400 Example site Publication, navigate to /Building Blocks/Settings/GoogleAnalytics/Site Manager/
    2. Open the Component Google Analytics Configuration.
    3. Set the value of siteKey to your Google Analytics site key.
    4. Select Save and Close to commit your changes.
  6. Publish the changes:
    1. Navigate to the Home/_System/include/ Structure Group.
    2. Select the Page Footer.
    3. In the Home tab, select Publish.
    4. Publish the Page.
  7. Refresh the Web application settings:
    1. Go to the Home/_System Structure Group.
    2. Select the Publish Settings Page and click Publishing > Publish.
    3. Go to your Web application and enter the URL /admin/refresh refresh the cache and reload the settings in the Web application.