# Using Matomo with PrestaShop

> Connect your PrestaShop store to Matomo analytics by installing and configuring the Matomo module to track visitors and sales.

Source: https://helpcenter.ruachost.com/apps/prestashop/using-matomo-with-prestashop/

**Matomo** (formerly Piwik) is an open‑source analytics platform that provides detailed visitor statistics. Integrating Matomo with PrestaShop allows you to track traffic, user behavior, and conversions directly from your store. On **ruachost.com**, you can connect PrestaShop to Matomo using the official module.

## Why Use Matomo?

- Privacy‑friendly alternative to Google Analytics.
- Provides detailed traffic reports and visitor insights.
- Helps optimize product pages and marketing campaigns.
- Fully open‑source and self‑hosted for maximum control.

## Steps to Integrate Matomo with PrestaShop

### Step 1: Install Matomo

- If your hosting account includes **Softaculous**, you can install Matomo automatically.
- Otherwise, download the latest version from Matomo.org and install it manually.

### Step 2: Download the PrestaShop Matomo Module

1. Visit dh42.com free PrestaShop modules.
2. Download the `piwikanalyticsjs.zip` file.

### Step 3: Install the Module in PrestaShop

1. Log in to your PrestaShop site as the administrator.
2. In the left sidebar, go to **Improve → Modules → Module Manager**.
3. Click **Upload a module**.
4. Select the `.zip` file you downloaded.
5. PrestaShop installs the module automatically.
6. Click **Configure** to open the settings.

### Step 4: Configure the Module

- **Piwik Host** → Enter the URL to your Matomo installation (e.g., `example.com/matomo`).
- **Site ID** → Obtain this from your Matomo dashboard under *Administration → Websites → Manage*.
- **Auth Token** → Generate a token in Matomo under *Administration → Personal → Security → Auth tokens*.
- **Ecommerce Tracking** → Set to **Yes** to enable ecommerce analytics.
- Save your configuration.

### Step 5: Verify Integration

- Log in to your Matomo account.
- Navigate to your site’s dashboard.
- You should see visitor traffic and ecommerce data flowing in.

## Important Notes

- Always back up your site before installing new modules.
- Do not include `http://` in the Matomo host URL when configuring.
- If you change your PrestaShop theme, verify that the tracking code is still active.
