There are three four popular ways how to install Matomo for WordPress. We will describe below how to make it work with Complianz. Which one you should choose is based on the consequences per implementation.
- Using the Matomo official WordPress plugin. Available here. You are using the Matomo official WordPress plugin. This will save all available data from Matomo in your current database, which is not recommended for medium to large websites.
- Add Matomo’s Javascript manually to your website. Adding Javascript from Matomo creates more freedom, but requires some coding knowledge.
- Using Complianz to add Matomo for you – This will include Cookieless tracking . Adding Matomo with Complianz will make sure consent is handled correctly, as well as implemented. Changing the code, however, is more complicated.
- Matomo Tag Manager – How to implement Matomo Tag Manager with Complianz, read this article.
1. Using the Matomo official WordPress plugin
If you’re using the Matomo official plugin;
- In Matomo choose to anonymize IP addresses.
- In Complianz, under Wizard – Consent – Statistics select Matomo -> Configure to not add Matomo with Complianz and not ask consent.
- Configure Matomo in the dedicated plugin. Complianz is now configured to handle Matomo as an anonymous statistics script.
2. Adding Matomo’s Javascript snippet to your website
If you want to install Matomo’s Javascript yourself you, please add the following classes for Complianz to recognise Matomo:
3. Using Complianz to add Matomo for you
You can let Complianz add Matomo when you have the plugin installed, or when you don’t have the plugin installed:
-
- Matomo plugin installed: Use yourdomain.com/wp-content/plugins/matomo/app/ as your installation URL when asked in Complianz -> Wizard -> Consent -> Statistics Configuration. Make sure tracking from the Matomo plugin is disabled, as Complianz will add the script for you.
- Matomo plugin NOT installed: Use the domain of your Dashboard installation
- Matomo plugin installed: Use yourdomain.com/wp-content/plugins/matomo/app/ as your installation URL when asked in Complianz -> Wizard -> Consent -> Statistics Configuration. Make sure tracking from the Matomo plugin is disabled, as Complianz will add the script for you.