> ## Documentation Index
> Fetch the complete documentation index at: https://kb.hosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Using Matomo with PrestaShop

> Discover how to integrate Matomo analytics with PrestaShop for visitor traffic insights, including installation and configuration.

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](https://dh42.com/free-prestashop-modules/prestashop-piwik-statistics).

<Warning>
  **Important**

  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](/docs/matomo).

  * If your hosting account does not include Softaculous, or if you want to install the newest version, you can [install Matomo manually](/docs/installing-matomo-manually).
</Warning>

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](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.
  > 👍 Tip
  >
  > 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.
  > 👍 Tip
  >
  > 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](https://static.hosting.com/kb/kb-matomo-settings-icon.png)) 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.

<Tip>
  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](https://static.hosting.com/kb/kb-matomo-settings-icon.png)) 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.
</Tip>

* 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](https://matomo.org).

## Related articles

* [Installing Matomo manually](/docs/installing-matomo-manually)

* [Using Google Analytics with PrestaShop](/docs/using-google-analytics-with-prestashop)
