How to use Matomo with PrestaShop

This article describes how to integrate the open-source Matomo (formerly Piwik) analytics platform with PrestaShop.

Using Matomo with PrestaShop

Matomo gathers detailed statistics about visitor traffic to your site. There are several modules available for PrestaShop that provide Matomo integration, but Matomo's own site recommends the Prestashop Matomo Statistics module.

Before you can use Matomo with PrestaShop, you must first install the Matomo application files. There are two ways to do this:

  • If your hosting account includes Softaculous, you can use it to install Matomo.
  • If your hosting account does not include Softaculous, or if you want to install the newest version, you can install Matomo manually.

To install and configure the Matomo module for PrestaShop, follow these steps:

  1. Use your web browser to visit https://dh42.com/free-prestashop-modules/prestashop-piwik-statistics.
  2. At the bottom of the page, click DOWNLOAD MODULE, and then save the piwikanalyticsjs.zip file on your computer.
  3. Log in to your PrestaShop site as the administrator.
  4. In the left sidebar, under IMPROVE, click Modules, and then click Module Manager.
  5. Click Upload a module.
  6. Click Browse, and then select the .zip file you downloaded in step 2. PrestaShop installs the module.
  7. Click Configure. The Piwik Analytics configuration page appears:
    • In the Piwik Host text box, type the URL to your Matomo installation.
      Do not add http://. For example, if your domain name is example.com, and Matomo is installed in the matomo directory, type example.com/matomo.
    • In the Piwik site id text box, type the Matomo ID number for your site.
      To obtain the Matomo ID number for your site, follow these steps:
      1. Log in to Matomo.
      2. On the top right of the page, click the Administration ( Matomo - Administration settings icon ) icon.
      3. In the left sidebar, click Websites, and then click Manage.
      4. Under Manage Measurables, locate your site and its ID number.
    • In the Piwik token auth text box, type your Matomo authentication token.

      To obtain your Matomo authentication token, follow these steps:

      1. Log in to Matomo.
      2. On the top right of the page, click the Administration ( Matomo - Administration settings icon ) icon.
      3. In the left sidebar, click Personal, and then click Security.
      4. Under Auth tokens, click CREATE NEW TOKEN.
      5. Type your password again to confirm your identity.
      6. In the Description text box type a description for the token, such as PrestaShop, and then click CREATE NEW TOKEN.
      7. Under Token successfully generated, copy the long alphanumeric string. This is your Matomo authentication token.
    • Under PIWIK ANALYTICS ADVANCED - EDIT PIWIK SITE, in the Ecommerce option box, click YES.
  8. Click Save. Matomo is now enabled for PrestaShop. To view site statistics, log in to your Matomo account.

More Information

For more information about Matomo, please visit https://matomo.org.

Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.

We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.