How do I install the Matomo tracking code on my PrestaShop store
PrestaShop is an open-source ecommerce platform for merchants of any size to setup and manage an online store. You can easily integrate Matomo with PrestaShop to track key metrics and uncover comprehensive insights to enhance decision-making and marketing strategies.
You will need a PrestaShop account and your Matomo instance on Cloud or On-Premise.
Download the free Matomo plugin
- Navigate to Matomo’s Integrations page and click the PrestaShop download link.
- You will be directed to Tecnoacquisiti’s website displaying the plugin details for Matomo Analytics for PrestaShop with ecommerce tracking. Add this plugin to your cart.
- To load JQuery libraries for the ecommerce tracking, you will need the PrestaShop third-party code and jQuery impact reduction plugin available on the same site. Add this plugin to your cart.
- Complete the Checkout process for both free plugins and download the plugin zip files.
Upload the PrestaShop module
- Log in to your PrestaShop as administrator.
- Open Modules > Module Manager and click the Upload a module button.
- Select and upload the Matomo plugin zip file.
- The PrestaShop-JQuery plugin zip file will be uploaded after configuring the Matomo tracking.
Configure Matomo tracking
- After installation is complete, click Configure. You can also search for Matomo in the Module Manager and click (1) Configure in the right-hand menu.
- Toggle the Enable monitoring option and set it to enabled.
- Enter your Matomo URL instance and SiteID (found in Matomo Administration settings > Manage Measurables).
- Toggle the Ecommerce tracking option and set it to enabled.
- Enable/disable the optional settings according to your privacy setup requirements.
- Click Save.
- In the PrestaShop Module Manager, click the Upload a module button and select the PrestaShop-JQuery plugin.
- After installation, click Configure.
- Toggle the Local JQuery option (1) to enabled and click Save.
Position the Matomo module
- In the PrestaShop admin dashboard, expand the Design menu and click Positions.
- In the All modules dropdown, select the Matomo Analytics module.
- Under the
displayAfterBodyOpeningTag
hook, click-and-drag the Matomo module to position 1 as shown in the example below. - Click Save.
Test the integration
- Perform user actions in your PrestaShop storefront.
- Login to Matomo and check if these actions are tracked in the Visits log.
- You should now be successfully tracking your visitors on PrestaShop.