At times it can be hard to integrate Analytics tools into your CMS like Drupal. Matomo Analytics module makes it easy to add Matomo tracking code into your Drupal website and start tracking your visitors behaviour instantly. Even the users who don’t have any technical experience will be able to achieve this with ease.

You’ll need Matomo (Cloud or Self-hosted) and Drupal.

Note: This guide is written in an assumption that you have already installed Matomo Analytics for Drupal module in your website

Integrate Matomo Analytics to your Drupal site

To configure the plugin, follow the steps below:

  1. Download the Matomo Module for Drupal

  2. Open Drupal Administration page

  3. Click on “Extend” on the top menu bar

  4. Click on “Install new module” and choose the downloaded module and click on “Install”.

  5. Search for Matomo in the search bar, you will be able to see the module if it is installed properly

  6. Click on the small arrow on the right side of the name Matomo Analytics

  7. Click on “Configure”

  8. Enter the siteId in the “Matomo Site ID” field. How to get site ID?

  9. Enter your Matomo instance URL (ex: https://example.matomo.cloud/) in “Matomo HTTPS URL”, make sure ‘/’ is added at the end

  10. If you would like to add some Custom JavaScript code to your Matomo Tracking code, you can do so under “Advanced Settings > Custom Snippet”

  11. Scroll down to the bottom at Click on “Save Configuration”

  12. Open your website in the browser and perform some actions (eg: navigate to different pages)

  13. Login to your Matomo instance to check if you’re getting the tracking data of your site

Congratulations, you should now be successfully tracking visitors with Matomo Analytics through your Drupal site! Happy Analytics.

Previous FAQ: How do I install the Matomo tracking code on SquareSpace?