Configure Workspace Analytics

You have the option to configure workspace analytics by setting up and integrating external tools. Setting up analytics allows you to see how users interact with your workspace, helps measure metrics, and monitors different user experience measures. To access analytics settings, go to Administration > Workspace > Settings > Analytics.

Rocket.Chat provides the following options to set up workspace analytics:

Configure Google Analytics

Make sure you have set up the necessary Google Analytics configuration from your Google account. Then, follow these steps in your Rocket.Chat workspace:

  1. On the Analytics page, select the Google Analytics tab.

  2. Enable the option to use Google Analytics.

  3. Enter the Tracking ID you received from your Google Analytics configuration.

  4. Click Save.

Configure Matomo (formerly, Piwik)

This feature is deprecated and will be removed in version 8.0.0

You can choose an open-source alternative Matomo, formerly Piwik, for analytics. Make sure you have completed the necessary configurations. Then, follow these steps in your Rocket.Chat workspace:

  1. Enable: Enable this option to use Piwik analytics.

  2. URL: Enter the URL where the Piwik resides; include the trailing slash. Example: https://piwik.rocket.chat/

  3. Client ID: The site ID for identifying your site. Example: 17

  4. Additional Piwik Sites: Takes additional Piwik website URLs and site IDs to track the same data into different websites. Example:

[
   {
      "trackerURL":"https://my.piwik.domain2/",
      "siteId":42
   },
   {
      "trackerURL":"https://my.piwik.domain3/",
      "siteId":15
   }
]
  1. Prepend Domain: Enable this option to prepend the site domain to the page title when tracking.

  2. All Subdomains: This lets you track visitors across all subdomains.

  3. Hide Outgoing Links: Takes in URLs, one domain per line, without any separator to hide their clicks in the outlinks report.

Set tracking features

Once you have saved the analytics configurations of your choice, you can choose the type of data you want to track.

  1. On the Analytics page, select the Features Enabled tab.

  2. Enable the Messages option to track custom events related to actions a user does on messages.

  3. Enable the Rooms option to track custom events related to actions on a channel or group (for example, create, leave, and delete rooms).

  4. Enable the Users option to track custom events related to actions related to users (for example, password reset times and profile picture change).